Monday, 30 January 2012

Week of 2012 JA 27

SPY rose by 0.2% this week, while my account fell by 1.0%.  I bought some TZA, so my loss floor dropped from -0.9% to -2.2%.  If the market goes up on Monday, I’ll probably get stopped out of RWM.

Spike-lows usually happen every 35‒40 days, but it has now been 42 days since the last one — unless it was that pitiful little down-spike at the open on JA24!  About the only hopeful news I have is that Goldman Sachs told their customers to go long the Russell 2000 on Thursday morning and the Russell hasn’t been that high since.  Assuming that Goldman never gives good advice and always screws over their own customers, this means that the top is in and so my ”short the Russell 2000” investments (RWM and TZA) will now start doing well.  Fingers crossed!

My personal finances are not doing well.  I have put in a request to Schwab to withdraw 10% of this money because I need it for living expenses.  As this is a retirement account for a country that I no longer live in, I can no longer make any deposits so all withdrawals are permanent.  Next week, I plan to add a black slice to the pie-chart, to be labelled “withdrawal”.  I made a withdrawal in 2010 (to prove that I could) but there were no withdrawals in 2011 because results were so poor.  It seems silly to keep drawing down the mortgage line-of-credit when I have so much cash sitting idle in this account.

Daily % gain
size
Max % lossResults
Symb  Buy Fri   Mon   Tue   Wed   Thu   Fri Beg   End
 
RWM  JA06 -2.9  17 -2.8  17 -3.4  17 -4.3  17 -4.1  17 -4.7  17 −5.1 −5.1
TZA  JA23 -0.8  10 -2.7  10 -5.3  9 -4.9  10 -6.9  9 −15.2 −12.8
SPY +4.8 +4.9 +4.7 +5.6 +5.1 +5.0
me -0.5 -0.5 -0.8 -1.2 -1.2 -1.5

RWM: Bought because DanEric thought that Minor wave (2) was over, but he has had to recant that prediction.  Now he predicts that the market will either bounce on Monday (and then head further downward) or bounce on Tuesday (and then head back up so I lose).  If it heads back up, I guess I’ll have to add DanEric to my list of “people whose predictions aren’t reliable enough to bet on”.

TZA: I am much less worried about this one, because I know that my MACD swing-trade algorithm is profitable on average, even though it occasionally has entire months of nothing but losing trades.

MACD-based swing trades

Ticker
Symbol
Buy dateBuy priceSell dateSell priceProfit
ModelActualMAModelActualMAMA
TZA JA 23 13:00 JA 23 13:26 $22.46 $22.31 (not yet)

Last weekend I updated the parameters.  On Monday there was a “buy” signal for TZA!  But the robot didn’t buy because its pricing data (via Schwab) was different from my pricing data (via stocksharts.com).  I made the trade manually and then fixed up the program to work correctly with Schwab’s data, which has only current-price and the high and low for the day so far (unlike stockcharts.com, which shows highs and lows for the last hour).

Saturday, 21 January 2012

Week of 2012 JA 20

SPY rose by 2.1% this week, while my account fell by 0.4%.  This week there is a new blue line, indicating the loss-floor.  If all stops trigger (currently there is only one), my account balance will fall to -0.9% for the year-to-date; last week the floor was -0.7%.

It has now been 37 days since the last spike-low on Nov. 25th.  Usually the spike-lows are every 35-40 days.  It was 46 days from 2009 NO 30 until 2010 FE 05, but that low’s downswing began after 35 days and as of today the market shows no sign of going down yet.

US markets were closed on Monday, for Dr. Martin Luther King Jr.’s birthday.  Friday was the Options Expiration day for this month.

Daily % gain
size
Max % lossResults
Symb  Buy Fri   Mon   Tue   Wed   Thu   Fri Beg   End
 
RWM  JA06 -1.5  10 -0.8  14 -2.2  17 -2.8  17 -2.9  17 −6.9 −5.1
SPY +2.7 +3.1 +4.2 +4.7 +4.8
me -0.1 -0.1 -0.4 -0.5 -0.5

RWM: Reset the trailing stop from 8% to 5%, but this had little effect because RWM’s recent price peak was almost 3% lower than the last peak seen before the reset.
      On Sunday, I lowered the buy-trigger from SPY=$130.50 to SPY=$130.25; on Tuesday SPY peaked at $130.29 at 9:50am, so Schwab bought RWM for me before I got out of bed.  Life was good!  On Wednesday, SPY peaked at $130.84 at the close, so I bought more RWM in the after-market.  Then SPY continued rising for the rest of the week.  :-(
      Some would claim that these additional purchases of RWM were wrong because I was “adding to a losing position”.  Well, maybe.  But I did not lower my stop-price, so each additional buy has a tighter stop than its predecessor.  Wednesday’s buy increased my profit potential by 0.3% while increasing my max-loss by only 0.1%.

MACD-based swing trades

This is now four weeks in a row with no swing trades!  I hope all those people who bought the “Santa rally” and the “January effect” are having a good time.  As for me, I will continue waiting for the bimonthly spike-low.

Bugfix: There was a typo in my robot trader’s code.  PPO(50,30,10) consists of three values: signal, moving-average, and histogram.  Instead of the ”signal” value, I think it was actually using the ”moving-average” value.  So I fixed that and then retuned.  I now test close>SMA(23) instead of close>SMA(20).  This doesn’t seem to help TNA any, but improves results for TZA slightly.  Maybe I should drop this test.
      TNA: max-signal was -0.7, now -0.1 (which is much more lenient). Rebuy-delta was 0.01, now 0.03 (better results during 2010, not much worse for 2011).
      TZA: max-signal was -0.55, now 0.00 (i.e., any positive PPO-signal for IWM is now “good enough” to buy TZA). Epsilon was 0.5, now 0.25. Neg-epsilon was -0.7, now -0.4.  Delta was 2.2, now 1.35. Neg-delta was 1.15, now 1.45. Rebuy-delta was 0.07, now 0.01.
      Epsilon for TNA remains at 0.4.  Because neg-epsilon for TZA used to be more than that but is now equal, there is no longer an overlap zone where TNA has received a “buy” signal but TZA has not received a ”sell”.

Results still aren’t so hot.  For the last 19 months, the TNA trader would have had 28 wins & 15 losses, for a total account-gain of 15%, while the TZA trader would have had 21 wins & 18 losses, for a total account-gain of 40%.  Nice overall gain, poor win:loss ratio!  I feel like something better should be possible.  With these parameters, my account value this year would already have sustained two losses of 0.8%, on JA 03 and again on JA 10.  That wouldn’t have been a fun way to start the year!

New parameter: ”max-rebuys” prevents the system from mindlessly buying ever more tranches – I have limited funds!  Set to 3 (for original buy plus three rebuys).  Theoretically this could allow me to raise the tranche size from 10% to 25%, to use up all available money with four tranches, but practically I think I have to stick with 20% to ensure that I can buy one tranche of TNA at the spike-low, at the same time that I sell the four tranches of TZA.  This change would double my overall-gains to 70%/year, but would make losses due to robot-trader bugs twice as large.  I think I’ll wait for some profits before trying this.

Friday, 13 January 2012

Week of 2012 JA 13

SPY rose by 0.9% this week, while my account fell by 0.1%. 

The market tends to make a spike-low every 35 to 40 days.  There have been 33 trading days since the last spike-low on Nov. 25th.

Daily % gain
size
Max % lossResults
Symbol  since Fri   Mon   Tue   Wed   Thu   Fri Beg   End
 
RWM  JA06 +0.1  6 -0.5  6 -1.3  10 -1.8  10 -2.0  10 -1.5  10 −7.8 −6.9
SPY +1.8 +2.0 +2.9 +2.9 +3.2 +2.7
me +0.0 -0.0 -0.1 -0.2 -0.2 -0.1

For this year, the SPY and me rows in the table now start at +0.0 on JA 01, rather than restarting at +0.0 each week.

RWM: Gapped down on Tuesday, so I bought more at a lower price (which effectively tightened my stop-loss).  I had a limit-order to buy a third tranche if SPY rose to $130.50 (just below major resistance), but that didn’t happen.
      Next week: consider tightening the stop to 5%.  The 8% stop is for index funds to be held for several months, but I have doubts that I can really bear to hold this thing so long.  If I’m going to sell it at the January spike-low, the correct trailing-stop value is 5%.

MACD-based swing trades

Still no swing trades this week!  Hopefully the Minor [3] wave has just begun today and will trend downward next week.  PPO-signal is now only 0.18 and PPO-histogram is -0.20, so my robot-trader won’t buy anything unless there is a sharp drop of maybe 2% to trigger the delta rule.

Friday, 6 January 2012

Week of 2012 JA 06

SPY rose by 1.8% this week, while my account did not change.  The chart has been rescaled and rebased so "0% change" now refers to the values at the beginning of this year.

Daily % gain
size
Max % lossResults
Symbol  since Fri   Mon   Tue   Wed   Thu   Fri Beg   End
 
IAU  DE16 -2.0  10 +0.6  10 +1.1  0 −4.1%
RWM  JA06 +0.1  6 −8.1 −7.8
SPY 0.0 +1.6 +1.8 +2.0 +1.8
me +0.0 +0.0 +0.0 +0.0 +0.0

Markets were closed on Monday, in observance of New Year’s Weekend.

RWM: Bought because DanEric has been saying since DE 23 that the market would turn South on or about JA 09, which is next week.  He seems to have been on a roll these last three months: his “Minor [2] double-zigzag with ending diagonal” analysis has been quite accurate all along.  I placed a fairly small bet, mainly because PPO-signal is not very high right now so my automated system won’t go short until the market drops significantly.

MACD-based swing trades

Still no swing trades this week!  Maybe next week, as Minor [3] begins.

Tuesday, 3 January 2012

Week of 2011 DE 30

SPY fell by 0.7% this week, while my account fell only 0.4%.  For the year, SPY fell less than 1% while my account fell more than 17%.  I should’ve just put my money in SPY and left it there all year!

I have rebased the chart so the beginning-of-2011 values are now 0% instead of 100%.  Next week I will rebase the chart again so this week’s ending values (which are also start-of-2012 values) will correspond to “0% change” on the chart.

Daily % gain
size
Max % lossResults
Symbol  since Fri   Mon   Tue   Wed   Thu   Fri Beg   End
 
IAU  DE16 +0.8  10 -0.1  10 -2.6  10 -3.1  10 -2.0  10 −4.0 −4.0 −4.1%
SPY 0.0 +0.1 -1.2 -0.2 -0.7
me 0.0 -0.1 -0.3 -0.4 -0.4

Markets were closed on Monday, in observance of Christmas.

IAU: Stopped out on Thursday, making a lower low.  This is not a good time to be holding gold.  I will wait awhile.

Going into New Year’s, my holdings are now 100% cash (including unsettled cash from sale of IAU).  Next year my “gains this year” and “gains from transactions initiated this year” will be the same, unlike this year when there was a 2% unrealized gain carryover from 2010 that kept tripping me up.

MACD-based swing trades

My automated trading system for TNA/TZA swing trades is live and seemingly operational!  But there were no swing trade set-ups this week, so it hasn’t actually done anything yet.

New rule: Do not buy TNA when PPO-signal > -0.7; do not buy TZA when PPO-signal < +0.55.  Along with the “tweaks” below, for TNA this rule improves the 2011 win:loss ratio from 22:14 to 16:7, avoiding many losses while keeping most gains.  Overall profit increases from 2.52% to 2.53%, so basically no change.  For TZA this improves the win:loss ratio from 11:8 to 9:3 and increases profit from 7.25% to 7.28%.

Tweaks: Increase TNA delta from 1.1 to 1.2; increase neg-delta from 0.35 to 0.40.  Decrease TZA neg-delta from 1.45 to 1.15.  In part these tweaks are needed to reduce the negative impact of the new PPO-signal rule, because otherwise the delta rule would just buy the stocks anyway!

The TNA swing-trading rules seem to work well now.  Average gain per swing is 4.6% for the last 12 months, with roughly 3:1 odds. For the last 18 months (all the data I have), the average gain is also 4.6% but the odds are only 2:1.

The TZA rule needs more work.  Average gain is 18% for 12 months, with 3:1 odds, but for 18 months the average gain is only 10.4% and again the odds are 2:1.  There are still several nasty -5% losses, such as the -5.6% loss for October 27th.  For TNA, I was able to eliminate the nasty -3% loss in October via the above tweaks; maybe the same can be done for TZA with some more tweaking.