gooly:
try to define it only once at the head of your EA and not within a function.
try to define it only once at the head of your EA and not within a function.
that's working fine - many thanks
WHRoeder:
gooly: try to define it only once at the head of your EA and not within a function. | Macro's are global from the place defined. They are not within any function. |
I know!
But it is my experience that in case of teaching or advising it is better to give a person some room for 'experiments'.
A try-to-do-formulation causes a different approach to solve the problem than a you-must do. The later might increases the dependency on looking for a next advice. Try-to-do increases the feeling I can do it myself - I hope.
Global or local - they are precompiler directives, with no relation to the code structure.
DeepThought:
Global or local - they are precompiler directives, with no relation to the code structure.
Global or local - they are precompiler directives, with no relation to the code structure.
Thanks all very much - not even sure I understand all the replies ... now working fine.
As always thanks to all for replies
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 believe I have used these 2 routines on several occasions and never had a warning / problem.
When I compile my EA I get the warning "macro redefinition" with line # for line in second routine. Obviously not critical but would like to understand why the warning is occurring and what to do to overcome / prevent this happening again