David902 发表于 2023-9-21 00:01:21

【精选指标】通达信强势龙头主图指标,助你股海擒牛!

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

rfwwqeq 发表于 2023-10-16 04:06:55

好贴不能沉!

殷离不悔潮 发表于 2023-11-6 02:11:21

谢谢,谢谢!找了很久了!

永恒之恋恋恋惺 发表于 2023-11-24 14:48:44

楼主哪儿来的这么多好东西!

杵臼交照 发表于 2024-1-27 02:06:57

good!vevy good!

蔡妍之 发表于 2024-4-8 16:25:25

看帖回帖是美德!:lol
页: [1]
查看完整版本: 【精选指标】通达信强势龙头主图指标,助你股海擒牛!