MQL4 Reference Checkup UninitializeReason

UninitializeReason

Returns the code of a reason for deinitialization.

int  UninitializeReason();

Returned Value

Returns the value of _UninitReason which is formed before OnDeinit() is called. Value depends on the reasons that led to deinitialization.