
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
I am quite new to coding in mql5 and have written my own EA.
It seems to work fine in the strategy tester and places both long and short trades.
But in live trading it only places long trades and has not placed any shorts.
I suspect it has something to do with my code for calculation lot size based on a % of my equity.
Can someone tell me if there is something wrong with this code or does anyone have any suggestions why my EA works in the tester but doesn't take shorts in live trading?
Any help would be much appreciated.