STICKLINE(CLOSE,0,10,4,1),COLORGRAY;
STICKLINE(CLOSE,0,9,4,1),COLORGRAY;
STICKLINE(CLOSE,0,8,4,1),COLORGRAY;
STICKLINE(CLOSE,0,7,4,1),COLORGRAY;
STICKLINE(CLOSE,0,6,4,1),COLORGRAY;
STICKLINE(CLOSE,0,5,4,1),COLORGRAY;
STICKLINE(CLOSE,0,4,4,1),COLORGRAY;
STICKLINE(CLOSE,0,3,4,1),COLORGRAY;
STICKLINE(CLOSE,0,2,4,1),COLORGRAY;
STICKLINE(CLOSE,0,1,4,1),COLORGRAY;
X_1:=(HIGH+LOW+CLOSE)/3;
X_2:=AMOUNT/IF(HIGH=LOW,4,HIGH-LOW);
X_3:=X_2*(MIN(OPEN,CLOSE)-LOW);
X_4:=X_2*(X_1-MIN(CLOSE,OPEN));
X_5:=X_2*(HIGH-MAX(OPEN,CLOSE));
X_6:=X_2*(MAX(CLOSE,OPEN)-X_1);
X_7:=(X_3+X_4-(X_6+X_5))/10000;
X_8:=SUM(X_7,1);
X_9:=SUM(X_7,2);
X_10:=SUM(X_7,3);
X_11:=SUM(X_7,4);
X_12:=SUM(X_7,5);
X_13:=SUM(X_7,6);
X_14:=SUM(X_7,7);
X_15:=SUM(X_7,8);
X_16:=SUM(X_7,9);
X_17:=SUM(X_7,10);
X_18:=X_8>0;
X_19:=X_9>0;
X_20:=X_10>0;
X_21:=X_11>0;
X_22:=X_12>0;
X_23:=X_13>0;
X_24:=X_14>0;
X_25:=X_15>0;
X_26:=X_16>0;
X_27:=X_17>0;
DRAWICON(X_27>0,9.5,40);
DRAWICON(X_26>0,8.5,40);
DRAWICON(X_25>0,7.5,40);
DRAWICON(X_24>0,6.5,40);
DRAWICON(X_23>0,5.5,40);
DRAWICON(X_22>0,4.5,40);
DRAWICON(X_21>0,3.5,40);
DRAWICON(X_20>0,2.5,40);
DRAWICON(X_19>0,1.5,40);
DRAWICON(X_18>0,0.5,40);