想請教版上的大大們,目前回測一個策略後,覺得想實際運用,
目前的程式碼如下
input: _n(0);
input: _X(0);
if getField("收盤價") > simplehighest(getfield("High", "D")[1], _n) then value1 = 1 else value1 = 0 ;
if getField("Volume")> _X*GetField("Volume", "D")[1] then value2 = 1 else value2 = 0 ;
if value1 + value2 >=2 then ret = 1;
因為有一個參數是收盤價格,但我如果要盤中就創新高價進場,要如何修正參數呢?
因為免費版回測是日頻率,付費板可以改為分k監控,可是這樣這套公式是不是就沒辦法判別出日k級別了呢?
1 評論