{内外盘差}
PJ:=(H+L+C)/3;
V1:=IF(H=L,1,H-MAX(O,C));
V2:=IF(H=L,1,MAX(C,O)-PJ);
V3:=IF(H=L,1,MIN(O,C)-L);
V4:=IF(H=L,1,PJ-MIN(C,O));
V5:=VOL/IF(H=L,4,H-L);
V6:=(V1*V5)+(V2*V5);
V7:=(V3*V5)+(V4*V5);
WP1:=DYNAINFO(23);
NP1:=DYNAINFO(22);
WP2:=IF(ISLASTBAR,V7*240/FROMOPEN,V7);
NP2:=IF(ISLASTBAR,V6*240/FROMOPEN,V6);
WP【外】:IF(ISLASTBAR AND PERIOD=5 ,WP1,WP2),NODRAW;
NP【内】:IF(ISLASTBAR AND PERIOD=5 ,NP1,NP2),NODRAW;
日差【手】:WP【外】-NP【内】,NODRAW;
周差【手】:SUM(日差【手】,5),NODRAW;
十日差【手】:SUM(日差【手】,10),LINETHICK2,COLORYELLOW,NODRAW;
月差【手】:SUM(日差【手】,22),NODRAW;
STICKLINE(日差【手】>O,0,日差【手】,2,0),COLORRED;
STICKLINE(日差【手】