+91-0000000000

}

Monday – Friday : 9:00 AM – 6:30 PM

Dinapoli Displaced MA

Dinapoli Displaced Moving Average, powered by Amibroker data, involves shifting the Moving Average (MA) to the right or left on the chart. By applying AFLs within Amibroker, traders displace the MA to anticipate potential market trends or reversals, refining trading strategies.

/
_SECTION_BEGIN("Dinapoli displaced MA");
P = ParamField("Field");
Type = ParamList("Type", "Simple,Exponential,Double Exponential,Tripple Exponential,Wilders,Weighted");
Periods = Param("Periods", 3, 2, 100 );
Displacement = Param("Displacement", 3, -50, 50 );
m = 0;

if( Type == "Simple" ) 					m = MA( P, Periods );
if( Type == "Exponential" ) 			m = EMA( P, Periods );
if( Type == "Double Exponential" ) 	m = DEMA( P, Periods );
if( Type == "Tripple Exponential" ) 	m = TEMA( P, Periods );
if( Type == "Wilders" ) 				m = Wilders( P, Periods );
if( Type == "Weighted" ) 				m = WMA( P, Periods );

Plot( m, _DEFAULT_NAME(), ParamColor("Color", ColorCycle), styleLine, 0, 0, Displacement );
_SECTION_END();

Open chat
1
Hi, how can I help you?