"Unexpected end of program" and "Unbalanced parentheses" Expert Advisor Problem! - page 5

 
Fernando Carreiro #:

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?

 
Ali Mirzabagherian #: I want to add the DPO oscillator to my 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)

 
Hello friends

Can you please help me to solve this issue


';' - unexpected end of program TEST.mq4 59 42

'{' - unbalanced parentheses TEST.mq4 21 1

 
@09177821210 #Can you please help me to solve this issue 

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.

Reason: