Can anyone please share k-band and/or MA Genius AFL code?
The Amibroker charting system fetches the data very fast, the lagging or non-lagging totally depends on the live data you are using from the data vendor / data provider, and i am not sure about most lucrative or profitable indicators list, as i think indicators only gives signals or helps for decision using technical analysis.
As per your request check this Keltner Band AFL code
_SECTION_BEGIN("Keltner Bands"); piv = C; CenterLine = EMA(C,34); KTop = CenterLine + 2 * ATR( 15 ); KBot = CenterLine - 2 * ATR( 15 ); Plot(Centerline,"center",IIf(ktop > Ref(ktop,-1) AND kbot > Ref(kbot,-1),colorBlue,IIf(ktop < Ref(ktop,-1) AND kbot < Ref(kbot,-1),colorRed,colorYellow)),styleThick); Plot( KTop, "KBTop" + _PARAM_VALUES(), IIf(ktop > Ref(ktop,-1) AND kbot > Ref(kbot,-1),colorBlue,IIf(ktop < Ref(ktop,-1) AND kbot < Ref(kbot,-1),colorRed,colorYellow)), styleThick ); Plot( KBot, "KBBot" + _PARAM_VALUES(), IIf(ktop > Ref(ktop,-1) AND kbot > Ref(kbot,-1),colorBlue,IIf(ktop < Ref(ktop,-1) AND kbot < Ref(kbot,-1),colorRed,colorYellow)), styleThick ); //Plot( BBandTop( piv, 15, 1 ), "BBTop" + _PARAM_VALUES(), colorYellow, styleDashed ); //Plot( BBandBot( Piv, 15, 1 ), "BBBot" + _PARAM_VALUES(), colorYellow, styleDashed ); _SECTION_END();
Check out McGinely Dynamic indicator below: