Hi,
This is my first time dabbling with Mql5 code. I wanted to modify a commonly used Mql5 Supertrend Indicator and make it MTF with separate the bars when changing direction.
I did some research and this is what I can come up. From what I've read, iBarShift is required but I'm not sure about rates_total.
Everything looks okay, as I do not receive any errors when adding 2 of this indicator with different timeframes to a chart (eg. indicator set to M1 on a M1 Chart, with the same indicator also added but set to M5) but I can't be sure? Are there any obvious errors? I've commented out some of the original code.
Thanks.
- Coding help
- Multi Timeframe Indicators
- Scripts: Strategy - Set And Forget (with Martingale system) MT4

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