Referencing specific Bars
Created at 26 Jan 2021, 21:06
JA
Referencing specific Bars
26 Jan 2021, 21:06
HI, I was just wondering if there is a way to reference back to a specific bar instead of just .last(x)?
Replies
jackhpfilerrowson
27 Jan 2021, 00:18
RE: RE:
Thanks for the reply Prosteel1, Ill give that a go
@jackhpfilerrowson
prosteel1
26 Jan 2021, 21:18 ( Updated at: 26 Jan 2021, 21:30 )
RE:
jackhpfilerrowson said:
I use the .Count where the zero Count is the earliest bar in the history and as new bars form the .Count increases.
I use this so I can assign charts to a specific Count that doesn't change (unless more history is loaded after the bot is started by scrolling).
Can't find a better example then the below atm sorry.
Basically declare: Bars series0 = MarketData.GetBars(Daily);
and then you can use series0.Count which is for a specific bar that doesn't change.
@prosteel1