
簡單寫了一個當沖放空的策略,出場停利停損都是設2%
回測頻率是設1分鐘
只執行2018-09-20
執行商品是所有上市櫃個股
----------------------------------------------------------------------------------------------------------
進場腳本如下:
value1=getfield("open","D");
value2=getfield("volume","D");
condition1=value2[1]> value2[2]*2 or value2[1] > average(value2[1],5)*2;
condition2=value2 < value2[1]*0.8;
condition3=close < value1;
if condition1 and condition2 and condition3
and value2 > 500
then ret=1;
--------------------------------------------------------------------------------------------
結果回測沒有跑出半檔個股
連上面看起來是符合9368國統的語法的腳本也沒跑出國統的回測結果
不知問題出在哪裡?

2 評論