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
How to get Bar.Status of previous bar ? [SOLVED]
- 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]
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.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 !