MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  Standard constants  Uninitialize reason codes

 
Use the opportunities of
MQL5 in MetaTrader 5
Study the new MQL5 language
Study the new MQL5 language.
Reference is already available

Uninitialize reason codes returned by UninitializeReason() function. It can be any one of the following values:

ConstantValueDescription
 0Script finished its execution independently.
REASON_REMOVE1Expert removed from chart.
REASON_RECOMPILE2Expert recompiled.
REASON_CHARTCHANGE3symbol or timeframe changed on the chart.
REASON_CHARTCLOSE4Chart closed.
REASON_PARAMETERS5Inputs parameters was changed by user.
REASON_ACCOUNT6Other account activated.