ST
Retreive Current bar and the previous bar in OnTick
24 Dec 2013, 16:17
I want to access the current and previous bar high / low using the MarketSeries in OnTick, however, I don't know what to fill for index.
protected override void OnTick()
{
MarketSeries.High[???];
}
Thanks.

Spotware
24 Dec 2013, 16:56
You have two ways to access current and previous values.
First way is to use indexes:
Second way is to use Last method of DataSeries class:
@Spotware