Hello traders. My code down here doesn't place trades when I select risk type as fixed amount or as a risk percent of the account balance. It only places trades when fixed lot size is selected in the user inputs. The CalculateLotSize function should calculate lot sizes based on stop loss distance given by ema distance from entry, because my stop loss is based on ema. More so, the ea doesn't include a take profit which i have tried to set it to 3 times the stop loss. Where do you think I am wrong. Thanks in advance.
- Spreads and order distance from the current price
- Optimization criteria
- MetaTrader 5 Built-in Trading Strategy Tester
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