Hi All,
So I have this simple code that Alerts the Value of DEMA.
However when you look at the chart the trendline doesn't seem to hit the correct value of DEMA.
Here's the simple code:
But this is how it's shown in the chart. (please see attached screen shot)
At 2019.01.02 00:00:00 the trendline should be 1.27189266216272. But it sits around 30 pips lower that where it should be.
Thanks in advance.
double valueofDEMA = iCustom(NULL, 0, "DEMA", DEMAPeriod, 0, 1); valueofDEMA = NormalizeDouble(valueofDEMA, _Digits);
try setting the value to 1 bar
double valueofDEMA = iCustom(NULL, 0, "DEMA", DEMAPeriod, 0, 0);
You are passing one parameter. We have no idea which DEMA you are using. This one, for example has price first then
length.
'Double Smooothed EMA' indicator
by 'mladen' for MetaTrader 5 in the MQL5 Code Base
try setting the value to 1 bar
You are passing one parameter. We have no idea which DEMA you are using. This one, for example has price first then
length.
'Double Smooothed EMA' indicator
by 'mladen' for MetaTrader 5 in the MQL5 Code Base
In future please post in the correct section.
I will move this to the MQL4 and MT4 section
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi All,
So I have this simple code that Alerts the Value of DEMA.
However when you look at the chart the trendline doesn't seem to hit the correct value of DEMA.
Here's the simple code:
But this is how it's shown in the chart. (please see attached screen shot)
At 2019.01.02 00:00:00 the trendline should be 1.27189266216272. But it sits around 30 pips lower that where it should be.
Thanks in advance.