ok thx i checked my implementation once more and I implemented it exactly like you mentioned but there is still a problem - i get the following data:
28-06 19:54:41 FINE Added Streamdata: Time : 19:54:40.00487 Price: 0.07151 Name: BTC-ETH Nounce:26450 Ordertype: BUY Filltype: null
28-06 19:54:41 FINE Added Streamdata: Time : 19:54:40.00487 Price: 0.07150999 Name: BTC-ETH Nounce:26450 Ordertype: BUY Filltype: null
28-06 19:54:41 FINE Added Streamdata: Time : 19:54:40.00487 Price: 0.07150999 Name: BTC-ETH Nounce:26450 Ordertype: BUY Filltype: null
28-06 19:54:41 FINE Added Streamdata: Time : 19:54:40.00487 Price: 0.07131646 Name: BTC-ETH Nounce:26450 Ordertype: BUY Filltype: null
in this special case the milliseconds are exactly the same - tradingview ignores the last 3 updates and shows an price at 0.07151 in my view the price should be 0.07131646 (and this causes my problem at the open and close)
any ideas on this?