OrderTakeProfit() after modifying

To add comments, please log in or register
Batuhan
134
Batuhan  

OrderTakeProfit() does not show the actual take profit price if you modify the take profit value of the order, it shows the original value (it was 0 in my case) present there before modifying.

Is this a normal behaviour or known bug?

William Roeder
18299
William Roeder  

Of course it's normal. Nothing will ever change until you select the order again. OrderClosePrice won't change until you RefreshRates and then re-select.
          www.mql5.com/en/forum/158890/page3#comment_3812636

Batuhan
134
Batuhan  
whroeder1:

Of course it's normal. Nothing will ever change until you select the order again. OrderClosePrice won't change until you RefreshRates and then re-select.
          www.mql5.com/en/forum/158890/page3#comment_3812636


Thank you so much.

To add comments, please log in or register