Ordersend with stoploss and take profit less than the spread

Back to topics list To post a new topic, please log in or register
NoviceDeveloper 2016.09.24 16:11

hey, I am a beginner with mql4, and I am trying to develope an ea. I have written a code that sometimes enters a trade and sometime don't. when it doesn't enter a trade, the code specifies "130 error" i.e. Invalid stops.

is it possible that the stops are invalid due to the fact that the spread is larger than the stops?

appriciate all help. 

WHRoeder 2016.09.24 16:33 #
There are no mind readers here, we can't see your code. Likely:
  1. Stops set closer than stop level Requirements and Limitations in Making Trades - Appendixes - MQL4 Tutorial
  2. You are putting the stops relative to the order open price rather than order close price .
Back to topics list  

To add comments, please log in or register