Your EA is broken. It doesn't adjust for different account currencies.
How to fix it?
I've just tested a simple strategy on demo account of mt5, then I got that error while on real account but with XTS as my currency
U mean this?
_MAHA_ #: I've just tested a simple strategy on demo account of mt5, then I got that error while on real account but with XTS as my currency. U mean this? https://www.mql5.com/en/articles/113
Yes, but you should also consider how your EA is calculating the volume. - Is it considereing the risk of the stop loss or just the margin?
- Is it using the tick size and the tick value, both to calculate the risk of the stop-loss?
- Is it checking the minimum and maximum allowed volume per order, as well as the volume step size?
- Is it considering the maximum limit of all the open positions as well?
- Is it checking the margin used for the volume in question?
- Is it checking the available free margin as well?
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
XTS is the currency of my country defiend by my broker, and the expert advisor cant perform a long/short position cuz of not enough money[no money]...
10000000 XTS is not small amount, by changing XTS to USD then the Robot can make auto tradeing