HomeAmibroker AFL Histogram Style Moving Average Differences - Amibroker AFL Code Click Image To Enlarge. Please Rate And Comment. /*MA Diff 20 by Larry Lovrencic*/ T=20; /*Time Period for MA*/ KMA=((C-MA(C,T))/MA(C,T))*100; Graph0=KMA; Graph0Style=2+4; Graph0BarColor=IIf(KMA>0,5,4); GraphXSpace=5;