A named value that does not change during program execution. In MQL4/5, constants can be defined with #define
or const
. For example, a constant might define the maximum lot size for safety. Once set, a constant’s value is fixed, ensuring it isn’t modified in code.