Pls share this AFL Sir.
(If others using it,pls share.)
(If others using it,pls share.)
Code:
tf = 15 ;
p1 = 8 ;
p2 = 21 ;
expandmode = expandLast ;
tfs = tf * in1Minute ;
TimeFrameSet(tfs) ;
MAfast = EMA(C, p1) ;
MAslow = MA(C, p2) ;
TimeFrameRestore() ;
MAfaste = TimeFrameExpand(MAfast, tfs, expandmode) ;
MAslowe = TimeFrameExpand(MAslow, tfs, expandmode) ;
Plot(MAfaste, "15fast", colorBlack, styleThick|styleNoRescale) ;
Plot(MAslowe, "15slow", colorGreen, styleThick|styleNoRescale) ;