|
各位好
小弟遇到一個問題
下面是小弟的策略,condition1~4 是四個不衝突的條件
if condition1 then begin
buy ("LE") next bar on open;
end else if condition2 then begin
sellshort ("SE") next bar on open;
end;
if condition3 then begin
sell ("LX") next bar on open;
end else if condition4 then begin
buytocover ("SX") next bar on open;
end;
在MTC回測,所有交易明細都是正確的
但是開啟自動交易上線實戰後
當交易訊號產生
在next bar on open的時候,卻不會對下單機送出委託
不管是下單機的log,或是券商的委託查詢,都沒有委託資料
但如果我把上述策略全部刪除
只單獨留下一個 buy next bar on open
這樣就可以正確送出委託
所以感覺不是 MTC 設定的問題
比較像是我的那 4 個 if 出了問題
然而回測的時候又是對的
請問各位高手,小弟是否遺漏什麼
感恩~
|
|