A1:=INDEXC;
A2:=INDEXO;
A3:=INDEXH;
A4:=INDEXL;
MA1:MA(A1,P1);
MA2:MA(A1,P2);
MA3:MA(A1,P3);
MA4:MA(A1,P4);
STICKLINE(A1>=A2,A1,A2,3,1),COLORRED;
STICKLINE(A1<A2,A1,A2,3,0),COLORCYAN;
STICKLINE(A1>=A2 AND A3>A1,A3,A1,0,1),COLORRED;
STICKLINE(A1>=A2 AND A2>A4,A2,A4,0,1),COLORRED;
STICKLINE(A1<A2,A3,MAX(A1,A2),0,1),COLORCYAN;
STICKLINE(A1<A2,MIN(A1,A2),A4,0,1),COLORCYAN;
|