Orderr Modification Error 130. What is this? While entering order from EA MT4.

 

My EA enters  up to 5 orders, then modifies with TP and SL.  Also sets trailing stops. Journal shows many many Error 130 msgs.

Entered same question last week but it is no longer in the MT4 Forum area??  Did it get answered?  Help, help.

 
Boristabby55:

My EA enters  up to 5 orders, then modifies with TP and SL.  Also sets trailing stops. Journal shows many many Error 130 msgs.

Entered same question last week but it is no longer in the MT4 Forum area??  Did it get answered?  Help, help.

Error 130 is because of invalid stops.
1) Maybe you stop levels have invalid form of normalization/rounding off.
2) or your broker has set a minimum distance between stop levels and current market price and the EA tries to set a TP or SL or a pending order closer to the market price than the amount set by your broker

Here my broker doesn't have this fixed minimum distance (freeze levels) between current price and the stop levels so it is mentioned as 0


Files:
Reason: