bbia:=(ema(c,1)+ema(c,2)+ema(c,3)+ema(c,4))/4,colorfff000,linethick2;
bbib:=(ema(c,3)+ema(c,6)+ema(c,12)+ema(c,24))/4,colorff99ff,linethick2;
df:bbia-bbib,coloryellow;
if(df>=0,df,0),coloryellow;
if(df<0,df,0),colorfff000;
madf:ema(ema(df,30),3),color00ff00;
0,colorred;