PLOT_DRAW_BEGIN vs filling start of buffer with empty values
- MQL5 Indicator - Is there an easy way to hide the 0th value?
- How to hide indicator plot
- [Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2.
-
Never worry about performance, until you have a problem and have measured it, isolated where, changed it, and re-verified. I doubt there is any measurable difference.
-
Unless you don't look at any previous bars (zero lookback), you must “start on that index” to avoid array exceeded.
How to do your lookbacks correctly #9 — #14 & #19 (2016) -
I've never used draw begin on MT4, just let the buffer values default to empty. On MT5, most indicators just initialize the buffer to empty when previous_calculated is zero.