BUG? MarketSeries LastValue for Open, Close, Low, High returns the same value
BUG? MarketSeries LastValue for Open, Close, Low, High returns the same value
16 Nov 2017, 09:13
I get the same value for Open, Close, Low & High from MarketSeries LastValue
This is my test code
protected override void OnBar()
{
base.OnBar();
Print("MarketSeries.TimeFrame: {0} | MarketSeries.Open: {1} | MarketSeries.Close: {2} | MarketSeries.Low: {3} | MarketSeries.High: {4}", MarketSeries.OpenTime.LastValue.ToString(), MarketSeries.Open.LastValue, MarketSeries.Close.LastValue, MarketSeries.Low.LastValue, MarketSeries.High.LastValue);
}
A sample result:
12/11/2017 18:01:00.322 | MarketSeries.TimeFrame: 13/11/2017 12:01:00 a. m. | MarketSeries.Open: 1275.5 | MarketSeries.Close: 1275.5 | MarketSeries.Low: 1275.5 | MarketSeries.High: 1275.5
12/11/2017 18:02:00.199 | MarketSeries.TimeFrame: 13/11/2017 12:02:00 a. m. | MarketSeries.Open: 1275.57 | MarketSeries.Close: 1275.57 | MarketSeries.Low: 1275.57 | MarketSeries.High: 1275.57
12/11/2017 18:03:00.386 | MarketSeries.TimeFrame: 13/11/2017 12:03:00 a. m. | MarketSeries.Open: 1275.32 | MarketSeries.Close: 1275.32 | MarketSeries.Low: 1275.32 | MarketSeries.High: 1275.32
I tested with diferent symbols and time frames
Am I doing something wrong?