X1:=(3*INDEXC+INDEXO+INDEXH+INDEXL)/6; X2:=EMA(X1,6);
X3:=EMA(X2,5);
STICKLINE(X2>=X3,INDEXL,INDEXH,1,0),colorred;
STICKLINE(X2>=X3 AND INDEXC>INDEXO ,INDEXC,INDEXO,9,1),colorred;
STICKLINE(X2>=X3 AND INDEXC<INDEXO ,INDEXC,INDEXO,9,0),colorlired;
STICKLINE(X2<X3,INDEXL,INDEXH,1,0),colorgreen;
STICKLINE(X2<X3 AND INDEXC>INDEXO ,INDEXC,INDEXO,9,1),colorgreen;
STICKLINE(X2<X3 AND INDEXC<INDEXO ,INDEXC,INDEXO,9,0),colorligreen;
|
