【精选指标】通达信强势龙头主图指标,助你股海擒牛!
指 标 源 码
XA1:=IF(DATE<99999999,1,DRAWNULL);
牛熊线
小牛:=CROSS(C,牛熊线);
DRAWTEXT(小牛,L,'↖走强区')*XA1,COLORRED,LINETHICK4;
DRAWTEXT(ISLASTBAR,牛熊线,'牛熊线'),COLORYELLOW;
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
MXD:=IF((DATETODAY(DATE))<99999999,1,DRAWNULL);
操盘线
安全线:MA(操盘线,11)*XA1*MXD,COLORGRAY,LINESTICK,LINETHICK1;
DRAWTEXT_FIX(1,0.980,20,1,),COLOR666666;
MA20:MA(C,20)*MXD,NODRAW;
趋势线:MA(C,6)*XA1 COLORGREEN, LINETHICK2;
STICKLINE(趋势线>=MA20,CLOSE,OPEN,3,0)*MXD,COLOR0000FF;
STICKLINE(趋势线>=MA20,CLOSE,OPEN,0.5,0)*MXD,COLORCC66FF;
STICKLINE(MA20>趋势线,CLOSE,OPEN,3,0)*MXD,COLORFF9900;
STICKLINE(MA20>趋势线,CLOSE,OPEN,0.5,0)*MXD,COLORFFCC00;
大牛:=CROSS(趋势线,MA20)*XA1;
死牛:=CROSS(MA20,趋势线)*XA1;
DRAWTEXT(大牛,L,'↖行情开始')*XA1,COLORYELLOW,LINETHICK4;
DRAWTEXT(死牛,H,'↖行情结束')*XA1,COLORWHITE ,LINETHICK4;
STICKLINE(CROSS(趋势线,MA20)*MXD,OPEN,CLOSE,2,0),COLOR00FFFF ;
STICKLINE(CROSS(MA20,趋势线)*MXD,OPEN,CLOSE,2,0),COLOR00DD00;
VAR2:=O>MA(C,安全线)*MXD AND C STICKLINE(CROSS(安全线,C),OPEN,CLOSE,2,0)*MXD,COLORFF0000; AMA3:IF(趋势线/REF(趋势线,安全线)>0.997,趋势线,DRAWNULL)*XA1,COLORBLUE,LINETHICK3; AMA4:IF(趋势线/REF(趋势线,安全线)>1.001,趋势线,DRAWNULL)*XA1,COLORRED,LINETHICK3; WH1:=IF(L=LLV(L,9),L,0)*MXD; WH2:=CONST(BARSLAST(WH1!=0))*MXD; WH3:=CONST(IF(WH2=0,H,REF(H,WH2)))*MXD; WH4:=CONST(REF(BARSLAST(H>WH3),WH2+1)+WH2+1)*MXD; WH5:=CONST(IF(WH4=0,H,REF(H,WH4)))*MXD; WH6:=CONST(REF(BARSLAST(H>WH5),WH4+1)+WH4+1)*MXD; WH7:IF(CURRBARSCOUNT<=WH2+10,CONST(IF(WH6=0,H,REF(H,WH6))),DRAWNULL)*MXD,COLORYELLOW,DOTLINE; 通达信指标公式:SMA(MAX(CLOSE-C,0),7,1)/SMA(ABS(CLOSE-C),7,1)*100,NODRAW; DRAWTEXT(ISLASTBAR,WH7,'进场线')*XA1,COLORYELLOW; DP:=IF(C=INDEXC,0,1)*MXD; GJ:=AMOUNT/V/100; 明日阻力:=L+(GJ-L)+(C-L)*MXD; 明日支撑:=L+(C-GJ)*MXD; 今日阻力:REF(明日阻力 , 1)NODRAW; 今日支撑:REF(明日支撑 , 1)NODRAW; DRAWTEXT_FIX(1,0,0.05,0,'金【趋势线上穿安全线是鱼身行情出现的信号】')*XA1,COLORYELLOW; DRAWTEXT_FIX(1,0,0.1,0,'木【趋势线下穿安全线是行情完全结束的信号】')*XA1,COLORGREEN; DRAWTEXT_FIX(1,0,0.15,0,'水【K线变蓝色下穿安全线是行情提前结束的信号】')*XA1,COLORMAGENTA; DRAWTEXT_FIX(1,0,0.2,0,'火【安全线上的红色K线就持股,灰蓝色K线就持币】')*XA1,COLORRED; DRAWTEXT_FIX(1,0,0.25,0,'土【K线上穿牛熊线为强势区,跟着行情死盯一只股买】')*XA1,COLORCYAN;