// Downloaded From https://www.WiseStockTrader.com
Type = ParamList("Type", "Simple,Exponential,Double Exponential,Tripple Exponential,Wilders,Weighted");
Periods = Param("Periods", 6, 2, 300 );
Displacement = Param("Displacement", 4, -50, 50 );
m1 = 0;
m2 = 0;

if( Type == "Simple" ) {					
	m1 = MA( H, Periods );
	m2 = MA( L, Periods);
}
if( Type == "Exponential" ) 			{					
	m1 = EMA( H, Periods );
	m2 = EMA( L, Periods);
}

if( Type == "Double Exponential" ) 	{					
	m1 = DEMA( H, Periods );
	m2 = DEMA( L, Periods);
}

if( Type == "Tripple Exponential" ) 	{					
	m1 = TEMA( H, Periods );
	m2 = TEMA( L, Periods);
}

if( Type == "Wilders" ) 				{					
	m1 = Wilders( H, Periods );
	m2 = Wilders( L, Periods);
}

if( Type == "Weighted" ) 				{					
	m1 = WMA( H, Periods );
	m2 = WMA( L, Periods);
}


Plot( m1, _DEFAULT_NAME(), ParamColor("ColorTop", colorGreen), ParamStyle("Style"), 0, 0, Displacement );
Plot( m2, _DEFAULT_NAME(), ParamColor("ColorBottom", colorRed), ParamStyle("Style"), 0, 0, Displacement );

PlotOHLC(m1,m1,m2,m2,"DMACloud",ParamColor("ColorChannel", colorYellow),styleCloud,Null,Null,Displacement);
// Uncomment line below to plot price if Indicator is not overlaid a Price chart
//Plot(C,"Close",colorBlack,styleCandle);