Max bars forward error

Questions about MultiCharts and user contributed studies.
damageboy
Posts: 70
Joined: 15 Sep 2006
Been thanked: 14 times

Max bars forward error

Postby damageboy » 19 Oct 2006

I'm getting this weird error for the first time with freshly ported code from TS.

A dialog pops up sometimes saying:

Code: Select all

Max bars forward error. Bars reference value : -79.


What does it exactly mean?
I'm guessing something is doing something nasty such as:

Code: Select all

//Crash me
Value1 = Close[-79]


However if I run the above code it produces the following runtime error:

Code: Select all

Trying access at data to future. Bars reference value : -79.


Can someone in MC explain what causes max bars forward error I'm getting?

Nick
Posts: 490
Joined: 04 Aug 2006
Has thanked: 4 times
Been thanked: 24 times

Postby Nick » 20 Oct 2006

I believe I am getting this error (without a number). Its not a study I really use so have not had time to investigate.

Cheers,
nick.

User avatar
Alex Kramer
Posts: 834
Joined: 23 Feb 2006

Postby Alex Kramer » 20 Oct 2006

The problem with
Trying access at data to future. Bars reference value : -79.
happens when you're referencing future data, i.e. data that has not arrived yet.
The
Max bars forward error. Bars reference value : -79.
is a bit trickier - it happens when you have set a Bars To The Right limit so the bars cannot be generated in the space where bars cannot be drawn.


Return to “MultiCharts”