分价表
A0:=BARSCOUNT(CLOSE);
A3:=SYSPARAM(3);
A2:=SYSPARAM(2);
A4:=SYSPARAM(4);
A5:=SYSPARAM(5);
NN0:=(A3 - A2);
NN:=(A0 - A2);
HH1:=((A4 - A5) / 10);
Y0:=(A0 >= A2);
VV0:=IF(((Y0 = 1) AND (SYSPARAM(1) >= A0)),VOL,0);
C1:=IF(BETWEEN(CLOSE,(A4 - (0 * HH1)),(A4 - (1 * HH1))),VV0,0);
C2:=IF(BETWEEN(CLOSE,(A4 - (1 * HH1)),(A4 - (2 * HH1))),VV0,0);
C3:=IF(BETWEEN(CLOSE,(A4 - (2 * HH1)),(A4 - (3 * HH1))),VV0,0);
C4:=IF(BETWEEN(CLOSE,(A4 - (3 * HH1)),(A4 - (4 * HH1))),VV0,0);
C5:=IF(BETWEEN(CLOSE,(A4 - (4 * HH1)),(A4 - (5 * HH1))),VV0,0);
C6:=IF(BETWEEN(CLOSE,(A4 - (5 * HH1)),(A4 - (6 * HH1))),VV0,0);
C7:=IF(BETWEEN(CLOSE,(A4 - (6 * HH1)),(A4 - (7 * HH1))),VV0,0);
C8:=IF(BETWEEN(CLOSE,(A4 - (7 * HH1)),(A4 - (8 * HH1))),VV0,0);
C9:=IF(BETWEEN(CLOSE,(A4 - (8 * HH1)),(A4 - (9 * HH1))),VV0,0);
C10:=IF(BETWEEN(CLOSE,(A4 - (9 * HH1)),(A4 - (10 * HH1))),VV0,0);
V1:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C1,NN0),0),2));
V2:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C2,NN0),0),2));
V3:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C3,NN0),0),2));
V4:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C4,NN0),0),2));
V5:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C5,NN0),0),2));
V6:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C6,NN0),0),2));
V7:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C7,NN0),0),2));
V8:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C8,NN0),0),2));
V9:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C9,NN0),0),2));
V10:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C10,NN0),0),2));
AV0:=MAX(V1,MAX(V2,MAX(V3,MAX(V4,MAX(V5,MAX(V6,MAX(V7,MAX(V8,MAX(V9,V10)))))))));
FILLRGN((((V1 / AV0) >= (NN / NN0)) AND (NN >= 0)),(A4 - (0 * HH1)),((A4 - (1 * HH1)) + 0.05)),colorFFB97A;
FILLRGN((((V2 / AV0) >= (NN / NN0)) AND (NN >= 0)),(A4 - (1 * HH1)),((A4 - (2 * HH1)) + 0.05)),colorFFB97A;
FILLRGN((((V3 / AV0) >= (NN / NN0)) AND (NN >= 0)),(A4 - (2 * HH1)),((A4 - (3 * HH1)) + 0.05)),colorFFB97A;
FILLRGN((((V4 / AV0) >= (NN / NN0)) AND (NN >= 0)),(A4 - (3 * HH1)),((A4 - (4 * HH1)) + 0.05)),colorFFB97A;
FILLRGN((((V5 / AV0) >= (NN / NN0)) AND (NN >= 0)),(A4 - (4 * HH1)),((A4 - (5 * HH1)) + 0.05)),colorFFB97A;
FILLRGN((((V6 / AV0) >= (NN / NN0)) AND (NN >= 0)),(A4 - (5 * HH1)),((A4 - (6 * HH1)) + 0.05)),colorFFB97A;
FILLRGN((((V7 / AV0) >= (NN / NN0)) AND (NN >= 0)),(A4 - (6 * HH1)),((A4 - (7 * HH1)) + 0.05)),colorFFB97A;
FILLRGN((((V8 / AV0) >= (NN / NN0)) AND (NN >= 0)),(A4 - (7 * HH1)),((A4 - (8 * HH1)) + 0.05)),colorFFB97A;
FILLRGN((((V9 / AV0) >= (NN / NN0)) AND (NN >= 0)),(A4 - (8 * HH1)),((A4 - (9 * HH1)) + 0.05)),colorFFB97A;
FILLRGN((((V10 / AV0) >= (NN / NN0)) AND (NN >= 0)),(A4 - (9 * HH1)),((A4 - (10 * HH1)) + 0.05)),colorFFB97A;
C11:=IF(BETWEEN(CLOSE,(A4 - (0 * HH1)),(A4 - (0.5 * HH1))),VV0,0);
C12:=IF(BETWEEN(CLOSE,(A4 - (0.5 * HH1)),(A4 - (1 * HH1))),VV0,0);
C13:=IF(BETWEEN(CLOSE,(A4 - (1 * HH1)),(A4 - (1.5 * HH1))),VV0,0);
C14:=IF(BETWEEN(CLOSE,(A4 - (1.5 * HH1)),(A4 - (2 * HH1))),VV0,0);
C15:=IF(BETWEEN(CLOSE,(A4 - (2 * HH1)),(A4 - (2.5 * HH1))),VV0,0);
C16:=IF(BETWEEN(CLOSE,(A4 - (2.5 * HH1)),(A4 - (3 * HH1))),VV0,0);
C17:=IF(BETWEEN(CLOSE,(A4 - (3 * HH1)),(A4 - (3.5 * HH1))),VV0,0);
C18:=IF(BETWEEN(CLOSE,(A4 - (3.5 * HH1)),(A4 - (4 * HH1))),VV0,0);
C19:=IF(BETWEEN(CLOSE,(A4 - (4 * HH1)),(A4 - (4.5 * HH1))),VV0,0);
C20:=IF(BETWEEN(CLOSE,(A4 - (4.5 * HH1)),(A4 - (5 * HH1))),VV0,0);
V11:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C11,NN0),0),2));
V12:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C12,NN0),0),2));
V13:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C13,NN0),0),2));
V14:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C14,NN0),0),2));
V15:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C15,NN0),0),2));
V16:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C16,NN0),0),2));
V17:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C17,NN0),0),2));
V18:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C18,NN0),0),2));
V19:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C19,NN0),0),2));
V20:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C20,NN0),0),2));
AV01:=MAX(V11,MAX(V12,MAX(V13,MAX(V14,MAX(V15,MAX(V16,MAX(V17,MAX(V18,MAX(V19,V20)))))))));
FILLRGN((((V11 / AV01) >= (NN / NN0)) AND (NN >= 0)),(A4 - (0 * HH1)),((A4 - (1 * HH1)) + 0.05)),colorFF0000;
FILLRGN((((V12 / AV01) >= (NN / NN0)) AND (NN >= 0)),(A4 - (1 * HH1)),((A4 - (2 * HH1)) + 0.05)),colorFF0000;
FILLRGN((((V13 / AV01) >= (NN / NN0)) AND (NN >= 0)),(A4 - (2 * HH1)),((A4 - (3 * HH1)) + 0.05)),colorFF0000;
FILLRGN((((V14 / AV01) >= (NN / NN0)) AND (NN >= 0)),(A4 - (3 * HH1)),((A4 - (4 * HH1)) + 0.05)),colorFF0000;
FILLRGN((((V15 / AV01) >= (NN / NN0)) AND (NN >= 0)),(A4 - (4 * HH1)),((A4 - (5 * HH1)) + 0.05)),colorFF0000;
FILLRGN((((V16 / AV01) >= (NN / NN0)) AND (NN >= 0)),(A4 - (5 * HH1)),((A4 - (6 * HH1)) + 0.05)),colorFF00FF;
FILLRGN((((V17 / AV01) >= (NN / NN0)) AND (NN >= 0)),(A4 - (6 * HH1)),((A4 - (7 * HH1)) + 0.05)),colorFF00FF;
FILLRGN((((V18 / AV01) >= (NN / NN0)) AND (NN >= 0)),(A4 - (7 * HH1)),((A4 - (8 * HH1)) + 0.05)),colorFF00FF;
FILLRGN((((V19 / AV01) >= (NN / NN0)) AND (NN >= 0)),(A4 - (8 * HH1)),((A4 - (9 * HH1)) + 0.05)),colorFF00FF;
FILLRGN((((V20 / AV01) >= (NN / NN0)) AND (NN >= 0)),(A4 - (9 * HH1)),((A4 - (10 * HH1)) + 0.05)),colorFFFF;
多空:=OPEN;
STICKLINE((CLOSE > 多空),HIGH,LOW,0.5,0),colorFF;
STICKLINE(((CLOSE > 多空) AND (CLOSE > OPEN)),OPEN,CLOSE,8,0),color102088;
STICKLINE(((CLOSE > 多空) AND (CLOSE > OPEN)),OPEN,CLOSE,7,0),color102099;
STICKLINE(((CLOSE > 多空) AND (CLOSE > OPEN)),OPEN,CLOSE,6,0),color1020AA;
STICKLINE(((CLOSE > 多空) AND (CLOSE > OPEN)),OPEN,CLOSE,5,0),color1020BB;
STICKLINE(((CLOSE > 多空) AND (CLOSE > OPEN)),OPEN,CLOSE,4,0),color1020CC;
STICKLINE(((CLOSE > 多空) AND (CLOSE > OPEN)),OPEN,CLOSE,3,0),color1020DD;
STICKLINE(((CLOSE > 多空) AND (CLOSE > OPEN)),OPEN,CLOSE,2,0),color1020EE;
STICKLINE(((CLOSE > 多空) AND (CLOSE > OPEN)),OPEN,CLOSE,1,0),color1020FF;
STICKLINE(((CLOSE > 多空) AND (CLOSE < OPEN)),OPEN,OPEN,8,0),color102088;
STICKLINE(((CLOSE > 多空) AND (CLOSE < OPEN)),OPEN,OPEN,7,0),color102099;
STICKLINE(((CLOSE > 多空) AND (CLOSE < OPEN)),OPEN,OPEN,6,0),color1020AA;
STICKLINE(((CLOSE > 多空) AND (CLOSE < OPEN)),OPEN,OPEN,5,0),color1020BB;
STICKLINE(((CLOSE > 多空) AND (CLOSE < OPEN)),OPEN,OPEN,4,0),color1020CC;
STICKLINE(((CLOSE > 多空) AND (CLOSE < OPEN)),OPEN,OPEN,3,0),color1020DD;
STICKLINE(((CLOSE > 多空) AND (CLOSE < OPEN)),OPEN,OPEN,2,0),color1020EE;
STICKLINE(((CLOSE > 多空) AND (CLOSE < OPEN)),OPEN,OPEN,1,0),color1020FF;
STICKLINE((CLOSE < 多空),HIGH,LOW,0.5,0),colorFF8800;
STICKLINE(((CLOSE < 多空) AND (CLOSE < OPEN)),OPEN,CLOSE,8,0),colorFF7700;
STICKLINE(((CLOSE < 多空) AND (CLOSE < OPEN)),OPEN,CLOSE,7,0),colorFF8800;
STICKLINE(((CLOSE < 多空) AND (CLOSE < OPEN)),OPEN,CLOSE,6,0),colorFF9900;
STICKLINE(((CLOSE < 多空) AND (CLOSE < OPEN)),OPEN,CLOSE,5,0),colorFFAA00;
STICKLINE(((CLOSE < 多空) AND (CLOSE < OPEN)),OPEN,CLOSE,4,0),colorFFBB00;
STICKLINE(((CLOSE < 多空) AND (CLOSE < OPEN)),OPEN,CLOSE,3,0),colorFFCC00;
STICKLINE(((CLOSE < 多空) AND (CLOSE < OPEN)),OPEN,CLOSE,2,0),colorFFDD00;
STICKLINE(((CLOSE < 多空) AND (CLOSE < OPEN)),OPEN,CLOSE,1,0),colorFFEE00;
STICKLINE(((CLOSE < 多空) AND (CLOSE > OPEN)),OPEN,OPEN,8,0),colorFF7700;
STICKLINE(((CLO |