米老鼠和蓝精鼠v 发表于 2023-11-1 15:25:19

「指标酷之」通达信分析主图指标公式源码

<p data-first-child >「指标酷之」通达信分析主图指标公式源码</p><p class="ztext-empty-paragraph"><br/></p><p >顶底开关:=1;</p><p >点位差:=1;</p><p >指定点:=10;</p><p >笔:=0;</p><p >M1:=0;</p><p >M2:=0;</p><p >M3:=0;</p><p >M4:=0;</p><p >DRAWGBK(O>0,RGB(33,47,58),RGB(0,0,0),0,'02',0);</p><p >{标缺口}</p><p >LL:=REF(L,1);HH:=REF(H,1);上跳:=L>HH;下跳:=H<LL;</p><p >STICKLINE(L>REF(H,1),L,REF(H,1),3.1,-1),COLORRED;</p><p >STICKLINE(REF(L,1)>H,REF(L,1),H,3.1,-1),COLORGREEN;</p><p >{灰色}</p><p >STICKLINE(O>=C,H,L,0,0),COLOR909090;</p><p >STICKLINE(O>=C,C,O,3.1,0),COLOR606060;</p><p >STICKLINE(O>=C,C,O,2.1,0),COLOR707070;</p><p >STICKLINE(O>=C,C,O,1.2,0),COLOR808080;</p><p >STICKLINE(O>=C,C,O,0.2,0),COLOR909090;</p><p >STICKLINE(O<=C,H,L,0,0),COLOR666B6F;</p><p >STICKLINE(C>O,C,O,3.1,1),COLOR666B6F;</p><p >V2V:=V/REF(V,1)>=1.9 AND C>REF(C,1);</p><p >{金黄色}</p><p >STICKLINE(V2V,H,L,0,0),COLORYELLOW;</p><p >STICKLINE(V2V,O,C,3.1,0),COLOR0033FF;</p><p >STICKLINE(V2V,O,C,2.1,0),COLOR0077FF;</p><p >STICKLINE(V2V,O,C,1.1,0),COLOR00BBFF;</p><p >STICKLINE(V2V,O,C,0.1,0),COLOR00FFFF;</p><p >{涨停粉}</p><p >ZT:=C/REF(C,1)>1.097;</p><p >ZT数:COUNT(ZT,BARSSINCE(ZT)),NODRAW;</p><p >{涨停红色}</p><p >ZDF:=(C-REF(C,1))/REF(C,1)*100;</p><p >STICKLINE(ZDF>9.5,C,O,3.1,0),COLOR0000CC;</p><p >STICKLINE(ZDF>9.5,C,O,2.1,0),COLOR0000DD;</p><p >STICKLINE(ZDF>9.5,C,O,1.2,0),COLOR0000EE;</p><p >STICKLINE(ZDF>9.5,C,O,0.2,0),COLOR0000FF;</p><p >STICKLINE(ZDF>9.5,H,L,0,0),COLOR0000FF;</p><p >{跌停绿色}</p><p >STICKLINE(ZDF<-9.9,O,C,3.1,0),COLOR66CC66;</p><p >STICKLINE(ZDF<-9.9,O,C,2.1,0),COLOR77DD77;</p><p >STICKLINE(ZDF<-9.9,O,C,1.2,0),COLOR88EE88;</p><p >STICKLINE(ZDF<-9.9,O,C,0.2,0),COLOR99FF99;</p><p >STICKLINE(ZDF<-9.5,H,L,0,0),COLOR99FF99;</p><p >均价:=AMO/VOL/100;</p><p >假阴真阳:=C<O AND C>=REF(MIN(C,O),1) AND 均价>REF(均价,1);</p><p >{蓝}</p><p >DT:=假阴真阳;</p><p >STICKLINE(DT,H,L,0,0),COLORFFAA00;</p><p >STICKLINE(DT,O,C,3,0),COLORFF3300;</p><p >STICKLINE(DT,O,C,2,0),COLORFF7700;</p><p >STICKLINE(DT,O,C,1,0),COLORFFAA00;</p><p >STICKLINE(DT,O,C,0.1,0),COLORFFFF00;</p><p >YX:=REF(O,BARSLAST(假阴真阳));</p><p >假阴实顶:YX,COLORFF7700,NODRAW;</p><p >STICKLINE(V,YX,YX,1,0),COLORFF7700;</p><p >L0:=点位差/100;</p><p >前极点精准线:IF(顶底开关=0,CONST(REF(L,指定点)),CONST(REF(H,指定点))),COLOR178448;</p><p >DRAWICON(ABS(L-前极点精准线)<=L0,前极点精准线*0.99,38);</p><p >DRAWICON(ABS(H-前极点精准线)<=L0,前极点精准线*1.01,39);</p><p >{H极点精准线:CONST(REF(H,指定点)),COLOR7777FF;</p><p >DRAWICON(ABS(H极点精准线-H)<=L0,H极点精准线*1.01,35);</p><p >DRAWICON(ABS(H极点精准线-L)<=L0,H极点精准线*0.99,34);}</p><p >{极点精准线:CONST(L),COLOR0077FF;</p><p >DRAWICON(ABS(L-极点精准线)<=L0,极点精准线*0.99,1);</p><p >DRAWICON(ABS(H-极点精准线)<=L0,极点精准线*1.01,2);</p><p >同向极点精准数:COUNT(ABS(L-极点精准线)<=L0,60)-1,COLOR0077FF,NODRAW;</p><p >异向极点精准数:COUNT(ABS(H-极点精准线)<=L0,60),COLOR0077FF,NODRAW;</p><p >XG:=同向极点精准数>0 AND 异向极点精准数>0;}</p><p >DIFF:=10*(EMA(CLOSE,12)-EMA(CLOSE,26));</p><p >DEA:=EMA(DIFF,9);</p><p >MACD:=2*(DIFF-DEA);</p><p >量缩价涨:=C<REF(O,1) AND V<REF(V,1) AND MACD>REF(MACD,1) AND C>REF(C,1) AND REF(C<O,1) AND C>O;</p><p >阴KDAY:=BARSLAST(量缩价涨)+1;</p><p >STICKLINE(V,REF(O,阴KDAY),REF(O,阴KDAY),3.5,0),COLORMAGENTA;</p><p >DRAWICON(CROSS(C,REF(O,阴KDAY)),L,1);</p><p >DRAWTEXT_FIX(ISLASTBAR,0.55,0.01,0,CODE),COLORYELLOW;</p><p >DRAWTEXT_FIX(ISLASTBAR,0.55,0.05,0,STKNAME)COLORYELLOW;</p><p >DRAWTEXT_FIX(ISLASTBAR,0.6,0.05,0,HYBLOCK),COLORCYAN;</p><p >DRAWTEXT_FIX(ISLASTBAR,0.6,0,0,DYBLOCK),COLORCYAN;</p><p >DRAWTEXT_FIX(ISLASTBAR,0.55,0.85,0,GNBLOCK),COLORMAGENTA;</p><p >DRAWTEXT_FIX(ISLASTBAR,0.55,0.90,0,FGBLOCK),COLORMAGENTA;</p><p >DRAWTEXT_FIX(ISLASTBAR,0.55,0.95,0,ZSBLOCK);</p><p >金叉:=CROSS(EMA(C,1),EMA(C,3));</p><p >XXBB:= EMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*4,5)*100;</p><p >抄牛底:=REF(XXBB,1)<50 AND XXBB-REF(XXBB,1)>25;</p><p >蓝宝石:=抄牛底 AND 金叉;</p><p >追拉升:=REF(XXBB,1)>50 AND XXBB-REF(XXBB,1)>40;</p><p >{机构增仓}</p><p >JA1:=(VOL/C)/2;</p><p >A2:=SUM(IF(JA1>100 AND CLOSE>REF(CLOSE,1),JA1,0),0);</p><p >A3:=SUM(IF(JA1>100 AND CLOSE<REF(CLOSE,1),JA1,0),0);</p><p >A4:=SUM(IF(JA1<100 AND CLOSE>REF(CLOSE,1),JA1,0),0);</p><p >A5:=SUM(IF(JA1<100 AND CLOSE<REF(CLOSE,1),JA1,0),0);</p><p >A6:=A2+A3+A4+A5;</p><p >机买:=(A2/A6)*100;</p><p >机卖:=(A3/A6)*100;</p><p >主力差:=机买-机卖;</p><p >对于指标感兴趣可以与我交流免费领取!</p>

赏真阁 发表于 2024-1-21 14:06:39

很好的东东

天地有情人茁 发表于 2024-3-28 18:34:54

good!vevy good!
页: [1]
查看完整版本: 「指标酷之」通达信分析主图指标公式源码