You can use SetIndexShift ("MQL4: SetIndexShift") function.
Read also article "MQL4: Features of Custom Indicators Creation"
Read also article "MQL4: Features of Custom Indicators Creation"

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
I have developed code that attempts to predict the future price. It is fairly accurate.
What I would like is to be able to see this visually.
I was wondering if the MetaQuotes system could be changed to allow writing to positive positions, i.e. future dates.
At the moment, the current position is 0. The previous bar is 1, etc. How about allowing -1 to be the next bar in the future. -2 is two bars in the future from the current price, etc
Thank you