DA:EMA(CLOSE,3),COLORGREEN;
DB:EMA(CLOSE,5) ,COLORGREEN;
DC:EMA(CLOSE,8) ,COLORGREEN;
DD:EMA(CLOSE,10) ,COLORGREEN;
DE:EMA(CLOSE,12) ,COLORGREEN;
DF:EMA(CLOSE,15) ,COLORGREEN;
CA:EMA(CLOSE,30),COLORRED;
CB:EMA(CLOSE,35) ,COLORRED;
CC:EMA(CLOSE,40) ,COLORRED;
CD:EMA(CLOSE,45) ,COLORRED;
CE:EMA(CLOSE,50) ,COLORRED;
CF:EMA(CLOSE,60) ,COLORRED;
CG:EMA(CLOSE,90) ,COLORRED;
CH:EMA(CLOSE,100) ,COLORRED;
CI:EMA(CLOSE,120) ,COLORRED;
HH:=MAX1(DA,DB,DC,DD,DE,DF,CA,CB,CC,CD,CE,CF,CG,CH,CI);
LL:=MIN1(DA,DB,DC,DD,DE,DF,CA,CB,CC,CD,CE,CF,CG,CH,CI);
DRAWCOLORKLINE(C>HH,COLORRED,1);
DRAWCOLORKLINE(C<LL,COLORGREEN,1);
DRAWCOLORKLINE(C>HH AND ISDOWN,COLORRED,0);
DRAWCOLORKLINE(C<LL AND ISDOWN,COLORGREEN,0);
