is it possible to change the magic number of the order while closing it partially ?

 

I was just wondering if its possible to change the magic number of the remaining order , once its been closed partially ?

for example if i have 1.0 lot open and its magic number is 140, now if this order is closed partially (0.3 lots are closed from original trade) then the remaining opened lot for that order will be 0.7 , and I was wondering if the magic number for that 0.7 lot order can be changed ?


thank you 

 
i don't think so.
and for what?
 
Sagheer Asghar:

I was just wondering if its possible to change the magic number of the remaining order , once its been closed partially ?

for example if i have 1.0 lot open and its magic number is 140, now if this order is closed partially (0.3 lots are closed from original trade) then the remaining opened lot for that order will be 0.7 , and I was wondering if the magic number for that 0.7 lot order can be changed ?


thank you 

See the order close function. It doesn't have an input for magic number so No.

OrderClose - Trade Functions - MQL4 Reference
OrderClose - Trade Functions - MQL4 Reference
  • docs.mql4.com
OrderClose - Trade Functions - MQL4 Reference
Reason: