condition1 = signal_LH_HH or signal_LH_HL or signal_HL_HH or signal_HL_HL or signal_NewHigh_NewLow ;
condition2 = signal_LH_LH or signal_LH_LL or signal_HL_LH or signal_HL_LL or signal_NewHigh_NewLow_Sell ;
if Position = 0 and filled = 0 and condition1 then begin
SetPosition(1, MARKET); { 以市價買進 }
end;
if Position = 1 and filled = 1 and condition2 then begin
SetPosition(0, MARKET); { 以市價賣出 }
end;
 
 
             
        
        .jpg?width=50&crop=0,0,50,50) 
         
        .jpg?width=20&crop=0,0,20,20) 
                     
         
     
     分類
    分類
 
            
4 評論