How can i know POSITION_REASON at MQL4 ?

 

Hi,

how can i get info about POSITION_REASON at MQL4 ? 

At MQL5 the function is 

PositionGetInteger(POSITION_REASON)

i dont find the function at MQL4

 
Its not existing
 
amando:
Its not existing

so how can i know if the position sent by expert or by mobile ?

 
Netanel Tanami:

so how can i know if the position sent by expert or by mobile ?

Use magic number in your ea

Reason: