Exempting a order from a modify periodic function

 

Hello, I was wondering if its possible to change MagicNumber through any function or if someone can point me anyway to exempt a specific order from periodic modification check once a precise condition is met. 


i was thinking about 

**OrderSelect stuffs, for int bla bla bla bla 


if ( OrderStopLoss = X ) 

FunctionToExemptOrder(); 

something like this 


Can anyone help me?