Need Help Modify Ea

 

i got nice Ea from this forum.

it's called surgeon_scalper1.0.mq4

what happen is that this Ea is quite good, but the problem lies with the stop loss.

no matter how i changed the value, when a trade is open, there's no stop loss.

can someone help me find out the problem?

maybe there's problem with the coding perhaps.

thanks in advance.

Files:
 
catextract:
i got nice Ea from this forum.it's called surgeon_scalper1.0.mq4what happen is that this Ea is quite good, but the problem lies with the stop loss.no matter how i changed the value, when a trade is open, there's no stop loss.can someone help me find out the problem?maybe there's problem with the coding perhaps.thanks in advance.

Could the problem be at the passing of parameters?

Looking at OpenPendingOrder, the value passed to the function for SL is zero.

OpenPendingOrder(OP_SELL,iLots,Bid,slip,Ask,0,0,EAName+"-"+NumOfTrades,MagicNumber,0,HotPink);

Hope this help.

Reason: