我這個TimeFrameSet有什麼問題?
我的data是1985年到現在, 但結果只有2007年開始買, 是什麼原因? 會是有什麼要在amibroker setting做好?Buytime = SAR() < C;
Selltime =SAR() > C;
TimeFrameSet(inWeekly);
WeekBuytime = SAR() < wc;
WeekSelltime =SAR() > wc;
TimeFrameRestore();
Buy = H > Ref(H,-1) AND Buytime AND WeekBuytime;
Sell = L < Ref(L,-1) AND Selltime;
BuyPrice = Ref(H,-1) + 1;
SellPrice = Ref(L,-1) - 1;
SetPositionSize( 100, spsPercentOfEquity );
我是做backtest的.{:4_82:} 自己solve了!
google amibroker h_timeframe.html
EXAMPLE 3: Simplified Triple screen system
頁:
[1]