Hi, I try to create an EA with MQL5 th.... However, I get this [error:',' - open parenthesis expected.] , I don't know what the problem is , would you please help me to solve this error?
// Check how many bars are available int bars = Bars;
that's the problem, this would only work in MQL4 unless you used cross platform code in MQL5
change to
// Check how many bars are available int bars = Bars(_Symbol, _Period);

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
Hi, I try to create an EA with MQL5 that pulls values from another indicator to use as signals for buying and selling. However, I get this [error:',' - open parenthesis expected.] , I don't know what the problem is , would you please help me to solve this error?
';' - open parenthesis expected 60 25
1 errors, 0 warnings 2 1
This is what is shown in line 60 = int bars = Bars;