程序化指标公式
问答中心

通达信龙跃于渊主图指标公式

通达信指标 2019-07-17阅读量:3692

安装后如下图,友情提示(指标只是辅助,不作建议) 所有程序均为免费分享。

不会安装点击  安装指南  步骤操作

MA3:=MA(CLOSE,3);MA5:=MA(CLOSE,5);MA10:=MA(CLOSE,10);MA18:=MA(CLOSE,18);MA20:=MA(CLOSE,20);MA30:=MA(CLOSE,30);MA60:=MA(CLOSE,60);MA72:=MA(CLOSE,72);MA120:=MA(CLOSE,120);MA250:=MA(CLOSE,250),COLORLICYAN;{薛斯通道 参数N  2  120  13}VAR2:=CLOSE*VOL;VAR3:=EMA((EXPMA(VAR2,3)/EXPMA(VOL,3)+EXPMA(VAR2,6)/EXPMA(VOL,6)+EXPMA(VAR2,12)/EXPMA(VOL,12)+EXPMA(VAR2,24)/EXPMA(VOL,24))/4,13);小顶:=1.06*VAR3;小底:=VAR3*0.94;VAR4:=EXPMA(CLOSE,9);大顶:=EXPMA(VAR4*1.14,5);大底:=EXPMA(VAR4*0.86,5);{DRAWBAND(大顶,RGB(155,50,50),大底,RGB(250,250,00));DRAWBAND(小顶,RGB(100,50,50),小底,RGB(100,150,0));}{双红色段}DRAWBAND(大顶,RGB(65,105,225),大底,RGB(250,250,00));DRAWBAND(小顶,RGB(250,150,0),小底,RGB(100,150,0));{DRAWBAND(DEAA,RGB(0,130,50),DIFFA,RGB(250,150,0));DRAWBAND(K,RGB(65,105,225),D,RGB(47,79,79));}{四色段}内上轨:1.06*VAR3,COLORWHITE,LINETHICK2;内下轨:VAR3*0.94,COLORWHITE,LINETHICK2;外上轨:EXPMA(VAR4*1.14,5),COLORCYAN,LINETHICK2;外下轨:EXPMA(VAR4*0.86,5),COLORCYAN,LINETHICK2;{画立体K线图1};STICKLINE(C>=O,L,H,0,0),COLORRED;     STICKLINE(C<O,L,H,0,0),COLORGREEN;     STICKLINE(C>=O,C,O,3.2,0),COLOR000055;     STICKLINE(C>=O,CLOSE,O,2.8,0),COLOR000077;     STICKLINE(C>=O,CLOSE,O,2,0),COLOR000099;     STICKLINE(C>=O,CLOSE,O,1.5,0),COLOR0000BB;     STICKLINE(C>=O,CLOSE,O,1,0),COLOR0000DD;     STICKLINE(C>=O,CLOSE,O,0.5,0),COLOR0000FF;     STICKLINE(C<O,CLOSE,O,3.2,0),COLOR004400;   STICKLINE(C<O,CLOSE,O,2.8,0),COLOR006600;     STICKLINE(C<O,CLOSE,O,2,0),COLOR008800;     STICKLINE(C<O,CLOSE,O,1.5,0),COLOR00AA00;     STICKLINE(C<O,CLOSE,O,1,0),COLOR00CC00;     STICKLINE(C<O,CLOSE,O,0.5,0),COLOR00EE00;  {立桩量}V2:=IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1);{STICKLINE(V2>=1,VOL,VOL*1.4,2.7,0),COLORYELLOW;}STICKLINE(V2>=1,(C+O)*0.5,O,3.2,0),COLOR0066AA; {黄色段}STICKLINE(V2>=1,(C+O)*0.5,O,2.8,0),COLOR00AAFF;STICKLINE(V2>=1,(C+O)*0.5,O,2.0,0),COLOR0099DD;STICKLINE(V2>=1,(C+O)*0.5,O,1.5,0),COLOR00BBEE;STICKLINE(V2>=1,(C+O)*0.5,O,1.0,0),COLOR00DDFF;STICKLINE(V2>=1,(C+O)*0.5,O,0.5,0),COLOR00FFFF;{双线}AMOV:=VOL*(OPEN+CLOSE)/2;神马线:SUM(AMOV,3)/SUM(VOL,3),COLORRED,LINETHICK2;浮云线:SUM(AMOV,21)/SUM(VOL,21),COLORWHITE,LINETHICK2;{设置天地龙线};{N:=15;T1:=CONST(HHVBARS(V,N));天地龙线:IF(CURRBARSCOUNT<=N+7,CONST(IF(T1=0,C,REF(C,T1))),DRAWNULL),COLORWHITE,LINETHICK2; IF(CURRBARSCOUNT=T1+1,天地龙线,DRAWNULL),CIRCLEDOT;DRAWTEXT(ISLASTBAR,天地龙线,'天地龙线'),COLORWHITE;}{加减仓指标}{TT2:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.15),0.9);TT1:=REF(EMA(TT2,3),1);RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);DRAWICON(CROSS(CLOSE,TT1) AND J<55 AND L<小底,L*0.98,25);DRAWICON(CROSS(88,RSI) AND H>小顶,H*1.01,24);}{亮剑指标}上线:=SMA(C,6.5,1);一号支撑线:=SMA(C,14.5,1);上线1:=SMA(C,3,1);一号支撑线1:=SMA(C,8,1);A7:=(2*C+H+L)/4;操作:=MA(A7,5);VAR1:=LLV(A7,21);亮剑:= CROSS(上线1,操作) AND 上线1<一号支撑线 AND 上线1<一号支撑线1 AND 上线1<上线 AND CLOSE>VAR1;VCR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1); VCR2:=SMA(ABS(LOW-VCR1),13,1)/SMA(MAX(LOW-VCR1,0),10,1); VCR3:=EMA(VCR2,10);VCR4:=LLV(LOW,33);VCR5:=EMA(IF(LOW<=VCR4,VCR3,0),3);主力进场:=VCR5>REF(VCR5,1);DRAWICON(BARSLAST(主力进场)>=4 AND 亮剑,L*0.98,26);DRAWTEXT(BARSLAST(主力进场)<4 AND 亮剑 AND L<小底,L*0.96,'亮剑'),COLORRED;{一线破双轨}DRAWTEXT(OPEN>小底 AND OPEN>大底 AND C<小底 AND C<大底,L*0.96,'一线破双轨'),COLORWHITE;{一杆捅破两重天}DRAWTEXT(OPEN<小顶 AND OPEN<大顶 AND C>小顶 AND C>大顶,H*1.04,'一杆捅破两重天'),COLORWHITE;{散兵蹲坑}DRAWTEXT(C>小底 AND C<大底,L*0.96,'散兵蹲坑'),COLORWHITE;{DMI预警指标}TRX:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),14);HD:=HIGH-REF(HIGH,1);LD:=REF(LOW,1)-LOW;DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),14);DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),14);PDI:= DMP*100/TRX;MDI:= DMM*100/TRX;ADX:= EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,6);反转:=ADX<REF(ADX,1) AND REF(ADX,1)>=REF(ADX,2) AND REF(ADX,1)>50;DRAWICON(反转 AND MA5<MA18,L*0.98,13);DRAWICON(反转 AND MA5>MA18,H*1.02,14);极低:=MDI<REF(MDI,1) AND REF(MDI,1)>=REF(MDI,2) AND REF(MDI,1)>50;DRAWTEXT(极低,L*0.93,'否极泰来'),COLORRED;{潜龙};趋势走向:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1) -2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1); 谷底:=趋势走向<=3 ; 超跌:=(MA(C,5)-C)/C>0.05 AND (MA(C,10)-MA(C,5))/MA(C,5)>0.05 AND C<O;深谷:=超跌 AND 谷底;{DRAWTEXT(深谷,L,'潜龙'),COLORCYAN};{龙跃于渊};放量:=(AMOUNT/CLOSE)/HHV((AMOUNT/CLOSE),5)=1;龙跃于渊:=COUNT(深谷,3)>=1 AND CROSS(CCI,-100) AND 放量 AND C>O; DRAWTEXT(龙跃于渊,H*1.02,'龙跃于渊'),COLORRED;{神龙摆尾};ADXR:=EXPMEMA(ADX,6);急穿:=COUNT(LONGCROSS(PDI,MDI,4),3)>=1 AND COUNT(LONGCROSS(PDI,ADX,4),3)>=1 AND COUNT(LONGCROSS(PDI,ADXR,4),3)>=1;大涨:=(C/REF(C,1))>=1.05 AND C>O;放大量:=(AMOUNT/CLOSE)/HHV((AMOUNT/CLOSE),5)=1 AND (AMOUNT/CLOSE)/REF((AMOUNT/CLOSE),1)>=1.5;DRAWTEXT(急穿 AND 大涨 AND 放大量,L*0.98,'神龙摆尾'),COLORRED;{粘合突破}DG:=MAX(MAX(MA5,MA10),MAX(MA30,MA60));ZG:=MAX(DG,MA120);{最高}DD:=MIN(MIN(MA5,MA10),MIN(MA30,MA60));ZD:=MIN(DD,MA120);{最低};排线:=MA5>REF(MA5,1) AND MA5>MA10 AND MA10>MA30 AND MA10>REF(MA10,1) AND C>ZG AND MA30>REF(MA30,1);{5日大于10日等}粘合:=(ZG/ZD-1)*100<8;价量:=(C/REF(C,1)-1)*100>=2 AND V>REF(V,1);{价涨量增}{起动:=(NOT(粘合) AND REF(粘合,1) AND COUNT(粘合,20)>=8 AND 排线 AND 价量);}起动:=(REF(粘合,1) AND COUNT(粘合,20)>=8 AND 排线 AND 价量);DRAWTEXT(起动,L*0.98,'一怒拔剑'),COLORRED;{MACD 背离}DIFF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);DEA:=EMA(DIFF,9),COLORFFFF00;AX:=BARSLAST(REF(CROSS(DIFF,DEA),1));底背离:=REF(CLOSE,AX+1)>CLOSE AND DIFF>REF(DIFF,AX+1) AND CROSS(DIFF,DEA);DRAWTEXT(底背离,L*0.95,'底背离'),COLORRED;AY:=BARSLAST(REF(CROSS(DEA,DIFF),1));顶背离:=REF(CLOSE,AY+1)<CLOSE AND REF(DIFF,AY+1)>DIFF AND CROSS(DEA,DIFF);DRAWTEXT(顶背离,H*1.05,'顶背离'),COLORGREEN;

版权声明

所有指标均为免费分享。

文章内容来自互联网,本网站无任何收费项目也不推荐股票
广告投放请自行识别风险。

分享:

扫一扫在手机阅读、分享本文

程序化指标公众号

左边广告一

关闭

右边广告二

关闭