/*[[ Name := Mauro 10 pip v 1.0 Author := Link := Update on every tick := Yes Enable Alerts := Yes Disable alert once hit := No Lots := 1.00 Stop Loss := 85 Take Profit := 0 Trailing Stop := 15 ]]*/ Define: IntProfit(25),BEat(10);//Change to what ever your Pip Target is Var: cnt(0),slippage(5),mode(0); for cnt=1 to TotalTrades { mode=Ord(cnt,VAL_TYPE); //sets initial stop loss If mode=OP_BUY and Ord(cnt,VAL_SYMBOL)=Symbol and Ord(cnt,VAL_STOPLOSS)=0 then { ModifyOrder(Ord(cnt,VAL_TICKET),Ord(cnt,VAL_OPENPRICE),Ord(cnt,VAL_OPENPRICE)-StopLoss*Point,Ord(cnt,VAL_TAKEPROFIT),Blue); }; If mode=OP_SELL and Ord(cnt,VAL_SYMBOL)=Symbol and Ord(cnt,VAL_STOPLOSS)=0 then{ ModifyOrder(Ord(cnt,VAL_TICKET),Ord(cnt,VAL_OPENPRICE),Ord(cnt,VAL_OPENPRICE)+StopLoss*Point,Ord(cnt,VAL_TAKEPROFIT),Red); }; //sets BEat stoploss after IntProfit pips reached If mode=OP_BUY and Ord(cnt,VAL_SYMBOL)=Symbol and Ord(cnt,VAL_STOPLOSS)=(Ord(cnt,VAL_OPENPRICE)-(StopLoss*Point))and ((Bid-(Ord(cnt,VAL_OPENPRICE)))>=IntProfit*Point) then ModifyOrder(Ord(cnt,VAL_TICKET),Ord(cnt,VAL_OPENPRICE),((Ord(cnt,VAL_OPENPRICE))+BEat*Point),Ord(cnt,VAL_TAKEPROFIT),DeepSkyBlue); If mode=OP_SELL and Ord(cnt,VAL_SYMBOL)=Symbol and Ord(cnt,VAL_STOPLOSS)= (Ord(cnt,VAL_OPENPRICE)+(StopLoss*Point))and (((Ord(cnt,VAL_OPENPRICE)-Ask))>=IntProfit*Point) then ModifyOrder(Ord(cnt,VAL_TICKET),Ord(cnt,VAL_OPENPRICE),((Ord(cnt,VAL_OPENPRICE))-BEat*Point),Ord(cnt,VAL_TAKEPROFIT),DeepSkyBlue); //trailing stop loss If mode=OP_BUY and Ord(cnt,VAL_SYMBOL)=Symbol then { If (Bid-Ord(cnt,VAL_OPENPRICE))>((BEat+TrailingStop)*Point) then{ If Ord(cnt,VAL_STOPLOSS)((BEat+TrailingStop)*Point) then{ If Ord(cnt,VAL_STOPLOSS)>Ask+(BEat+TrailingStop)*Point then{ModifyOrder(Ord(cnt,VAL_TICKET),Ord(cnt,VAL_OPENPRICE),Ask+(BEat+TrailingStop)*Point,Ord(cnt,VAL_TAKEPROFIT),Red); Exit;};};};};