-
Why did you post your MT4 question in the MT5 Indicators section instead of the MQL4 section, (bottom of the Root page)?
General rules and best pratices of the Forum. - General - MQL5 programming forum? (2017)
Next time, post in the correct place. I have moved this thread. -
limit = prev_calculated - 1; //--- the main loop of calculations for ATR for (i = limit; i < rates_total; i++)
Your buffers and arrays are set as-series. Yet, your loop is running non-series (towards oldest bars).
How to do your lookbacks correctly #9 — #14 & #19 (2016)
-
Why did you post your MT4 question in the MT5 Indicators section instead of the MQL4 section, (bottom of the Root page)?
General rules and best pratices of the Forum. - General - MQL5 programming forum? (2017)
Next time, post in the correct place. I have moved this thread. -
Your buffers and arrays are set as-series. Yet, your loop is running non-series (towards oldest bars).
How to do your lookbacks correctly #9 — #14 & #19 (2016)
Sorry sir, it's my first time to use the forum, I will pay attention, thank you for you reply.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
This is MT4 code. As a beginner in programming, I've encountered some challenges. While testing this code, I noticed that the latter part of the lines isn't being drawn. I would be incredibly grateful if any of you skilled programmers could help me resolve this issue.