Is that even possible? I'm not sure what you mean. I'm taking the values given in the 'ohlc' field in the tick and converting it into minute based, which isn't that relevant given I tried plotting the raw, un-edited, second based ticks as well and it's the same result.
Here's what TVSMOTOR ticks (that I received) from 08/10/2020 look like:-
and here's SBIN for today (12/10/20/20):-
These are plotted as candlesticks only, but the wrong ticks are all going in the negative, that's why it's all red.
Basically, I'm getting all either wrong ticks or they are the same as previous ones, and something is wrong with the volume as well.
I tried changing the tick mode to QUOTE, which fixed it for a few minutes, it seemed to be getting the correct ticks, but then it went back to the same behaviour as before.
I am not doing anything with the ticks that might alter them, just printing them once, then picking them up and pushing them into a table.
Everything outside of 'ohlc' is correct (with the exception of volume maybe), the last price, the depth, the quantities for buy and sell, I can verify everything. Just the ohlc seems stuck for some reason.
I was doing:- Open - > 'open' of the first tick of that minute. Close -> 'close' of the last tick of that minute. High -> highest 'high' in all ticks of that minute. Low -> lowest 'low' in all ticks of that minute.
I will try the one you have mentioned there as well, it might actually work.
But till then, why are even the second based ohlc candles coming wrong? The charts I showed above are from those un-edited second based candles, just as I received them.
Shit. It would've been easier to tell what it actually is if it were marked 'days_ohlc' instead of just 'ohlc' though, just saying.
Okay, now that I've (I think) got the right ohlc, what about the 'volume', is that the correct value for every second? Seems a bit too high compared to what Kite shows for an entire minute!
I'm taking the values given in the 'ohlc' field in the tick and converting it into minute based, which isn't that relevant given I tried plotting the raw, un-edited, second based ticks as well and it's the same result.
Here's what TVSMOTOR ticks (that I received) from 08/10/2020 look like:-
and here's SBIN for today (12/10/20/20):-
These are plotted as candlesticks only, but the wrong ticks are all going in the negative, that's why it's all red.
Basically, I'm getting all either wrong ticks or they are the same as previous ones, and something is wrong with the volume as well.
I tried changing the tick mode to QUOTE, which fixed it for a few minutes, it seemed to be getting the correct ticks, but then it went back to the same behaviour as before.
I am not doing anything with the ticks that might alter them, just printing them once, then picking them up and pushing them into a table.
Open - > 'open' of the first tick of that minute.
Close -> 'close' of the last tick of that minute.
High -> highest 'high' in all ticks of that minute.
Low -> lowest 'low' in all ticks of that minute.
I will try the one you have mentioned there as well, it might actually work.
But till then, why are even the second based ohlc candles coming wrong? The charts I showed above are from those un-edited second based candles, just as I received them.
Is that not how it's supposed to work?
Okay, now that I've (I think) got the right ohlc, what about the 'volume', is that the correct value for every second? Seems a bit too high compared to what Kite shows for an entire minute!