Questions from Beginners MQL5 MT5 MetaTrader 5 - page 205
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
hello all, it doesn't look like the post is for newbies questions oh gee whiz where to ask with dp 200 what advisor will work?
Dear Sirs, I ask to have an experienced eye on "attempt number one". The subject is: I have obtained a code by "crossing" a fractal indicator written in MQL5 and azzx_larry-2.0 indicator, the essence of which is to exclude the so called "interior bars" while searching for an extremum (attached). When compiling, we get four errors, all of them are in that part of the code which was borrowed from azzx written in "4". Questions arose when interpreting the "errors":
1. Why is the for statement (place in the code - underlined) proposed to be placed in Global. ('for' - expressions are not allowed on a global scope).
2. Why does the compiler consider High[bar] and Low[bar] (also underlined in the code) undeclared, while several lines above in the code there are High[i] and Low[i] which it does not consider errors.
('High' - undeclared identifier, 'Low' - undeclared identifier).
3. The same goes for limit - why the compiler considers it undeclared. ('limit' - undeclared identifier).
PS: part of the code (fractal indicator) is derived from mql5 documentation, and part of the code from azzx_larry2.0 indicator is derived from mql4 codobase, author azzx
А робот случаем не из Маркета?
there are High[i] and Low[i] in the code, which it does not count as errors. 3. The same goes for limit - why the compiler considers it undeclared
You have an early closing curly bracket here:
Or several lines are missing, because they are not declared.
You have an early closing curly bracket here:
Or several lines are missing because they are not announced
Thank you for your participation. The bracket has been moved to the end of the code, compilation gave 16 errors - something to work on.
i don't think this post is for beginners so why don't you tell me where to ask a newbie with a 200dpa what advisor will do?
I have added an indicator to the chart from the EA - how do I colour this indicator now? The indicator uses 3 lines, I would like to make them all 3 different colours and thickness.
You can use felt-tip pens on the monitor.)