- Joined
- 13 June 2007
- Posts
- 838
- Reactions
- 136
Greetings --
Why does it work??
The simple reason is that the broad market, and most of the stocks in it, have been rising strongly for the past 25 years.
This system restricts purchases to stocks with prices below $10. I made a posting to one of the threads here at ASF about historical prices, and how splits, distributions, and dividends distort historical prices. The point is, you cannot trust that the price in the historical data base was the price the stock actually traded at.
I ran the system on the S&P 500 stocks beginning 1/1/1995.
The system bought ebay on 11/23/98 at $8.04.
ebay did not trade at $8.04 in 1998. There have been four splits, totaling 24:1.
http://investor.ebay.com/faq.cfm
ebay was about $192.96 on 11/23/1998.
It would be interesting to test over a period of market decline, but that would require either removing the $10 limit (and changing the system), or having unadjusted historical data.
When I changed the test dates to begin 1/1/2005, using the 500 stocks in the S&P 500, only 15 stocks had trades, 6 were winners, 9 were losers. (I did not check to see if all of the trades could have taken place at less than $10.) The total exposure of the resulting trades (all 500 stocks for all 2.7 years) is 0.00006 -- 0.006% of the time. That is not enough data to allow meaningful statistical tests. And it is not enough data to give me a subjective feeling of comfort.
So --- why does it work? At the risk of getting some flack back, the cheeky answer is -- the system is confusing brains with a bull market.
Thanks,
Howard
AFL code:
// techtrader v2 amibroker version
// here we define buy conditions and name each one as a variable
PositionSize = -10; // always invest only 10% of the current Equity
cond1=Cross(H,Ref(HHV(H,10),-1)); // when todays high crosses last highest high over the last 10 periods
cond2=H > EMA(C,40); // todays high is greater than the 40 day Exp MA of closes
cond3=HHVBars(H,70) == 0; // todays high is the highest for 70 periods
cond4=EMA(V*C,21) > 500000; // ensure at least $500k of money flow
cond5=C < 10.00; // only trading in stocks less than $10
cond6=C > O; // todays close higher than open
// the following line is the trigger if all conditions satisfied
Buy=cond1 AND cond2 AND cond3 AND cond4 AND cond5 AND cond6;
// here we define variables used once in the trade
ApplyStop( stopTypeLoss, stopModePercent, amount=10 );
Sell= Cross(Ref(EMA(L,180),-1),C); // close crosses below yesterdays average of the low
// here we define what gets displayed on the chart
shape = Buy * shapeUpArrow + Sell * shapeDownArrow;
PlotShapes( shape, IIf( Buy , colorYellow, colorRed ), 0, IIf( Buy , Low, High));
Filter = Buy; // lists exploration results conforming to our buy criteria
AddColumn(Buy, "buy", 1.0); //
Why does it work??
The simple reason is that the broad market, and most of the stocks in it, have been rising strongly for the past 25 years.
This system restricts purchases to stocks with prices below $10. I made a posting to one of the threads here at ASF about historical prices, and how splits, distributions, and dividends distort historical prices. The point is, you cannot trust that the price in the historical data base was the price the stock actually traded at.
I ran the system on the S&P 500 stocks beginning 1/1/1995.
The system bought ebay on 11/23/98 at $8.04.
ebay did not trade at $8.04 in 1998. There have been four splits, totaling 24:1.
http://investor.ebay.com/faq.cfm
ebay was about $192.96 on 11/23/1998.
It would be interesting to test over a period of market decline, but that would require either removing the $10 limit (and changing the system), or having unadjusted historical data.
When I changed the test dates to begin 1/1/2005, using the 500 stocks in the S&P 500, only 15 stocks had trades, 6 were winners, 9 were losers. (I did not check to see if all of the trades could have taken place at less than $10.) The total exposure of the resulting trades (all 500 stocks for all 2.7 years) is 0.00006 -- 0.006% of the time. That is not enough data to allow meaningful statistical tests. And it is not enough data to give me a subjective feeling of comfort.
So --- why does it work? At the risk of getting some flack back, the cheeky answer is -- the system is confusing brains with a bull market.
Thanks,
Howard