Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1295
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
Thank you, Vitaly. But still I get an error in line ExtTempBuffer[i] = NormalizeDouble((close[i]-open[i])/Point(),2); on element [i}.
1. Check indexes.
2. Why do you need these 2 buffers
if
gives an error in line ExtTempBuffer[i] = NormalizeDouble((close[i]-open[i])/Point(),2); on element [i}.
Catch
1. Check the indices
2. Why do you need these 2 buffers?
With one buffer ExtTempBuffer[i]=ExtTempBuffer[i+1] didn't work, decided to try it this way, but it didn't work either.
With one buffer ExtTempBuffer[i]=ExtTempBuffer[i+1] didn't work, I decided to try it this way, but it didn't work either.
I posted the working code
Catch
Thanks Mark. Same error again on the same line when testing. It's not working in any way.
This is what 2020.11.03 23:38:19.815 2020.07.10 16:10:00 MSBB EURUSD,M5: array out of range in 'MSBB.mq4' (78,20)
Thank you, Mark. Same error again on the same line when testing. It's not working in any way.
This is what it says 2020.11.03 23:38:19.815 2020.07.10 16:10:00 MSBB EURUSD,M5: array out of range in 'MSBB.mq4' (78,20)
I don't get any error, but logs are huge because of
I'm not getting any errors, but the logs are huge because of
Yeah. Same. I don't seem to have accounted for all the conditions. On the signal value many are huge. Thanks for your help. I'll keep looking at the conditions.
It does not open because one of the conditions is not met.
It's
or this
Comment out the two flashes // and you'll see which one it is. That's how you will find the error.
Thanks alexander!
Catch
It compiles without any problems
'MSBB.mq4' MSBB.mq4 1 1
'MovingAverages.mqh' MovingAverages.mqh 1 1
0 errors, 0 warnings, 187 msec elapsed 1 1