Can someone please help write EFS to plot this custom but very simple ATR based bollinger band concept.
Here is the logic structure of the plotting program
Variables
MA= ExponentialMovAvg (Close, 21 period)
ATR = ExponentialAvgerage(ATR,8) //8 period Wilders Avergae True Range
The study should plot following 7 lines.
UpperBand3= MA + 3*ATR;
UpperBand2 = MA + 2*ATR;
UpperBandl = MA+ 1.5*ATR;
Moving Average (MA);
LowerBandl = MA - 1.5*ATR;
LowerBand2 = MA - 2.62*ATR;
LowerBand3 = MA - 3.23*ATR;
If any similar EFS or study already exist please point me to it, and I'll attempt to modify the code to suit my requirement.
Many thanks in advance for your help !!
Here is the logic structure of the plotting program
Variables
MA= ExponentialMovAvg (Close, 21 period)
ATR = ExponentialAvgerage(ATR,8) //8 period Wilders Avergae True Range
The study should plot following 7 lines.
UpperBand3= MA + 3*ATR;
UpperBand2 = MA + 2*ATR;
UpperBandl = MA+ 1.5*ATR;
Moving Average (MA);
LowerBandl = MA - 1.5*ATR;
LowerBand2 = MA - 2.62*ATR;
LowerBand3 = MA - 3.23*ATR;
If any similar EFS or study already exist please point me to it, and I'll attempt to modify the code to suit my requirement.
Many thanks in advance for your help !!
Comment