以下是通达信超跌反弹副图公式源码(无源码的请下载附件导入)
W:=2;K:=9;
CP:=100*(C-MA(C,34));
CU:=SMA(CP,W,1);
CZ:=SMA(CU,K,1);
DRAWBAND(CU,RGB(130,0,0),90,RGB(0,0,0));
DRAWBAND(CU,RGB(130,130,130),-90,RGB(220,100,0));
DRAWBAND(CZ,RGB(10,50,10),-90,RGB(150,0,0));
DRAWBAND(90,RGB(38,77,77),-90,RGB(38,77,77));
边:-100,COLOR336699,DOTLINE;
界:0,COLOR333333,DOTLINE;
坑:100,COLOR339966,DOTLINE;
P1:CU,COLOR00FF00,LINETHICK2;
P2:CZ,COLOR0000FF,LINETHICK2;
DRAWTEXT(CROSS(CU,100),135,'顶'),colorlired;
DRAWTEXT(CROSS(CZ,100),135,'坑'),COLORFFFF00;
DRAWTEXT(CROSS(-100,CU),-125,'关注'),COLORFFFFFF;
DRAWTEXT(CROSS(-100,CZ),-120,'超跌'),coloryellow;
DRAWICON(CROSS(P1,P2) AND P1<=10 AND P2<=10,P1,17);
DRAWICON(REF((C-REF(C,8))/REF(C,8)*100>10 AND P1>REF(P1,1),1) AND P1<REF(P1,1),P1,16);
535144811.png
|