I'm brand new to coding and have been learning primarily through online tutorials and scouring the internet for resources. Recently, I managed to grasp the basics well enough to modify an Elliot Wave oscillator I found on this forum. Being able to visualize the oscillator line was a significant milestone for me, as it deepened my understanding of C# coding. However, my current challenge lies in converting an MT5 indicator originally coded by mladen back in 2016 into NT8. While I've managed to adjust the calculations accordingly, I'm struggling with integrating the bands into the indicator.
The MT5 Code is this
int levelsPeriod = (int)(SlowPeriod+MathCeil(FastPeriod/2.0)); // This are the levels calculation
int i=(int)MathMax(prev_calculated-1,0); for (; i<rates_total && !_StopFlag; i++)
{
double price = getPrice(Price,open,close,high,low,i,rates_total);
val[i] = iCustomMa(MaMethod,price,FastPeriod,i,rates_total, 0)-iCustomMa(MaMethod,price,SlowPeriod,i,rates_total, 1); // this is the Elliot Oscillator itself
levelUp[i] = (val[i]>0) ? iEma(val[i],levelsPeriod,i,rates_total,2) : (i>0) ? iEma(levelUp[i-1],0,i,rates_total,2) : iEma(0,0,i,rates_total,2);
levelDn[i] = (val[i]<0) ? iEma(val[i],levelsPeriod,i,rates_total,3) : (i>0) ? iEma(levelDn[i-1],0,i,rates_total,3) : iEma(0,0,i,rates_total,3);
levelMi[i] = (levelUp[i]+levelDn[i])*0.5;
I'm seeking assistance in adding bands to the NT8 indicator. I've attached both the original MT5 indicator and the code I've developed for NT8. Any help would be greatly appreciated as I work towards achieving this milestone and reaching my goal. Thank you for your time and effort.
Best Regards,
Telmo
Comment