inputs:
FastLen( 12),
SlowLen( 26),
Length( 10 ),
StDv(1);
VARS:
BB_Macd(0),
Avg(0),
SDev(0),
Upper_band(0),
Lower_band(0);
BB_Macd= MACD( Close, FastLen, SlowLen ) ;
Avg = XAverage(BB_Macd,Length);
SDev = StdDev( BB_Macd, Length ) ;
Upper_Band = Avg + StDv * SDev ;
Lower_Band = Avg - StDv * SDev ;
Plot1(BB_Macd);
Plot2(Upper_Band);
Plot3(Lower_Band);