Before posting, please take some time to read the documentation ... MQL5 Reference – How to use algorithmic/automated trading language for MetaTrader 5
In reference to your question, please read the section about functions ... Documentation on MQL5: Language Basics / Functions
Parameters passed to the function can have default values, which are defined by constants of that type.
Documentation on MQL5: Language Basics / Functions
- www.mql5.com
Every task can be divided into subtasks, each of which can either be directly represented in the form of a code, or divided into smaller sub-tasks...
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Does MQL5 allow default values for function parameters, like C++ does?
How can this be implemented?