I use the OnTick event to manage the position. When I want to have the current Profit requesting the position with PositionGetDouble(POSITION_PROFIT), I have only the previous tick Profit.
How can I have the very current datas using OnTick, or another event...
Quite easy :
Look at the order console : the profit is always ahead of the datas from PositionGetDouble(POSITION_PROFIT).
Does that mean that if I use another server (from my broker in my case), the prices are not "true" ?
Would you have a hint for me to go ahead to solve this problem ?
Need to refresh the graph to have very last datas shown.