時間架構1M。回測日期2001/01/01至今。
var:myCeiling(0),myBottom(0); if date=1010102 then begin myCeiling=4836; myBottom=4709; end; if date<>1010102 and date<>date[1] then begin myCeiling=0; myBottom=99999; end; if Time<=0915 then begin if high>myCeiling then myCeiling=high; if low<myBottom then myBottom=low; end; if Time>0915 then begin buy next bar myCeiling stop; sellshort next bar myBottom stop; end; setexitonclose;
===================================================
我想請問,為什麼我這個交易策略明明是指定0915之後開始交易,
為什麼2001/1/3交易還正常,從2001/1/4之後每天一開盤就馬上交易,而且交易邏輯從哪來我真的看不懂。
可以為我解惑嗎?謝謝。
我已經找到問題了,不好意思,謝謝。