2012.10.26 16:25:33 PivotCandles(EURUSD,H1) zero divide in 'PivotCandlesClass.mqh' (245,49)
What can be the problem?
I understand that the problem is with m_volatility, but where exactly it is necessary to look in the code and rework it all, it is easier to find out from the author.
2012.10.26 16:25:33 PivotCandles (EURUSD,H1) zero divide in 'PivotCandlesClass.mqh' (245,49)
What can be the problem?
I understand that the problem is with m_volatility, but it is easier to find out from the author where exactly it is necessary to look in the code and rework the whole code.
Thanks for finding the error
Indeed, one line in the code of PivotCandlesClass.mqh class needs to be fixed:
if ((m_candles[0].high - m_candles[0].low) / m_volatility * 100.0 >= iVolatilityPercent)
to
if (m_candles[0].high - m_candles[0].low >= iVolatilityPercent / 100.0 * m_volatility)
No matter how I compile it, it always gives an error. And I don't know how to fix it. That's why the file is not detected in the indicators. The error is in the picture.
No matter how I compile it, it always gives an error. And I don't know how to fix it. That's why the file is not detected in the indicators. The error is in the picture.
You probably have the file opened by another programme
And here's what it looks like in another programme - already 9 errors!!!
No matter how I compile it, it keeps giving an error. And it's not clear how to fix it. That's why the file is not detected in the indicators. The error is in the picture.
sergeev:
probably you have the file opened by another programme
This is what happens when several platforms are on the same computer - first open a debugger from an open platform and find a file in it and compile it.
I have a problem in the PivotCandles.mq5 indicator's OnCalculate event.. The open,high,low,close array member elements are all returning the same value. That is the same value in [i] for each OHLC index. Also the time first element in the array is reporting 1971 as the date. It appears as if the array passed into OnCalculate is not valid.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
2012.10.26 16:25:33 PivotCandles(EURUSD,H1) zero divide in 'PivotCandlesClass.mqh' (245,49)
What can be the problem?
I understand that the problem is with m_volatility, but where exactly it is necessary to look in the code and rework it all, it is easier to find out from the author.
2012.10.26 16:25:33 PivotCandles (EURUSD,H1) zero divide in 'PivotCandlesClass.mqh' (245,49)
What can be the problem?
I understand that the problem is with m_volatility, but it is easier to find out from the author where exactly it is necessary to look in the code and rework the whole code.
Thanks for finding the error
Indeed, one line in the code of PivotCandlesClass.mqh class needs to be fixed:
to
UPD: The article and source have been corrected.
No matter how I compile it, it always gives an error. And I don't know how to fix it. That's why the file is not detected in the indicators. The error is in the picture.
No matter how I compile it, it always gives an error. And I don't know how to fix it. That's why the file is not detected in the indicators. The error is in the picture.
You probably have the file opened by another programme
or writing to the folder is prohibited
astrohelper:
And here's what it looks like in another programme - already 9 errors!!!
No matter how I compile it, it keeps giving an error. And it's not clear how to fix it. That's why the file is not detected in the indicators. The error is in the picture.
probably you have the file opened by another programme
or writing to the folder is prohibited
Thank you, it worked.
I find a slight similarity between 'shooting stars'/'hammer' and the Chakin Indicator
Thanks for this.
I have a problem in the PivotCandles.mq5 indicator's OnCalculate event.. The open,high,low,close array member elements are all returning the same value. That is the same value in [i] for each OHLC index. Also the time first element in the array is reporting 1971 as the date. It appears as if the array passed into OnCalculate is not valid.
Any ideas?