以下程式碼,雖有condition 和 value,但未參與 IF
回測為何沒有任何交易?
condition11=(high-close[1])/close[1] > 0.6/100 ;//0.6%
condition16=(low-close[1])/close[1] < -0.6/100 ;//-0.6%
value31=round(100/CountIf(condition11,100),1);//0.6%
value37=round(100/CountIf(condition17,100),1);//-0.6%
if position=0 and filled=0
then setposition(minlist(position+1,1), getField("收盤價", "Tick"),label:="買-0.6");
if position=1 and filled=1
and getField("收盤價", "Tick") >=filledAvgPrice*1.0125
then setposition(maxList(position-1,0),filledAvgPrice*1.0125,label:="賣0.6");

 
 
             
        
         
         
         
     
     分類
    分類
