
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
Why are you going to so much trouble? Just use the indicator via the iCustom() call, and if you want to embed the indicator inside the final ".ex5" file, then just declare it as a resource.
you mean I should use the custom.mqh instead of this way?
if so, please let me know how could I do that? (I have to follow the line and rules in custom.mqh)?
how can I add it to an ea?
Don't try to do that. There are no buffers, no IndicatorCounted() or prev_calculated. No way to know if older bars have changed or been added (history update.)
Just get the value(s) of the indicator(s) into EA/indicator (using iCustom) and do what you want with it.
(MT4) Detailed explanation of iCustom - MQL4 programming forum (2017)
Can you please help me to solve this issue
';' - unexpected end of program TEST.mq4 59 42
'{' - unbalanced parentheses TEST.mq4 21 1
If you need help with your code, then please show your code. However, if the code was generated by the ChatGPT, then we cannot help you!
Also, please don't write in ALLCAPS. It is considered shouting and is rude. I edited your post to correct it.