以下是通达信牛万能主图指标
通达信牛万能主图指标
源码
N:=250;P:=5;
AA:MA(C,N),LINETHICK2,COLOR0000FF;
BB:=REF(AA,1);
CC:=REF(AA,2);
DD:=REF(AA,3);
TJ11:=BB>CC;
TJ22:=FILTER(COUNT(CROSS(C,AA),21)>=1,21);
XG:=TJ11 AND TJ22 ;
DRAWICON(XG,LOW*0.96,23);
DRAWTEXT(XG,LOW*0.99,'金');
DRAWTEXT(XG,LOW*0.98,'牛');
TEND:EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),42),POINTDOT,COLORFF00FF,LINETHICK4;
WLT1:=EMA(C,3),COLORBLUE,LINETHICK1;
WLT2:=EMA(C,5),COLORWHITE,LINETHICK1;
WLT3:=EMA(WLT2,5),COLOR00FF00,LINETHICK1;
QQ:= C
MM:=WLT1>REF(WLT1,1) AND REF(WLT1,1)
MM0:=WLT1REF(WLT1,2) ;
WL:=CROSS(WLT1,WLT2);
WL1:=CROSS(WLT2,WLT1);
WL2:=CROSS(WLT1,TEND);
WL3:=LLV(LOW,55);
WL6:=HHV(HIGH,21);
WL8:=LLV(LOW,21);
DRAWICON(WL AND MM AND CWL6*0.6,LOW*0.97,23);
DRAWICON(WL2 AND C>TEND AND C
DRAWTEXT(WL2 AND C>TEND AND C
DRAWTEXT(WL2 AND C>TEND AND C
{DRAWICON(MM0 AND C>WL8*1.2,HIGH*1.03,15);}
SAL:=FILTER(CROSS(TEND,C) AND C
WLT1WL8*1.2,13);
{DRAWICON(CROSS(TEND,C) AND C
WLT1WL8*1.2,HIGH*1.03,15);}
DRAWICON(SAL,HIGH*1.03,15);
TJ1:=WL AND MM AND CWL6*0.8;
TJ2:=WL2 AND C>TEND;
TJ3:=TJ1 OR TJ2;
TJ4:=COUNT(TJ3,3)=2;
DRAWICON(FILTER(TJ4,3),LOW*0.95,23);
STICKLINE(WL AND MM AND CWL6*0.8,C,O,4,0),COLOR009999;
STICKLINE(WL AND MM AND CWL6*0.8,C,O,2.5,0),COLOR00BBBB;
STICKLINE(WL AND MM AND CWL6*0.8,C,O,1,0),COLOR00DDDD;
STICKLINE(WL AND MM AND CWL6*0.8,C,O,0.3,0),COLOR00FFFF;
STICKLINE(WL2 AND C>TEND,C,O,4,0),COLOR000099;
STICKLINE(WL2 AND C>TEND,C,O,2.5,0),COLOR0000BB;
STICKLINE(WL2 AND C>TEND,C,O,1,0),COLOR0000DD;
STICKLINE(WL2 AND C>TEND,C,O,0.3,0),COLOR0000FF;
STICKLINE(MM0 AND C>WL8*1.2,C,O,4,0),COLOR990000;
STICKLINE(MM0 AND C>WL8*1.2,C,O,2.5,0),COLORBB0000;
STICKLINE(MM0 AND C>WL8*1.2,C,O,1,0),COLORDD0000;
STICKLINE(MM0 AND C>WL8*1.2,C,O,0.3,0),COLORFF0000;
DRAWBAND(WLT1,RGB(255,255,0),WLT2,RGB(256,200,0));