Can i get AFL for ATR Trailing Stop (3,21) similar to kite?

Can i get AFL for ATR Trailing Stop (3,21) similar to kite?

check the below code for ATR  Average True Range

_SECTION_BEGIN("ATR");
periods = Param( "Periods", 15, 1, 200, 1 );
Plot( ATR(periods), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );
_SECTION_END();