My current code works which is:
protected override void OnBarUpdate()
{
// print A format (T&S)
// 2021 12 28 7 53 18 0.000000 0.000000 4796.500000 86054 ^
sw.WriteLine(Times[1][0].Year + " " + Times[1][0].Month + " " + Times[1][0].Day + " " + Times[1][0].Hour + " " + Times[1][0].Minute + " " + Times[1][0].Second + " " + GetCurrentBid() + " " + GetCurrentAsk() + " " + Close[0] + " " + g_volume + " " + Tiki ); // Append a new line to the file
...
}
But I noticed that bids and ask prices are not aligning properly to ninja time and sales window bids and asks for the last tick.
What method I can call to get the (bid ask last) and volume data from the current tick?

Comment