OrderTakeProfit() and OrderStopLoss() doesnt return right value

 

hi, i have problem with updating order with function OrderModify..


- in first cycle for i have classic OrderSelect with right symbol and type

- in this first cycle i change with OrderModify SL, TP or both together...

- everything is all right, in Experts i have message with succesfull modify ..ok

- in second cycle again - for sure - i have same classic OrderSelect with right symbol and type

- and i wanna change Trailing stop aka SL of this same ticket

- and there is a problem... for same ticket he has returned me SL = 0, TP=0.. unchanged???!!! from previous change in first cycle...


where can be problem? may be little time from previous changing? only 0,110 sec... good to see attach pic, form this is obvious all

what i write before...


thanks

Files:
 
Source?
 
fxsaber:
Source?

it doesnt matter now...and yes i have true... its the problem betwen OrderModify one right after another very quickly...

i put there test for TimeCurrent()+1...and everything is allright...

thanks

 
seic:
...

where can be problem? may be little time from previous changing? only 0,110 sec... good to see attach pic, form this is obvious all

what i write before...


thanks

In your code. Post it if you want coding help.

Reason: