the current ASK price.1606 and current BID price.1605 (i.e. In simple terms, you will not be able to set your StopLoss or TakeProfit OR any pending order closer than a predetermined number of Pips to the current market price. How can you find the part of your code that is causing the error? So just be mindful of the Stop Level of the currency forex pairs where your EAs are trading dont specify excessively small StopLoss and TakeProfit parameters.
In these situations multiplying inputs by 10 can actually lead to erroneous performance. There is, of course, a risk that the order will be executed, but the modification will fail.
Lets go ahead and send some orders with. Let me know if you have any questions by using the comments section below. Choose your course NOW AND start learning forex today! Simply enter your details and click Play.
This way you cut off all negligible digits after the decimal point. By popular demand, proven strategies on how to beat every algorithmic traders worst nightmare Error 130. Some EAs already have modules that will detect the number of digits after the decimal and will automatically adjust your input parameters for you. Like this: However, be careful! Next, it modifies the newly opened market order by adding the desired SL and. And if you liked what you see, here you can find the course: The silent killer, so you launched your expert advisor and nothing happens. Note: you can use Print instead of Alert to redirect the message straight to the EAs log instead of displaying it on the screen.
Not looked at your code but either you are setting stops with your order (many brokers do not allow that).
Include the mqh file at the beginning of the.
Set the global variable IS_ECN_broker true in your init function.
Replace your calls to OrderSend with.
This expert work good in backtest but when it work in my account on ibfx, it not open any trades at all, and give me error 130 i don't have any mql.