K:=3; DNDO:=C-MA(C,3);
LX:=K/2;
DOM:=IF(DNDO>0,1,0);
DON:=IF(DNDO<0,1,0);
DOMM:=SUM(DOM,K);
DONN:=SUM(DON,K);
XM:=(MA(DOMM,89)-LX)*100,colorred,LINETHICK1;
LD:=0,colorbrown,LINETHICK1;
LH:100,colorred,LINETHICK2,POINTDOT;
LL:-100,colorgreen,LINETHICK2,POINTDOT;
//PAINTBAND(XM,LD),colorred;
//PAINTBAND(LD,XM),colorgreen;
DRAWBAND(XM ,colorred,LD,colorgreen);
XK:(MA(DOMM,21)-LX)*100,colorblue,LINETHICK2;
//CCI
M:=7;
TYP := (HIGH + LOW + CLOSE)/3;
CCIK:MA((TYP-MA(TYP,M))/(0.015*AVEDEV(TYP,M)),2),colormagenta,LINETHICK1;
N:=89;
CCIM:=(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N));
|
