const string SSRC_INDICATOR = "Custom_Path\\SSRCR";Open "«DataFolder»\MQL4\Indicators\«Custom_path»\" and see that you do actually have a ssrcr.ex4 in there.
Data Structure in MetaTrader 4 Build 600 and Higher - MQL4 Articles 2014.02.03
const string SSRC_INDICATOR = "Custom_Path\\SSRCR";
static double currentSSRC = iCustom(NULL, _primaryTradingTimeframe, SSRC_INDICATOR,totalBars,snakeRange,filterPeriod,martFiltr,priceConst, 0, shift);
William Roeder:
Open "«DataFolder»\MQL4\Indicators\«Custom_path»\" and see that you do actually have a ssrc.ex4 in there.
Data Structure in MetaTrader 4 Build 600 and Higher - MQL4 Articles 2014.02.03
Yes, it's actually in the target path. The EA was able to load the indicator and read it, the only problem I'm having is that it's not reading the right
values.
Open "«DataFolder»\MQL4\Indicators\«Custom_path»\" and see that you do actually have a ssrc.ex4 in there.
Data Structure in MetaTrader 4 Build 600 and Higher - MQL4 Articles 2014.02.03
lippmaje:
Thanks, I got the point you're making.
I extracted the above code out of my EA and attached another copy of the same SSCR indicator in question. The EA was able to load the indicator and read it, the only problem I'm having is that it's not reading the right values.
lippmaje:
Did you remove the static? Show all of
the relevant code and the output you got if it doesn't work.
Yes, thanks.
I eventually discovered that the problem is with the indicator and it does not worth the headache!
Cheers.
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
Dear Forum,
I've been struggling to read the attached SSRC indicator values without success for days. The value returned by my code is different from what is displayed in the Data Window with same timeframe as the code. For some unknown reasons, the three values are the same and different from the actual SSRC indicator on the chart.
I have used icustom function without problem before and painfully I can't figure out what is wrong with the below code. Please, help me to figure out what I'm doing wrong!