一、通达信专做强势股主图指标公式
DRAWGBK(C>0,RGB(0,10,10),RGB(88,0,0),0,'0',0);
DRAWGBK(C>0,RGB(40,120,20),RGB(00,00,00),0,'0',1);
DRAWGBK(C>0,RGB(80,100,120),RGB(00,00,00),0,'0',1);
STICKLINE(C>=O,H,L,0,1),COLOR0000FF;
STICKLINE(C>O,C,O,2,0),COLOR000066;
STICKLINE(C>O,C,O,1.5,0),COLOR000088;
STICKLINE(C>O,C,O,1,0),COLOR0000AA;
STICKLINE(C>O,C,O,0,0),COLOR0000CC;
STICKLINE(C STICKLINE(O>=C,C,O,2,0),COLORFF8800; STICKLINE(O>=C,C,O,1.5,0),COLORFFAA00; STICKLINE(O>=C,C,O,1,0),COLORFFCC00; STICKLINE(O>=C,C,O,0,0),COLORFFEE00; 平衡线:EMA(C,21),COLOR0066FF; C1:=EMA(INDEXC,144)/MA(C,144); 大盘平衡线:EMA(INDEXC/C1,21),COLOR990000,LINETHICK2; D1:=INDEXO/C1; D2:=INDEXH/C1; D3:=INDEXL/C1; D4:=INDEXC/C1; STICKLINE(D4>=REF(D4,1),D3,D2,0,1),COLOR000066; STICKLINE(D4>=REF(D4,1),D4,D1,2,1),COLOR000066; STICKLINE(D4
STICKLINE(D4
强于大盘买点:=CROSS(平衡线,大盘平衡线) AND EMA(C,21)>REF(EMA(C,21),1); DRAWTEXT(强于大盘买点,平衡线,'.盘'); DIFF:=(EMA(CLOSE,12)-EMA(CLOSE,26))*400; DEA:=EMA(DIFF,9),COLORFFFF00; DRAWBAND(DIFF,RGB(150,0,150),DEA,RGB(0,150,0)); LC:=REF(CLOSE,1); RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100; AR:=SUM(HIGH-OPEN,26)/SUM(OPEN-LOW,26)*100; 卖点雷达:=CROSS(85,RSI1)*30,COLOR00FF00,LINETHICK2; DRAWTEXT(CROSS(85,RSI1),20,'顶'),COLOR00FF00; STICKLINE(卖点雷达,0,20,3,0),COLOR00FF00; VARB:=SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100; VARC:=SMA(MAX(CLOSE-LC,0),13,1)/SMA(ABS(CLOSE-LC),13,1)*100; VARD:=BARSCOUNT(CLOSE); 买点雷达:(VARB< 20 AND VARC< 25 AND VARD> 50 AND AR<70)*30,LINETHICK2,COLOR0078FF; BT1:=CROSS(RSI1,25); DRAWTEXT(BT1,-80,'底'),COLOR0000FF; STICKLINE(BT1,-100,-80,3,0),COLOR0000FF; 主力:EMA( (CLOSE-MA(CLOSE,7))/MA(CLOSE,7)*480,2)*5,LINETHICK1,COLOR0000FF; 控盘:=EMA( (CLOSE-MA(CLOSE,7))/MA(CLOSE,7)*480,2)*3; STICKLINE(控盘<0,控盘,0,5,0),COLORFFAA00; STICKLINE(控盘>REF(控盘,3) AND 控盘>0,控盘,0,8,0),COLORRED; STICKLINE(控盘0,控盘,0,5,0),COLOR008800; 小股民:EMA( (CLOSE-MA(CLOSE,11))/MA(CLOSE,11)*480,7)*5,LINETHICK2,COLORC87800; BT2:=CROSS(主力,小股民) AND 主力<-10; DRAWICON(CROSS(RSI1,25),主力,26); DRAWICON(CROSS(主力,小股民) AND 主力<-10,主力,23); BT:=FILTER(COUNT(BT1 OR BT2,3)>=2,3); STICKLINE(BT,0,50,4,1),COLOR0000FF; DRAWTEXT(BT,50,'天知底'),COLOR0000FF; STICKLINE(BT2,0,20,3,0),COLORFF00FF; DRAWTEXT(BT2,20,'天知升'),COLORFF00FF; 买:IF((CROSS(主力,小股民) AND 主力<-10),1,0),LINETHICK3,COLORC87800;二、通达信跟庄擒牛指标公式