|
(建议在3分钟图中使用), x+ Q- I7 V, @$ m6 T
NN:=BARSLAST(DATE<>REF(DATE,1))+1;8 O p& U y5 Y+ R: a& R, N5 {
KH:=HHV(NN,300);2 ~% Z" j& |- T+ P1 B
VERTLINE(DATE<>REFX(DATE,1)&&ISLASTBAR<>1&&KH<>1,COLORBLUE);5 z B! O- g* Z4 ]6 {- H3 {1 K, v$ [
QQ:=OPI-REF(OPI,1);1 q7 K- j, `* M
K1:=IF(CLOSE>OPEN&&QQ>=0,QQ,0);
KK1:=IF(CLOSE<OPEN&&QQ<0,QQ,0);" X% F8 I" O3 z4 Z# s: I9 D' w/ a
KKK1:=IF(CLOSE=OPEN,QQ*0.5,0);
K2:=IF(CLOSE<OPEN&&QQ>=0,QQ,0);* g* \1 M" J; p" U3 k( s
KK2:=IF(CLOSE>OPEN&&QQ<0,QQ,0); m$ L/ d0 Q0 g! A4 y3 X
DO:=SUM(K1,NN)+SUM(KK1,NN)+SUM(KKK1,NN);
KO:=SUM(K2,NN)+SUM(KK2,NN)+SUM(KKK1,NN);
N4:=IF(NN<=4,NN,4);3 \9 `( H: k* E! v! D
VK1:=IF(CLOSE>=OPEN,VOL,0);/ L$ s8 t W( q% }" g; s
VK2:=IF(CLOSE<=OPEN,VOL,0);
VDO:=SUM(VK1,N4);% W3 z9 [, \8 W
VKO:=SUM(VK2,N4);# p0 M3 @8 S& g L
VDK:=VDO-VKO;
STICKLINE(VDK>=0,VDK,0,COLORRED,0);
STICKLINE(VDK<=0,VDK,0,COLORCYAN,0);# g+ a, d* ~/ k, Y3 W
CC:=SUM(QQ,NN);3 y" L0 }! @6 e: r
DRAWNUMBER(ISLASTBAR&&CC>0,0,CC,0,COLORMAGENTA);
DRAWNUMBER(ISLASTBAR&&CC<0,0,CC,0,COLORBLUE);; [+ K3 `! o- z+ w" V) ~1 ^
POLYLINE(CLOSE>0,DO,COLORRED);5 Z9 \) }$ E( h" ^2 o2 L+ m5 {% R
POLYLINE(CLOSE>0,KO,COLORGREEN);
W:=MOD(NN,5);
J:=BACKSET(ISLASTBAR,5);
DRAWNUMBER(ISLASTBAR,DO,DO,0,COLORYELLOW);
DRAWNUMBER(ISLASTBAR,KO,KO,0,COLORGREEN);
DRAWNUMBER(W=0&&J=0,DO,DO,0,COLORYELLOW);
DRAWNUMBER(W=0&&J=0,KO,KO,0,COLORGREEN);
效果如下:
|
|
|