can anyone point me to this error when bringing EA to market
- www.mql5.com
Before sending trade orders, it is also necessary to check the correctness of the volumes specified in the orders.
Example which I found on one thread:
Forum on trading, automated trading systems and testing trading strategies
Benrashi Sagev Jacobson, 2021.08.13 12:36
Thank you, the ea is now working.
double IncreaseLots = NormalizeDouble(Balance/10000,2); double min_volume = NormalizeDouble(SymbolInfoDouble(_Symbol,SYMBOL_VOLUME_MIN),_Digits); double max_volume = NormalizeDouble(SymbolInfoDouble(_Symbol,SYMBOL_VOLUME_MAX),_Digits); if(IncreaseLots > max_volume) { IncreaseLots = max_volume; }
- www.mql5.com
And read this thread with the examples aout how to fix:
How do you solve the problem of invalid volume?
- 2017.05.18
- www.mql5.com