Hello everyone, I converted this code from MT4 to MT5 but in the MT5 backtest the EA is unable to open any positions even if no errors are detected during compilation. I can't understand why. Is there any error in the logic of the code? Thanks to anyone who is willing to help me.
- unable to download any indicator in the platform
- convert short code from mt4 to mt5
- Divergence EA
Sorry for the mistake.
I'm very inexperienced with MT5, and I'm not sure how to rectifying the code. I'm interested in identifying the errors and learning how to solve them to make it functional.
Dhavderiva #:
Sorry for the mistake.
I'm very inexperienced with MT5, and I'm not sure how to rectifying the code. I'm interested in identifying the errors and learning how to solve them to make it functional.
iStoch and iRSI give you a handle, create it once in OnInit(), use CopyBuffer to access the data.
Read the manual about iRSI and CopyBuffer, look at the examples given.
Hello. If it can help you I made two codes with stochastic and RSI. https://www.mql5.com/en/code/46331 and https://www.mql5.com/en/code/46158

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