'}' - unexpected end of program test.mq5 164 1 and '{' - unbalanced parentheses test.mq5 41 1 - page 2
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
The parenthesis are correctly opened at line 41 and close at line 164, but there, you are confused :
HI Icham,
Great help, thank you very much.
Great you pointed out the mistake,as i am new to MQL, this will help me learn and code in a much proper way.
thank very much
HI Icham,
Great help, thank you very much.
Great you pointed out the mistake,as i am new to MQL, this will help me learn and code in a much proper way.
thank very much
you welcome, that's how one learn 👍
MQL looks like the C++ so ....
you welcome, that's how one learn 👍
MQL looks like the C++ so ....
thank you
First, please correct your code - move the creation of the indicator handle to OnInit (please start reading the Documentation - there are lots of examples there). After that show your code. And only then can I watch.
Sure, am already working on this and looking forward to learn some other things also.
Thank you
I did some cleaning for you with my little knowledge. It is running on strategy tester.
I did some cleaning for you with my little knowledge. It is running on strategy tester.
hello Gerald,
Great thanks for your kindness and great help. I have also try it on strategy tester, indeed this is working great.
Thank you very much
Don't try to use any price or server related functions in OnInit (or on load or in OnTimer before you've received a tick), as there may be no connection/chart yet:
Hello guys, plz can someone help with this two errors and one wornings
error 1: '{' - unbalanced parentheses
void OnTick() {
Error 2:
'}' - unexpected end of program
// Close all open trades
CloseAll();
}
Warnings :
truncation of constant value
Best regards ):
Do you really expect an answer? There are no mind readers here and our crystal balls are cracked.
Always post all relevant code (using Code button) or attach the source file.How To Ask Questions The Smart Way. (2004)
Be precise and informative about your problem
Don't Hijack other threads for your off-topic post. Next time, make your own, new, thread.