Array values

 

Hello,


from another software than Metatrader I'm used to the following:

When adressing Array values (for example Bars) - in the past - values from 1 upwards are used. Value 0 ist the present bar. (like MT)

When adressing Array values - in the future - negative values are used.

How does MT4 handles theses issues: would the Bar Close[-1] be possible to adress the next Bar (in the future)?


for tips thanks in advance                       9

 

As every professional program even MT4 has a documentation either here at the top of this page or in the editor (=>Help)

There you find everything you need!

 
That would be nice to address bars in the future, but I am afraid it would break Einstein's theories.
 
Future bars do not exist. You cannot get any values from a bar that does not exist
Reason: