You wrote | Translates to |
---|---|
#define FLAT = "h1_flat"; ⋮ string trend = FLAT; | string trend = = "h1_flat";; |
You wrote | Translates to |
---|---|
#define FLAT "flat"; ⋮ string trend = FLAT; | string trend = "h1_flat";; |
William Roeder:
No semicolon on #defines.
You wrote | Translates to |
---|---|
You wrote | Translates to |
---|---|
interesting. I think will try to avoid it, looks like makes code less readable :)
thanks
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
Getting error
'=' - operand expected SignalGenerator.mqh 69 25
When I do not use constant but assign string, no error. Does not make sense. What is wrong here? How to assing constant to variable?
Update:
solved - had to be this way. But it did not show any error near #define when it was done wrong. Also does not make sense.