void OnStart() int dayoftheweek = DayOfWeek(); bool dayoftheweek()
The function must be declared outside of OnStart().
You cannot declare a function within another function.
OnStart() requires {}
Documentation on MQL5: Constants, Enumerations and Structures / Named Constants / Predefined Macro Substitutions
- www.mql5.com
//| Expert initialization function | //| Expert deinitialization function | //| Expert tick function | //| test1 |...
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
I am new to coding and to this forum and am seeking help with the below code:
Trying to trouble shoot what i did wrong
I am receiving the error 'int' - semicolon expected
Any ideas would be very helpful
thank you