It looks like you're new here. If you want to get involved, click one of these buttons!
private void setChangeForTick(Tick tick, double lastTradedPrice, double closePrice){
if (closePrice != 0)
tick.setNetPriceChangeFromClosingPrice((lastTradedPrice - closePrice) * 100 / closePrice);
else
tick.setNetPriceChangeFromClosingPrice(0);
}
So, what exactly is this Close Price? Close of Previous Day? If so, then it is very good data to have. If not, what is it?
There are some edge cases in the exchange streamed data. Hence we are calculating those fields since all the underlying data is already streamed.
Are you saying that the "Close Price" field (Bytes 40 - 44) is "Previous Day Close Price"?