if GetSymbolInfo("可放空") then plot1(1) else plot1(0);
如上指標, GetSymbolInfo("可放空"), 可以取得目前產品的"可放空"條件, 並回傳正確的數值.
if position=0 and time=090500 and GetSymbolInfo("可放空") then setposition(1); if position=1 and time=100000 then setposition(0);
但, 如上"交易"程式, GetSymbolInfo("可放空"), 在回測時卻永遠回傳 false 的值, 造成回測時, 沒有任資料.
請修改一下!
10 評論