請教各位大大,
我想用Amibroker回測分K但一直失敗,
以下是程式碼:
SetTradeDelays(1,1,1,1);
SetOption("InitialEquity",1000000);
SetOption("MaxOpenPositions", 1);
SetOption("CommissionMode", 3);
SetOption("CommissionAmount", 4);
SetOption("FuturesMode", 1);
SetOption("AllowSameBarExit", 0);
SetPositionSize(1, spsShares);
PointValue = 10000;
TimeFrameSet(in1Minute);
MarginDeposit=1;
BuyPrice = Open;
SellPrice = Open;
Power = Close - Ref( Close,-1);
Buy = Cross( Power,MA(Power,10) );
Sell = Cross( MA(Power,10),Power);
請問是哪裡有寫錯還是Amibroker沒付費不能回測分K還是其他呢?
感謝各位~謝謝!!