xinting_6ym 发表于 2024-2-20 13:05:01

通达信趋势筹码撑压主图指标,助你股海擒牛!

<p data-first-child ><b>指    标    源    码</b></p><p >AAA:=REFDATE(HHV(H,130),DATE);</p><p >BBB:=REFDATE(LLV(L,130),DATE);</p><p >DRAWBAND(AAA,RGB(0,80,80),BBB,RGB(00,00,00));</p><p >MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;</p><p >DKX:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)</p><p >+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)</p><p >+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)</p><p >+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)</p><p >+2*REF(MID,18)+REF(MID,20))/210;</p><p >DKMA:MA(DKX,6);</p><p >DRAWBAND(DKX,RGB(128,128,0),DKMA,RGB(0,0,128));</p><p >STICKLINE(C>O,C,O,3,0),COLOR000077;</p><p >STICKLINE(C>O,C,O,2,0),COLOR000099;</p><p >STICKLINE(C>O,C,O,1,0),COLOR0000BB;</p><p >STICKLINE(C>O,H,L,0,0),COLOR0000FF;</p><p >STICKLINE(C<O,C,O,3,0),COLOR007700;</p><p >STICKLINE(C<O,C,O,2,0),COLOR009900;</p><p >STICKLINE(C<O,C,O,1,0),COLOR00BB00;</p><p >STICKLINE(C<O,H,L,0,0),COLOR00FF00;</p><p >套牢盘%:=100*(1-WINNER(C));</p><p >获利盘%:=100*WINNER(C);</p><p >集中度90%:=(COST(95)-COST(5))/(COST(100))*100;</p><p >集中度70%:=(COST(85)-COST(15))/(COST(100))*100;</p><p >平均成本:=COST(50);</p><p >主力成本:=COST(4);</p><p >短期压力:=HHV(H,20);</p><p >短期支撑:=LLV(L,20);</p><p >PT:=REF(HIGH,1)-REF(LOW,1);</p><p >中价:=(H+L+C)/3;</p><p >近高:=2*中价-LOW;</p><p >近低:=2*中价-HIGH;</p><p >最高:=中价+PT;</p><p >最低:=中价-PT;</p><p >T1:=CONST(IF(获利盘%,1,0));</p><p >T2:=CONST(IF(套牢盘%,1,0));</p><p >T3:=CONST(IF(集中度90%,1,0));</p><p >T4:=CONST(IF(集中度70%,1,0));</p><p >T5:=CONST(IF(平均成本,1,0));</p><p >T6:=CONST(IF(主力成本,1,0));</p><p >T7:=CONST(IF(短期压力,1,0));</p><p >T8:=CONST(IF(短期支撑,1,0));</p><p >T9:=CONST(IF(中价,1,0));</p><p >T10:=CONST(IF(近高,1,0));</p><p >T11:=CONST(IF(近低,1,0));</p><p >T12:=CONST(IF(最高,1,0));</p><p >T13:=CONST(IF(最低,1,0));</p><p >TS1:=IF(T1=1,0+0.03,0);</p><p >TS2:=IF(T2=1,TS1+0.03,TS1);</p><p >TS3:=IF(T3=1,TS2+0.05,TS2);</p><p >TS4:=IF(T4=1,TS3+0.03,TS3);</p><p >TS5:=IF(T5=1,0+0.03,0);</p><p >TS6:=IF(T6=1,TS5+0.03,TS5);</p><p >TS7:=IF(T7=1,TS6+0.05,TS6);</p><p >TS8:=IF(T8=1,TS7+0.03,TS7);</p><p >TS9:=IF(T9=1,0+0.03,0);</p><p >TS10:=IF(T10=1,TS9+0.05,TS9);</p><p >TS11:=IF(T11=1,TS10+0.03,TS10);</p><p >TS12:=IF(T12=1,TS11+0.05,TS11);</p><p >TS13:=IF(T13=1,TS12+0.03,TS12);</p><p >N1:=115;</p><p >N2:=80;</p><p >N3:=45;</p><p >DRAWTEXT(T1=1 AND CURRBARSCOUNT=N1 AND PERIOD=5,AAA-(AAA*TS1),'【获利盘%】'),COLORRED;</p><p >DRAWTEXT_FIX(1,0.980,20,1,'公众号:缠论君'),COLOR666666;</p><p >DRAWTEXT(T2=1 AND CURRBARSCOUNT=N1 AND PERIOD=5,AAA-(AAA*TS2),'【套牢盘%】'),COLOR00FF00;</p><p >DRAWTEXT(T3=1 AND CURRBARSCOUNT=N1 AND PERIOD=5,AAA-(AAA*TS3),'【90%成本集中度】'),COLORYELLOW;</p><p >DRAWTEXT(T4=1 AND CURRBARSCOUNT=N1 AND PERIOD=5,AAA-(AAA*TS4),'【70%成本集中度】'),COLOR008FFF;</p><p >DRAWTEXT(T5=1 AND CURRBARSCOUNT=N2 AND PERIOD=5,AAA-(AAA*TS5),'【平均成本】'),COLORFF99FF;</p><p >DRAWTEXT(T6=1 AND CURRBARSCOUNT=N2 AND PERIOD=5,AAA-(AAA*TS6),'【主力成本】'),COLORFF00FF;</p><p >DRAWTEXT(T7=1 AND CURRBARSCOUNT=N2 AND PERIOD=5,AAA-(AAA*TS7),'【短期压力】'),COLORFFFFBF;</p><p >DRAWTEXT(T8=1 AND CURRBARSCOUNT=N2 AND PERIOD=5,AAA-(AAA*TS8),'【短期支撑】'),COLORF0F000;</p><p >DRAWTEXT(T9=1 AND CURRBARSCOUNT=N3 AND PERIOD=5,AAA-(AAA*TS9),'【中价】'),COLORWHITE;</p><p >DRAWTEXT(T10=1 AND CURRBARSCOUNT=N3 AND PERIOD=5,AAA-(AAA*TS10),'【近高】'),COLORFFFFBF;</p><p >DRAWTEXT(T11=1 AND CURRBARSCOUNT=N3 AND PERIOD=5,AAA-(AAA*TS11),'【近低】'),COLORF0F000;</p><p >DRAWTEXT(T12=1 AND CURRBARSCOUNT=N3 AND PERIOD=5,AAA-(AAA*TS12),'【最高】'),COLORFF99FF;</p><p >DRAWTEXT(T13=1 AND CURRBARSCOUNT=N3 AND PERIOD=5,AAA-(AAA*TS13),'【最低】'),COLORFF00FF;</p><p >DRAWNUMBER(T1=1 AND CURRBARSCOUNT=N1-12 AND PERIOD=5,AAA-(AAA*TS1),CONST(获利盘%)),COLORRED;</p><p >DRAWNUMBER(T2=1 AND CURRBARSCOUNT=N1-12 AND PERIOD=5,AAA-(AAA*TS2),CONST(套牢盘%)),COLOR00FF00;</p><p >DRAWNUMBER(T3=1 AND CURRBARSCOUNT=N1-18 AND PERIOD=5,AAA-(AAA*TS3),CONST(集中度90%)),COLORYELLOW;</p><p >DRAWNUMBER(T4=1 AND CURRBARSCOUNT=N1-18 AND PERIOD=5,AAA-(AAA*TS4),CONST(集中度70%)),COLOR008FFF;</p><p >DRAWNUMBER(T5=1 AND CURRBARSCOUNT=N2-12 AND PERIOD=5,AAA-(AAA*TS5),CONST(平均成本)),COLORFF99FF;</p><p >DRAWNUMBER(T6=1 AND CURRBARSCOUNT=N2-12 AND PERIOD=5,AAA-(AAA*TS6),CONST(主力成本)),COLORFF00FF;</p><p >DRAWNUMBER(T7=1 AND CURRBARSCOUNT=N2-12 AND PERIOD=5,AAA-(AAA*TS7),CONST(短期压力)),COLORFFFFBF;</p><p >DRAWNUMBER(T8=1 AND CURRBARSCOUNT=N2-12 AND PERIOD=5,AAA-(AAA*TS8),CONST(短期支撑)),COLORF0F000;</p><p >通达信指标公式:SMA(MAX(CLOSE-C,0),7,1)/SMA(ABS(CLOSE-C),7,1)*100,NODRAW;</p><p >DRAWNUMBER(T9=1 AND CURRBARSCOUNT=N3-9 AND PERIOD=5,AAA-(AAA*TS9),CONST(中价)),COLORWHITE;</p><p >DRAWNUMBER(T10=1 AND CURRBARSCOUNT=N3-9 AND PERIOD=5,AAA-(AAA*TS10),CONST(近高)),COLORFFFFBF;</p><p >DRAWNUMBER(T11=1 AND CURRBARSCOUNT=N3-9 AND PERIOD=5,AAA-(AAA*TS11),CONST(近低)),COLORF0F000;</p><p >DRAWNUMBER(T12=1 AND CURRBARSCOUNT=N3-9 AND PERIOD=5,AAA-(AAA*TS12),CONST(最高)),COLORFF99FF;</p><p >DRAWNUMBER(T13=1 AND CURRBARSCOUNT=N3-9 AND PERIOD=5,AAA-(AAA*TS13),CONST(最低)),COLORFF00FF;</p><p >HH0:=CONST(HHV(H,75));</p><p >LL0:=CONST(LLV(L,75));</p><p >MM0:=CONST((HH0+LL0)/2);</p><p >HL0:=CONST(IF(CONST(C)>=MM0,LL0-(HH0-LL0)*0.2,HH0+(HH0-LL0)*0.2));</p><p >HH1:=IF(CONST(C)<MM0,HH0*1.01,HL0);</p><p >LL1:=IF(CONST(C)>=MM0,LL0*0.99,HL0);</p><p >HL1:=(HH1+LL1)/2,COLORFFFFFF;</p><p >STICKLINE("MACD.MACD">0,"MACD.MACD"+HL1,HL1,2,1),COLOR00FFFF;</p><p >STICKLINE("MACD.MACD">0 AND "MACD.MACD">REF("MACD.MACD",1),</p><p >"MACD.MACD"+HL1,HL1,2,0),COLORFF00FF;</p><p >STICKLINE("MACD.MACD"<0,"MACD.MACD"+HL1,HL1,2,0),COLOR00FFFF;</p><p >STICKLINE("MACD.MACD"<0 AND "MACD.MACD">REF("MACD.MACD",1),</p><p >"MACD.MACD"+HL1,HL1,2,1),COLORFF00FF;</p><p ><br/> </p>

妖媚近乎妖媚a 发表于 2024-3-25 21:25:25

好东西,收了
页: [1]
查看完整版本: 通达信趋势筹码撑压主图指标,助你股海擒牛!