以下是通达信起爆点B主图源码副图(无源码的请下载附件导入)
通达信起爆点B主图源码副图
MA1:MA(CLOSE,M1);
MA2:MA(CLOSE,M2);
MA3:MA(CLOSE,M3),COLORMAGENTA;
MA4:MA(CLOSE,M4),COLORGREEN;
N:=10;M:=9;
VAB0:=531;VAB1:=1510000;
VAB2:=VAB0 + VAB1;
AB:=SMA(L,4,3) ;
VAB3:=IF(DATE > VAB2,0,1);
涨停:=IF(REF(C,1)*1.1*VAB3-C<0.01 ,1,0);
HH:=COUNT(涨停,13)>=1;
HD:=COUNT(涨停,21)>=1;
STICKLINE(涨停,OPEN,CLOSE,3.3,0),COLORRED;
STICKLINE(涨停,OPEN,CLOSE,2,0),COLORYELLOW;
STICKLINE(涨停,H,L,0,0),COLORYELLOW;
STICKLINE(涨停,H,L,0.5,0),COLORRED;
STICKLINE(涨停,O,C,3.8,0),LINETHICK2,COLOR000055;
STICKLINE(涨停,O,C,3.2,0),LINETHICK2,COLOR000077;
STICKLINE(涨停,O,C,3,0),LINETHICK2,COLOR000099;
STICKLINE(涨停,O,C,2.5,0),LINETHICK2,COLOR0000BB;
STICKLINE(涨停,O,C,1.5,0),LINETHICK2,COLOR0000DD;
STICKLINE(涨停,O,C,0.5,0),LINETHICK2,COLOR0000FF;
G1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
G2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
G3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));
G4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
A:=BARSLAST(CROSS(30,G1))<2 AND BARSLAST(CROSS(G1,50))<2;
B:=BARSLAST(CROSS(G4,G1))<2 AND G1>G4;
E:=G1>60 AND G4>70;
AA:=A AND B AND E;
STICKLINE(AA,H,L,0,0),COLOR44FFFF;
STICKLINE(AA,C,O,6.1,0),COLOR003333;
STICKLINE(AA,C,O,5,0),COLOR003333;
STICKLINE(AA,C,O,4,0),COLOR116666;
STICKLINE(AA,C,O,3,0),COLOR116666;
STICKLINE(AA,C,O,2,0),COLOR229999;
STICKLINE(AA,C,O,1,0),COLOR229999;
STICKLINE(AA,C,O,0.5,0),COLOR33CCCC;
STICKLINE(AA,C,O,0.2,0),COLOR33CCCC;
STICKLINE(AA,C,O,0,0),COLOR44FFFF;
STICKLINE(AA,H,L,0,0),COLOR44FFFF;
DRAWICON(AA,L-0.15,13);
DRAWTEXT(AA,L*0.96, ' ↖ 牛股起爆点B ')COLORYELLOW;
日:=150;
昨前:=3;
高1:=REF(HHV(H,日),昨前),COLORGREEN,LINETHICK2;
顶:=REFDATE(高1,DATE),COLORGREEN,LINETHICK2;
绝顶:=REFDATE(顶,DATE),NODRAW;
跑:=绝顶=H AND ((C-L)<(O-C) OR (O-L)<(C-O)),COLORGREEN,LINETHICK2;
STICKLINE(跑,C,O,3.5,0),COLOR155500;
STICKLINE(跑,C,O,3.2,0),COLOR155500;
STICKLINE(跑,C,O,3,0),COLOR155500;
STICKLINE(跑,C,O,2.8,0),COLOR155500;
STICKLINE(跑,C,O,2.5,0),COLOR208000;
STICKLINE(跑,C,O,2.1,0),COLOR208000;
STICKLINE(跑,C,O,2,0),COLOR2BAA00;
STICKLINE(跑,C,O,1.8,0),COLOR2BAA00;
STICKLINE(跑,C,O,1.6,0),COLOR35D500;
STICKLINE(跑,C,O,1.2,0),COLOR35D500;
STICKLINE(跑,C,O,1,0),COLOR40FF00;
STICKLINE(跑,C,O,0.8,0),COLOR40FF00;
STICKLINE(跑,C,O,0.5,0),COLOR40FF00;
STICKLINE(跑,C,O,0.2,0),COLOR40FF00;
STICKLINE(跑,C,O,0.1,0),COLOR00DD00;
STICKLINE(跑,C,O,0,0),COLOR00BB00;
STICKLINE(跑,L,H,0,0),COLOR00CC00;
DRAWTEXT(跑,C*1.03,'↖绝顶')COLORYELLOW;
647277871.jpg
647333333.jpg
|