以下是通达信神龙在天公式主图源码K线图
BL:=MA(CLOSE,125);
HL:=BL+2*STD(CLOSE,170);
ZL:=BL-2*STD(CLOSE,145);
QL:=SAR(125,1,7);
VAR2:=HHV(HIGH,70);
VAR3:=HHV(HIGH,20);
KL:=VAR2*0.83,COLORRED;
LL:=VAR3*0.91,COLORBLUE;
见龙:=CROSS(LL,HL);
钱龙:=CROSS(LL,KL);
STICKLINE(见龙,L ,H ,2,0 )COLORBLUE;
STICKLINE(钱龙,L ,H ,2 ,0)COLORYELLOW;
DRAWTEXT(见龙,H*1.04,’见龙’),COLORMAGENTA;
DRAWTEXT(钱龙,H*1.04,’钱龙’),COLORYELLOW;
MA20:MA(C,20),COLORMAGENTA;
BTMA20:=(CLOSE>MA20) AND (REF(CLOSE,1)>REF(MA20,1)) AND (REF(CLOSE,2)>REF(MA20,2)) AND (REF(CLOSE,3)>REF(MA20,3));
VOL120:=MA(VOL,120);
BTVOL120:= (VOL > VOL120) AND (REF(VOL,1) > REF(VOL120,1)) AND (REF(VOL,2) > REF(VOL120,2));
BB:=C>O AND REF(C,1)<REF(O,1) AND REF(C,2)<REF(O,2) AND REF(C,3)<REF(O,3) AND REF(C,4)>REF(O,4) AND REF(O,3) <REF(C,4) AND V>REF(V,1);
CC:= C>O AND REF(C,1)>REF(O,1) AND REF(C,2)<REF(O,2) AND REF(C,3)<REF(O,3) AND REF(C,4)>REF(O,4) AND REF(O,3) <REF(C,4) AND V>REF(V,1) AND REF(V,1)<REF(V,2);
DD:= C>O AND REF(C,1)<REF(O,1) AND REF(C,2)>REF(O,2) AND REF(C,3)<REF(O,3) AND REF(C,4)>REF(O,4) AND REF(O,3) <REF(C,4) AND V>REF(V,1) AND REF(V,2)<REF(V,3);
FF:= C>O AND REF(C,1)>REF(O,1) AND REF(C,2)>REF(O,2) AND REF(C,3)<REF(O,3) AND REF(C,4)>REF(O,4) AND REF(O,3) <REF(C,4) AND V>REF(V,1) AND REF(V,2)<REF(V,3) AND REF(V,1)<REF(V,2);
GG:=C<REF(C,4) AND REF(C,1)<REF(C,4) AND REF(C,2)<REF(C,4) AND REF(C,3)<REF(C,4) AND REF(O,1)<REF(C,4) AND REF(O,2)<REF(C,4) AND REF(O,3)<REF(C,4) ;
洗盘:=(BB OR CC OR DD OR FF) AND BTVOL120 AND BTMA20 AND GG;
DRAWTEXT(洗盘,L,’洗盘’)COLORWHITE;
上升:=IF(MA20>REF(MA20,1),MA20,DRAWNULL),COLORRED;
下降:IF(MA20<REF(MA20,1),MA20,DRAWNULL),COLORGREEN;
评论(0)