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);
主力暗盘1日资金:IF(X_8>0,(X_11+X_12)*X_8,(X_15+X_16)*X_8)/100000000,NODRAW,COLORRED;
STICKLINE(主力暗盘1日资金>0 AND ①③⑤日资金=1,0,主力暗盘1日资金,2.2,0),COLORRED;
STICKLINE(主力暗盘1日资金<0 AND ①③⑤日资金=1,0,主力暗盘1日资金,2.2,0),COLORGREEN;
X_25:=IF(①③⑤日资金=2,主力暗盘1日资金,0);
DRAWBAND(X_25,RGB(255,0,0),0,RGB(0,255,0));
主力暗盘3日资金:REF(主力暗盘1日资金,1)+REF(主力暗盘1日资金,2)+主力暗盘1日资金,NODRAW,COLORYELLOW;
主力暗盘5日资金:REF(主力暗盘1日资金,1)+REF(主力暗盘1日资金,2)+REF(主力暗盘1日资金,3)+REF(主力暗盘1日资金,4)+主力暗盘1日资金,NODRAW,COLORWHITE;
X_26:=IF(①③⑤日资金=4,主力暗盘3日资金,IF(①③⑤日资金=6,主力暗盘5日资金,0));
X_27:=IF(①③⑤日资金=3,主力暗盘3日资金,IF(①③⑤日资金=5,主力暗盘5日资金,0));
DRAWBAND(X_26,RGB(255,0,0),0,RGB(0,255,0));
STICKLINE(X_27>0 AND (①③⑤日资金=3 OR ①③⑤日资金=5),0,X_27,2.2,0),COLORRED;
STICKLINE(X_27<0 AND (①③⑤日资金=3 OR ①③⑤日资金=5),0,X_27,2.2,0),COLORGREEN;