It does some calculation every time a tick data is received (BarsInProgress==1) and shows the result and does a reset in the calculation at the close of the bar (BarsInProgress==0) (CalculateOnBarClose is set to true). The issue is that the last tick of the current bar of dataseries 0 is received after triggering the event close of the bar. So the data of the last tick is always added to the next bar of the dataseries 0. I don't know how to solve this issue because I don't understand why I receive the last tick of the current bar after receiving the trip of BarsInProgress==0.
Thanks for the help
Comment