指標有多次交易訊號,交易回測無安控,只有進場2次、出場1次強制1次?
指標
if open > close[1] then begin
plot1(open,"B1");
value1=open;
end else begin
if high >= value1*1.005 then plot2 (high,"S1");
end;
交易
if position=0 and filled=0 and open > close[1] then setposition(1,open);
if position=1 and filled=1 and high >= value1*1.005 then setposition (0,high);
 
            
        
        
        
        
            
1 評論