+91-0000000000

}

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

Divergence Indicator

The Divergence Indicator, leveraging Amibroker data, identifies discrepancies between price action and technical indicators like RSI or MACD. AFLs may be used to create this indicator, aiding traders in spotting potential trend reversals or continuations.

/
_SECTION_BEGIN("DI");
r = Param( "Periods", 1, 1, 100, 1 );
s = Param( "First Smoothing Periods", 15, 1, 100, 1 );
u = Param( "Second Smoothing Periods", 5, 1, 100, 1 );

DI = EMA(EMA((C-Ref(C,-r)),s),u);

Plot( DI, "DI("+r+","+s+","+u+")", ParamColor( "Color", colorRed ), ParamStyle("Style") );





_SECTION_END();

Open chat
1
Hi, how can I help you?