MQL4参考 检测 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.