Based what I learned, EMA SMA fMA cross systems generally have problem with whipsaw trades.
I believe she or he did a optimization about the periods which might be different for QQQQ based on backtest.
This is what I tried before, still a lot of whipsaws.
pWMA1 = Param("WMA 1 period", 6, 1, 20, 1); pWMA2 = Param("WMA 2 period", 7, 1, 20, 1);
fMA1 = WMA(C, pWMA1); fMA2 = WMA( (Open + Close)/2, pWMA2);
Buy = Cross(fMA1, fMA2);
Short = Cross(fMA2, fMA1); Sell = Short; Cover = Buy;
[ 本帖最后由 biorjin 于 2008-12-4 23:29 编辑 ] |