|
我的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 );
|
|