How to get Bar.Status of previous bar ?  [SOLVED]

Questions about MultiCharts .NET and user contributed studies.
radekj
Posts: 113
Joined: 28 Apr 2008
Has thanked: 20 times
Been thanked: 1 time

How to get Bar.Status of previous bar ?

Postby radekj » 30 Aug 2012

How to get Bar.Status of previous bar or of any bar in the past?

This.Bars.Status[1] or this.Bars[1].Status does not work !

ciao
radekj

User avatar
JoshM
Posts: 2195
Joined: 20 May 2011
Location: The Netherlands
Has thanked: 1544 times
Been thanked: 1565 times
Contact:

Re: How to get Bar.Status of previous bar ?  [SOLVED]

Postby JoshM » 30 Aug 2012

How to get Bar.Status of previous bar or of any bar in the past?

This.Bars.Status[1] or this.Bars[1].Status does not work !
I don't understand what you're trying to accomplish here. When the current bar is active, all previous bars have EBarState.Close. In other words, there's no need to refer the bar status of previous bars, since all bars before the current bar are per definition closed bars.

radekj
Posts: 113
Joined: 28 Apr 2008
Has thanked: 20 times
Been thanked: 1 time

Re: How to get Bar.Status of previous bar ?

Postby radekj » 30 Aug 2012

First, i dont know what is the status of previous bars because i can not look at it, that why i ask !

Second, look at all Posts with topic "Barstatus" Barstatus(1) !


Return to “MultiCharts .NET”