Skip to content

Checkup

State Checking

Functions that return parameters of the current state of the client terminal

FunctionAction
GetLastErrorReturns the last error
IsStoppedReturns true, if an mql4 program has been commanded to stop its operation
UninitializeReasonReturns the code of the reason for deinitialization
MQLInfoIntegerReturns an integer value of a corresponding property of a running mql4 program
MQLInfoStringReturns a string value of a corresponding property of a running mql4 program
MQLSetIntegerSets the value of the MQL_CODEPAGE property in an MQL4 program environment
TerminalInfoIntegerReturns an integer value of a corresponding property of a running mql4 program
TerminalInfoDoubleReturns a double value of a corresponding property of a running mql4 program
TerminalInfoStringReturns a string value of a corresponding property of a running mql4 program
SymbolReturns the name of a symbol of the current chart
PeriodReturns the current chart timeframe
DigitsReturns the number of decimal digits determining the accuracy of the price value of the current chart symbol
PointReturns the point size of the current symbol in the quote currency
IsConnectedChecks connection between client terminal and server
IsDemoChecks if the Expert Advisor runs on a demo account
IsDllsAllowedChecks if the DLL function call is allowed for the Expert Advisor
IsExpertEnabledChecks if Expert Advisors are enabled for running
IsLibrariesAllowedChecks if the Expert Advisor can call library function
IsOptimizationChecks if Expert Advisor runs in the Strategy Tester optimization mode
IsTestingChecks if the Expert Advisor runs in the testing mode
IsTradeAllowedChecks if the Expert Advisor is allowed to trade and trading context is not busy
IsTradeContextBusyReturns the information about trade context
IsVisualModeChecks if the Expert Advisor is tested in visual mode
TerminalCompanyReturns the name of company owning the client terminal
TerminalNameReturns client terminal name
TerminalPathReturns the directory, from which the client terminal was launched
Last updated on