X_1:=(OPEN-REF(CLOSE,1))/REF(CLOSE,1);
X_2:=(CLOSE-OPEN)/OPEN;
X_3:=(HIGH-OPEN)/OPEN;
X_4:=(CLOSE-HIGH)/HIGH;
X_5:=(LOW-OPEN)/OPEN;
X_6:=(CLOSE-LOW)/LOW;
X_7:=X_1+X_2+X_3+X_4+X_5+X_6;
X_8:=IF(X_7>=1,0.8,X_7);
X_9:=L2_AMO(0,0);
X_10:=L2_AMO(1,0);
X_11:=L2_AMO(2,0);
X_12:=AMOUNT-X_11-X_10-X_9;
X_13:=L2_AMO(0,1);
X_14:=L2_AMO(1,1);
X_15:=L2_AMO(2,1);
X_16:=AMOUNT-X_15-X_14-X_13;
X_17:=IF(X_8>0,X_9+X_11*X_8,X_9);
X_18:=IF(X_8>0,X_10+X_12*X_8,X_10);
X_19:=IF(X_8>0,X_11-X_11*X_8,X_11);
X_20:=IF(X_8>0,X_12-X_12*X_8,X_12);
X_21:=IF(X_8<=0,X_13-X_15*X_8,X_13);
X_22:=IF(X_8<=0,X_14-X_16*X_8,X_14);
X_23:=IF(X_8<=0,X_15+X_15*X_8,X_15);
X_24:=IF(X_8<=0,X_16+X_16*X_8,X_16);
X_25:=X_17+X_18;
X_26:=X_21+X_22;
X_27:=(X_25-X_26)/100000000;
(X_25-X_26)/100000000,NODRAW;
STICKLINE(X_27>0,0,X_27,2.2,0),COLORRED;
STICKLINE(X_27<0,0,X_27,2.2,0),COLORLIBLUE;