Normally when the Buffers are printed, the minimum shift is 0. So you can only see the values from the past till now.
My goal is to print the current value of shift 0 not just now, but till the end of the day.
How can I do that ? It's an easier way to visualize for ex. Support/Resistance etc. My indicator uses an IndexStyle type DRAW_LINE.
Help is appreciated.
Hi Joao. If you know, in the standard Alligator indicator, three MAs are shifted forward by 3, 5 and 8 candles(bars). They programmed it this way:
// Setting the line shift when drawing:
// Skip the first bars:
Maybe this piece of code will help you.
Thanks Victor. You are right. Since the index cannot be negative, instead it uses the IndexShift to print the Line in the future. I guess something similar is used also in the " Ichimoku " indicator.
Will test it. Appreciated.