max_volume error causing product validation failure when volume is restricted to 9 lots the product passes validation.?
Benrashi Sagev Jacobson: the error was failed instant sell 10 GBPUSD [Volume limit reached].
Your function returns true/false. Your problem is with the caller's code.
Brokers define the max volume limit. As it seems your code does not respect this limit given by the trade server. That's why you receive the error in the first place.
There are limits for a single deal (SYMBOL_VOLUME_MAX) and for the total position (+pending orders) (SYMBOL_VOLUME_LIMIT). Your EA might be hitting the latter.
Haruto Rat #:
There are limits for a single deal (SYMBOL_VOLUME_MAX) and for the total position (+pending orders) (SYMBOL_VOLUME_LIMIT). Your EA might be hitting the latter.
Your correct comparing the amount of orders to symbol_volume_limit caused the ea to pass validation took a few hours. Do you like the EA and if not why?
There are limits for a single deal (SYMBOL_VOLUME_MAX) and for the total position (+pending orders) (SYMBOL_VOLUME_LIMIT). Your EA might be hitting the latter.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
When the product was not validated the error was failed instant sell 10 GBPUSD [Volume limit reached].