I would like to ask my EAs for or against slippage parameter, if they should have it.
You don't need one.
These days, instant accounts can be found in small kitchens, and as you can imagine, no one in their right mind would put money in there.
What are Instant Execution accounts and where do the big kitchens live?
Google "difference between Instant and Market Execution"
Instant - this is when a trade is only executed at a set price.
Market - a trade may be subject to slippage (e.g. when there is a large movement and the price has changed during the request).
If you do not want slippage parameter in your EA, you may open a profitable position.
By limiting slippage you might not open a profitable position, thus depriving yourself of profit. Whether to limit slippage or not depends on the whole TS...
Let's take a look at the help. Extern variables
The extern memory class defines an external variable. The modifier extern is specified before the data type.
Like input variables, extern variables also define the input parameters of mql4-program, they are available from the Properties window.
As opposed to input variables, values of extern variables can be changed programmatically while the program is running.
External variables are always reinitialized immediately before call OnInit().
Conclusion: If you want to place some parameter in the EA properties window, you must use the modifier Extern or Input.
And vice versa: Any parameter can be removed from the properties window by deselecting the modifier. The decision is up to the user.
To be specific about slippage. If it is supposed to be changed, it is necessary. But why? and within what limits?

- www.mql5.com
Instant and slippage zero
Instant and slippage zero
Somewhere on the Google it was said that if the order is executed with zeros, it's a gadget. If there is slippage, it's normal. But any kitchen can pass for "normal"?
It was said somewhere on the google that if an order is executed with zeros, it's a gadget. If it slips, it's normal. But any kitchen can pass for "normal"?
i had a conversation with a brokerage house.
they say that if a client wants zero slippage, they will do it.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use