Incorrect candle Open/Close output
Created at 04 Jan 2015, 14:03
MA
Incorrect candle Open/Close output
04 Jan 2015, 14:03
protected override void OnTick() { Print(Server.Time + "Open: {0}, Close: {1}", MarketSeries.Open.Last(2), MarketSeries.Close.Last(2)); }
When running the above in a bot, it does not display a candle Open/Cose anywhere near the value of the candles of that same area.
The candles in that area are around 1.20312 at that time, however the output is showing 1.20137/1.20110. This is Using tick data as the option from the drop down. Any idea what could be wrong?
marcusrider
04 Jan 2015, 14:51
I ended up solving my problem by using OnBar instead of OnTick. However, I would like to use OnTick. Does anyone know how to fix this using OnTick()?
@marcusrider