rookypipskiller:
Hello
I have a pb that i can't solve :
ab is correct (i can see it in a buffer), bc is correct too but 1/(ab*ac) return an error !
Can you explain me wghy ?
How do you know that bc is correct?
Where is pos assigned a value?
Is this on a live chart or the tester?
I think ab of bc is zero sometimes but not all the time.
might be a reason why
On MT4: Unless the current chart is that specific
symbol(s)/TF(s) referenced, you must handle 4066/4073
errors before accessing candle/indicator values.
Download history in MQL4 EA - Forex Calendar - MQL4 programming forum - Page 3 #26 № 4
Download history in MQL4 EA - Forex Calendar - MQL4 programming forum - Page 3 #26 № 4
Thank you, there must be an error while reading a candle.
The pos value is the number of the candle in the loop that reads the candles ...
rookypipskiller: The pos value is the number of the candle
in the loop that reads the candles ...
You are assuming that both symbols have the same index and bar count.
Don't mix apples
and oranges.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Hello
I have a pb that i can't solve :
ab is correct (i can see it in a buffer), bc is correct too but 1/(ab*ac) return an error !
Can you explain me wghy ?