• 神奇指标网
  • 通达信连阳黄金柱主图指标公式-连续大阳战法

通达信连阳黄金柱主图指标公式-连续大阳战法

浏览 20次浏览
标签: 主图
来源:神奇指标网 编辑:神奇指标网 发布日期:2022-09-23


通达信公式源码概况:


指标类别:通达信公式


授权方式: 免费版


指标评级: ★★★★★


指标分类: 策略


画线方法: 副图



一指阳即大幅低开(跌停开盘最佳)的平底大阳线,一旦出现此种形态往往伴随后市会有巨大机会。

在相对低位出现一指阳同时放出巨量,且量能连续较强,红箭头当天一指阳成形时或次日逢低建仓,是抓连续大阳胜算较高之法。


image.png



公式源码如下:


  

DRAWTEXT(VOL>=MA(VOL,20)*2,AMOUNT/VOL/100,'--------'),COLOR00FFFF;  

DRAWGBK(O>C,RGB(360,0,10),RGB(10,0,1),0,'01',0);  

E5:=EMA(C,5);E13:=EMA(C,13);  

DRAWBAND(E5,RGB(200,0,0),E13,RGB(0,200,0));  

DRAWKLINE(H,O,L,C);  

平衡:EMA(C,20)COLORYELLOW;  

上轨:平衡+2*STD(C,20),LINETHICK2,COLORMAGENTA;  

下轨:平衡-2*STD(C,20),LINETHICK2,COLORGREEN;  

IF(平衡>REF(平衡,1),平衡,DRAWNULL),COLORRED;  

IF(平衡=REF(平衡,1),平衡,DRAWNULL),COLORYELLOW;  

IF(平衡<REF(平衡,1),平衡,DRAWNULL),COLORGREEN;  

STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,3,0),COLORFF7700;  

STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2,0),COLORFFBB00;  

STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,1,0),COLORFFDD00;  

STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,0.5,0),COLORFFFF00;  

STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0),COLOR000055;  

STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0),COLOR000077;  

STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0),COLOR0000BB;  

STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.5,0),COLOR0000FF;  

VAR9Q:=C=HHV(C,4)AND(REF(C,1)>=REF(C,2)ORREF(C,1)>=REF(C,3))ORREF(C,1)=HHV(C,4)ANDCLOSE>=REF(C,2)ORREF(C,2)=HHV(C,4)ANDREF(C,3)=LLV(C,4)ANDC>=REF(C,1)ORREF(C,3)=HHV(C,4)ANDC>=REF(C,1)ANDC>=REF(C,2);  

红持:=VAR9Q;  

STICKLINE(VAR9Q,C,(O+C)/2,3,0),COLOR000055;  

STICKLINE(VAR9Q,C,(O+C)/2,2,0),COLOR000077;  

STICKLINE(VAR9Q,C,(O+C)/2,1,0),COLOR0000BB;  

STICKLINE(VAR9Q,C,(O+C)/2,0.5,0),COLOR0000FF;  

VARAQ:=C=HHV(C,4)ANDREF(C,1)=LLV(C,4);  

粉变:=VARAQ;  

STICKLINE(VARAQ,C,(O+C)/2,3,0),COLORFF11FF;  

STICKLINE(VARAQ,C,(O+C)/2,2,0),COLORFF55FF;  

STICKLINE(VARAQ,C,(O+C)/2,1,0),COLORFF99FF;  

STICKLINE(VARAQ,C,(O+C)/2,0.5,0),COLORFFDDFF;  

VARBQ:=C=LLV(C,4)AND(REF(C,1)<REF(C,2)ORREF(C,1)<REF(C,3))ORREF(C,1)=LLV(C,4)ANDC<REF(C,2)ORREF(C,2)=LLV(C,4)ANDREF(C,1)!=HHV(C,4)ANDC<REF(C,1)ORREF(C,3)=LLV(C,4)ANDC<REF(C,1)ANDC<REF(C,2);  

灰跌:=VARBQ;  

STICKLINE(VARBQ,C,(O+C)/2,3,0),COLOR333333;  

STICKLINE(VARBQ,C,(O+C)/2,2,0),COLOR777777;  

STICKLINE(VARBQ,C,(O+C)/2,1,0),COLORBBBBBB;  

STICKLINE(VARBQ,C,(O+C)/2,0.5,0),COLORFFFFFF;  

VARCQ:=REF(C,1)=LLV(C,4)ANDC>=REF(C,2)ORREF(C,2)=LLV(C,4)ANDREF(C,1)<=REF(C,3)ANDREF(C,2)<REF(C,4)ANDC>=REF(C,1);  

绿买:=VARCQ;  

STICKLINE(VARCQ,O,(O+C)/2,3,0),COLOR003300;  

STICKLINE(VARCQ,O,(O+C)/2,2,0),COLOR007700;  

STICKLINE(VARCQ,O,(O+C)/2,1,0),COLOR00BB00;  

STICKLINE(VARCQ,O,(O+C)/2,0.5,0),COLOR00FF00;  

VARDQ:=REF(C,1)=HHV(C,4)ANDC<REF(C,2)OR(REF(C,2)=HHV(C,4)ANDREF(C,1)>REF(C,3)ORREF(C,3)=HHV(C,4)ANDREF(C,1)>REF(C,2))ANDREF(C,2)>=REF(C,4)ANDC<REF(C,1);  

蓝抛:=VARDQ;  

STICKLINE(VARDQ,O,(O+C)/2,3,0),COLORFF1100;  

STICKLINE(VARDQ,O,(O+C)/2,2,0),COLORFF5500;  

STICKLINE(VARDQ,O,(O+C)/2,1,0),COLORFF9900;  

STICKLINE(VARDQ,O,(O+C)/2,0.5,0),COLORFFDD00;  

Y1:=REF(EMA(DMA((((HIGH+LOW)+(CLOSE*2))/4.15),0.9),3),1);  

{DRAWTEXT(CROSS(CLOSE,Y1),LOW,'[买进]'),COLORYELLOW;  

STICKLINE(CROSS(Y1,CLOSE),H*1.05,H,0,0),COLORWHITE;  

{DRAWTEXT(CROSS(Y1,CLOSE),HIGH*1.05,'[卖出]'),COLORWHITE;{新加}  

VAR1W:=(100-((90*(HHV(HIGH,21)-CLOSE))/(HHV(HIGH,21)-LLV(LOW,21))));  

VAR2W:=(100-((90*(HHV(HIGH,21)-CLOSE))/(HHV(HIGH,21)-LLV(LOW,21))));  

VAR3W:=(100-MA(((100*(HHV(HIGH,6)-CLOSE))/(HHV(HIGH,6)-LLV(LOW,6))),34));  

{DRAWTEXT(CROSS(VAR2W,MA(VAR3W,6)),LOW-0.6,'(买)'),COLORFF99FF;  

DRAWTEXT(CROSS(MA(VAR3W,6),VAR1W),HIGH+0.9,'(卖)'),COLORCCFF13;}  

VAR3P:=IF(CLOSE/REF(CLOSE,1)>1.050ANDHIGH/CLOSE<1.010ANDIF(CLOSE>REF(CLOSE,1),88,0)>0,91,0);  

STICKLINE(VAR3P>90,L,L*0.92,0,0),COLORFF00FF;  

DRAWTEXT(VAR3P>90,LOW*0.92,'追涨'),COLORFF00FF;  

SS:=MA((LOW+HIGH+CLOSE)/3,5)>REF(MA((LOW+HIGH+CLOSE)/3,5),1)ANDREF(MA((LOW+HIGH+CLOSE)/3,5),1)<REF(MA((LOW+HIGH+CLOSE)/3,5),2);  

SC:=L<HHV(MA((LOW+HIGH+CLOSE)/3,5),13)ANDH>HHV(MA((LOW+HIGH+CLOSE)/3,5),13)ANDC>REF(C,1)ANDC>O;  

MR:=SCANDCOUNT(SS,2);  

买:=MRANDNOT(REF(MR,1));  

STICKLINE(买,L,L*0.95,0,0),COLORRED;  

DRAWTEXT(买,L*0.95,'必涨'),COLORRED;  

多方:=7*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1)  

-3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1)  

-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1)  

,3,1),2,1);  

STICKLINE(CROSS(78.89,多方),H+0.1,H,0,0),COLOR00FF00;  

DRAWTEXT(CROSS(78.89,多方),H+0.3,'(逃顶)'),COLOR00FF00;  

A1:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*1,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*1,5,1);  

A2:=(EMA(A1,5)-REF(EMA(A1,5),1))/REF(EMA(A1,5),1)*1;  

A5:=(HHV(H,60)-C)/(HHV(H,60)-LLV(L,60))*1;  

{DRAWTEXT(CROSS(A1,EMA(A1,5))ANDEMA(A1,5)<A5,L*0.98,'(黑马)'),COLORYELLOW;}  

VAR1:=(CLOSE-LLV(LOW,24))/(HHV(HIGH,24)-LLV(LOW,24))*1;  

VAR2:=SMA(VAR1,3,1)*100;  

趋势线:=SMA((SMA(VAR2,3,1)*VAR1),3,1)*1;  

VAR9:=CROSS(趋势线,(SMA(VAR2,3,1)*VAR1))AND(SMA(VAR2,3,1)*VAR1)>8;  

{DRAWTEXT(VAR9ANDCOUNT(VAR9,1)=1,H+0.4,'逃'),LINETHICK2,COLORYELLOW;{新加}  

DRAWICON(FILTER(CROSS(-"WR.WR1"(14,14),(0-81)),10),L-0.2,1);  

DRAWICON(FILTER(CROSS((0-19),-"WR.WR1"(14,14)),10),H,2);  

股价趋势:=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);  

买入信号:STICKLINE(CROSS(股价趋势,10),L*0.97,L,6,0)COLORLIMAGENTA;  

卖出信号:STICKLINE(CROSS(90,股价趋势),H*1.03,H,6,0)COLORGREEN;  

PA1:=EVERY(C>O,3)ANDC>REF(C,1)ANDREF(C,1)>REF(C,2);  

PA2:=V/REF(V,1)>1.85;  

PA3:=REF(V,1)/REF(V,2)>1.85;  

PA4:=REF(V,1)<MAX(MA(V,40),MA(V,135));  

JX:=C>MA(C,5)ANDC>MA(C,10)ANDC>MA(C,20)ANDC>MA(C,30);  

XG:PA1ANDPA2ANDPA3ANDPA4ANDJX;  

M日内:=6;  

出现N次:=1;  

N:=3;  

P:=5;  

T3:=COUNT(V>REF(V,1),3)=3ANDCOUNT(C>O,3)=3ANDCOUNT(C>REF(C,1),3)=3;  

S3:=COUNT(V<REF(V,1),3)=3ANDCOUNT(C<O,3)=3ANDCOUNT(C<REF(C,1),3)=3;  

不创新低:=L>REF(LLV(L,P),1);  

COUNT(T3,M日内)=出现N次ANDCOUNT(S3,M日内)=出现N次AND不创新低;  

量:vol,VOLstICK;  

预定黄金柱:DRAWICON(REF(V,2)>=REF(V,3)*1.99ANDREF(C,2)>REF(O,2)AND  

REF(V,2)=HHV(V,3)ANDC/REF(C,2)>=1.0995ANDREF(L,2)=LLV(L,3),V,1);  

DRAWTEXT((SYSPARAM(2)=BARPOS),CLOSE,('版块:'+BLKNAME)),ALIGN4;  

DRAWTEXTEX(c,1,10,50,'收益:'+NUMTOstR(FINANCE(33),2)+'元'),ColorFFB060;  

DRAWTEXTEX(c,1,200,50,'净资产:'+NUMTOSTR(FINANCE(34),2)+'元'),ColorFFB060;  

DRAWTEXTEX(c,1,10,100,'流通股:'+NUMTOSTR(FINANCE(7)/10000,2)+'亿'),ColorFFB060;  

DRAWTEXTEX(c,1,200,100,'占总股本:'+NUMTOSTR(FINANCE(7)/FINANCE(1)*100,2)+'%'),ColorFFB060;  

{均线系统}  

ma5:MA(CLOSE,5);  

MA10:MA(CLOSE,10);  

MA20:MA(CLOSE,20);  

MA60:MA(CLOSE,60);  

{通用条件}  

LASTK:=(REFX(ISLASTBAR,2)=0);  

上涨:=CLOSE>REF(CLOSE,1);  

未跌破:=REFX(CLOSE,1)>LOWANDREFX(CLOSE,2)>LOWANDREFX(CLOSE,3)>LOW;  

缩量:=vol>0.35*(REFX(VOL,1)+REFX(VOL,2)+REFX(VOL,3))ANDVOL>REFX(VOL,1);{1.05/3,5%}  

逐级缩量:=VOL>REFX(VOL,1)ANDREFX(VOL,1)>REFX(VOL,2)ANDREFX(VOL,2)>REFX(VOL,3);  

逐级价升:=CLOSE<REFX(CLOSE,1)ANDREFX(CLOSE,1)<REFX(CLOSE,2)ANDREFX(CLOSE,2)<REFX(CLOSE,3);  

{倍量柱}  

倍量柱:VOL>=(REF(VOL,1)+REF(VOL,1))*0.9,LINETHICK0,COLORWHITE;  

{高量柱}  

高量柱:VOL>0.3*(REF(SUM(VOL,3),1)+REFX(SUM(VOL,3),3))ANDVOL>REF(VOL,1)ANDVOL>REFX(VOL,1),LINETHICK0,COLORWHITE;{1.8/6,1.8倍}  

{平量柱}  

平量柱:VOL>REFX(VOL,1)*0.97ANDVOL<REFX(VOL,1)*1.03ANDVOL>=2*REF(VOL,1),LINETHICK0,COLORWHITE;  

{梯量柱}  

梯量柱:VOL>REF(VOL,1)ANDREF(VOL,1)>REF(VOL,2)ANDCLOSE>REF(CLOSE,1)ANDREF(CLOSE,1)>REF(CLOSE,2),LINETHICK0,COLORWHITE;{虽然是梯量柱,但也不能太小}  

{将军柱}  

将军柱:LASTKAND上涨AND未跌破AND(倍量柱OR高量柱OR平量柱OR梯量柱),LINETHICK0,COLORYELLOW;  

{黄金柱}  

黄金柱:将军柱AND缩量,LINETHICK0,COLORYELLOW;  

{标准黄金柱}  

标准黄金柱:黄金柱AND逐级缩量AND逐级价升,LINETHICK0,COLORRED;  

{输出}  

DRAWICON(黄金柱AND标准黄金柱=0ANDBArslAST(REF(黄金柱,1))>1,LOW,8),COLORRED;  

DRAWICON(标准黄金柱,LOW,4),COLORRED;  

DRAWICON(将军柱ANDBARSLAST(REF(将军柱,1))>1ANDBARSLAST(黄金柱)>1,LOW,10),COLORRED;  

MA135:=MA(VOL,135);  

TJ1:=(VOL=HHV(VOL,10)ANDVOL>1.7*REF(VOL,1)ANDC>=REF(C,1)ANDC>=OANDVOL<=MA135*3.5);  

LJL:=FILTER(TJ1,3);  

TJ3:=IF(BARSLAST(LJL)=1ANDCLOSE>REF(LOW,3),1,0);  

ST:=TJ3=1;  

CL:=FILTER(ST,3);  

STICKLINE(C,REF(L,BARSLAST(CL)),REF(L,BARSLAST(CL)),5,0),COLORYELLOW;  

STICKLINE(CLOSE,REF(L,BARSLAST(LJL)),REF(L,BARSLAST(LJL)),5,0),COLORCYAN;  

STICKLINE(LJL,OPEN,CLOSE,6,0),COLORYELLOW;  

DRAWTEXT(LJL,L*0.99,'支撑'),COLORF00FF0;  

GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));  

GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));  

GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));  

GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));  

BAIJIN1:=BARSLAST(crOSS(30,GJTJ1))<2ANDBARSLAST(CROSS(GJTJ1,50))<2;  

BAIJIN2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2ANDGJTJ1>GJTJ4;  

BAIJIN3:=GJTJ1>60ANDGJTJ4>70;  

DRAWTEXT(BAIJIN1ANDBAIJIN2ANDBAIJIN3,L-0.02,'白金');  

HUANGJIN1:=BARSLAST(CROSS(50,GJTJ1))<3ANDBARSLAST(CROSS(GJTJ1,50))<3;  

HUANGJIN2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2ANDGJTJ1>GJTJ4;  

DRAWTEXT(HUANGJIN1ANDHUANGJIN2,L-0.03,'黄金');  

XG:=BARSLAST(CROSS(GJTJ4,GJTJ1))<5ANDGJTJ1>GJTJ4;  

DRAWTEXT(COUNT(XG,3)=1ANDXGANDC>MA(C,20),L-0.02,'暴涨启动'),COLORRED;  

ZHENCANG1:=BARSLAST(CROSS(GJTJ4,GJTJ1))>3ANDBARSLAST(CROSS(GJTJ1,GJTJ4))<3;  

ZHENCANG2:=BARSLAST(CROSS(GJTJ4,GJTJ2));  

ZHENCANG3:=GJTJ3<GJTJ4ANDGJTJ2<GJTJ4;  

ZHENCANG4:=BARSLAST(CROSS(GJTJ4,GJTJ3))>3ANDBARSLAST(CROSS(GJTJ1,GJTJ4))<3;  

ZHENCANG5:=GJTJ2<GJTJ3ANDGJTJ1=100;  

ZCB1:=ZHENCANG1>0ANDREF(ZHENCANG1,1)=0ANDREF(ZHENCANG1,2)>0;  

DRAWTEXT(ZHENCANG1ANDZHENCANG2ANDZHENCANG3ANDZHENCANG4ANDZHENCANG5,L-0.05,'震仓启点');  

AA:=BARSLAST(CROSS(97,GJTJ1))<=1ANDBARSLAST(CROSS(GJTJ1,85))<=1;  

BB:=BARSLAST(CROSS(97,GJTJ2))<=1ANDBARSLAST(CROSS(GJTJ2,85))<=1;  

AA1:=AAANDBB;  

AAA:=BARSLAST(CROSS(97,GJTJ1))<=2ANDBARSLAST(CROSS(GJTJ1,85))<=1;  

BAA:=BARSLAST(CROSS(97,GJTJ2))<=2ANDBARSLAST(CROSS(GJTJ2,85))<=1;  

AA2:=AAANDBB;  

AAAA:=BARSLAST(CROSS(97,GJTJ1))<=3ANDBARSLAST(CROSS(GJTJ1,85))<=1;  

BAAA:=BARSLAST(CROSS(97,GJTJ2))<=3ANDBARSLAST(CROSS(GJTJ2,85))<=1;  

AA3:=AAAAANDBAAA;  

BB1:=REF(AA1,1);  

BB2:=REF(AA2,1);  

BB3:=REF(AA3,1);  

DD1:=GJTJ1=100ANDGJTJ2=100ANDAA1;  

DD2:=GJTJ1=100ANDGJTJ2=100ANDAA2;  

DD3:=GJTJ1=100ANDGJTJ2=100ANDAA3;  

DRAWTEXT(DD1ORDD2ORDD3,L-0.02,'短线追涨');  

AW:=BARSLAST(CROSS(95,GJTJ1))<=2;  

BW:=BARSLAST(CROSS(95,GJTJ2))<=2;  

EW:=GJTJ4<GJTJ1ANDGJTJ1<GJTJ3;  

FW:=GJTJ2>50ANDGJTJ3>50;  

GW:=GJTJ1=100ANDGJTJ2=100;  

TXW:=COUNT(GW,2)=1;  

DRAWTEXT(AWANDBWANDEWANDFWANDTXW,L-0.03,'起涨首日');  

AQ:=GJTJ3=100;  

BQ:=GJTJ4<90;  

DRAWTEXT(COUNT(AQ,2)=2ANDBQ,L-0.02,'波启前兆');  

AA1:=AMOUNT/V;  

BB1:=L<AA1*0.9;  

CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;  

DD1:=L<MA(C,5)*0.921;  

EE1:=V<MA(V,5)*1.5;  

CC:IF(CURRBARSCOUNT&lt;18,CONST(REF(C,1)),DRAWNULL),COLOR000000;  

止赢:1.05*CC,COLORFFFFFF,LINETHICK2;  

止损:0.97*CC,COLORFFFFFF,LINETHICK2;  

V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);  

V2:=(1-7/100)*(DMA(CLOSE,V1));  

V3:=(1+7/100)*(DMA(CLOSE,V1));  

V5:=MA((LOW+HIGH+CLOSE)/3,5);  

支撑:REFDATE(V2,DATE),DOTLINE,LINETHICK1,COLORFF0080;  

阻力:REFDATE(V3,DATE),DOTLINE,LINETHICK1,COLOR676767;  

DRAWGBK(O&gt;C,RGB(360,0,10),RGB(10,0,1),0,'01',0);  

P0:=MA(INDEXC,34);  

P1:=(55*P0+34*REF(P0,1)+21*REF(P0,2)+13*REF(P0,3)+8*REF(P0,4)+5*REF(P0,5)  

+3*REF(P0,6)+2*REF(P0,7)+REF(P0,8)+REF(P0,9))/143;  

P2:=REF(P1,1);  

大盘长牛熊:=0.5*(P1+P2);  

H0:=MA(C,8);  

H1:=(55*H0+34*REF(H0,1)+21*REF(H0,2)+13*REF(H0,3)+8*REF(H0,4)+5*REF(H0,5)  

+3*REF(H0,6)+2*REF(H0,7)+REF(H0,8)+REF(H0,9))/143;  

H2:=REF(H1,1);  

短期牛熊:0.5*(H1+H2),NODRAW,COLORYELLOW;  

DRAWBAND(H1,RGB(255,255,0),H2,RGB(0,0,255));  

STICKLINE(H1&gt;H2,H1,H2,10,0),COLORYELLOW;  

I0:=MA(C,34);  

I1:=(55*I0+34*REF(I0,1)+21*REF(I0,2)+13*REF(I0,3)+8*REF(I0,4)+5*REF(I0,5)  

+3*REF(I0,6)+2*REF(I0,7)+REF(I0,8)+REF(I0,9))/143;  

I2:=REF(I1,1);  

长期牛熊:0.5*(I1+I2),NODRAW,COLORRED;  

DRAWBAND(I1,RGB(255,0,0),I2,RGB(0,255,0));  

STICKLINE(I1&gt;I2,I1,I2,10,0),COLORRED;  

差:100*(短期牛熊-长期牛熊)/长期牛熊,COLORMAGENTA,NODRAW;  

VAR1:=(100-((90*(HHV(HIGH,14)-CLOSE))/(HHV(HIGH,14)-LLV(LOW,14))));  

VAR2:=(100-((90*(HHV(HIGH,14)-CLOSE))/(HHV(HIGH,14)-LLV(LOW,14))));  

VAR3:=(100-MA(((100*(HHV(HIGH,6)-CLOSE))/(HHV(HIGH,6)-LLV(LOW,6))),34));  

DIR1:=ABS(CLOSE-REF(CLOSE,5));  

VIR1:=SUM(ABS(CLOSE-REF(CLOSE,1)),5);  

ER1:=DIR1/VIR1;  

CS1:=ER1*(0.8-2/8)+2/8;  

CQ1:=CS1*CS1;  

DIR2:=ABS(CLOSE-REF(CLOSE,10));  

VIR2:=SUM(ABS(CLOSE-REF(CLOSE,1)),10);  

ER2:=DIR2/VIR2;  

CS2:=ER2*(0.8-2/24)+2/24;  

CQ2:=CS2*CS2;  

STICKLINE(VAR2&lt;MA(VAR3,6),LOW,HIGH,0,1),COLORLIBLUE;  

STICKLINE(VAR2&gt;MA(VAR3,6),LOW,HIGH,0,1),COLORRED;  

STICKLINE(((OPEN&gt;CLOSE)AND(VAR2&lt;MA(VAR3,6))),(CLOSE-0.03),OPEN,3.05,0),COLORLIBLUE;  

STICKLINE(((OPEN&lt;CLOSE)AND(VAR2&lt;MA(VAR3,6))),CLOSE,OPEN,3.05,1),COLORLIBLUE;  

STICKLINE(((OPEN&gt;CLOSE)AND(VAR2&gt;MA(VAR3,6))),OPEN,(CLOSE-0.03),3.05,0),COLORRED;  

STICKLINE(((OPEN&lt;CLOSE)AND(VAR2&gt;MA(VAR3,6))),OPEN,CLOSE,3.05,1),COLORRED;  

DRAWICON(CROSS(VAR2,MA(VAR3,6)),(LOW-(LOW*0.02)),23);  

DRAWICON(CROSS(MA(VAR3,6),VAR1),(HIGH+(HIGH*0.01)),15);  

PT:=REF(H,1)-REF(L,1);  

CDP:=(REF(H,1)+REF(L,1)+REF(C,1)*2)/4;  

AH:=CDP+PT;  

AL:=CDP-PT;  

NH:=CDP*2-REF(L,1);  

NL:=CDP*2-REF(H,1);  

强:IF(AH&gt;REF(C,1)*1.1,REF(C,1)*1.1,AH)NODRAW;  

阻:IF(NH&gt;强,(强-CDP)*0.618+CDP,NH)NODRAW,COLORBLUE;  

M:=IF(AL&lt;REF(C,1)/1.1,REF(C,1)/1.1,AL);  

撑:IF(NL&lt;M,CDP-(CDP-M)*0.618,NL)NODRAW;  

底:IF(AL&lt;REF(C,1)/1.1,REF(C,1)/1.1,AL)NODRAW;  

STICKLINE(C&gt;=O,C,O,3.4,0),COLOR0000AA;  

STICKLINE(C&gt;=O,C,O,3.0,0),COLOR0000BB;  

STICKLINE(C&gt;=O,C,O,2.4,0),COLOR0000CC;  

STICKLINE(C&gt;=O,C,O,2.0,0),COLOR0000DD;  

STICKLINE(C&gt;=O,C,O,1.6,0),COLOR0000EE;  

STICKLINE(C&gt;=O,C,O,1.2,0),COLOR0000FF;  

STICKLINE(C&gt;=O,C,O,0.6,0),COLOR0000FF;  

STICKLINE(C&gt;=O,H,L,0,0),COLORRED;  

STICKLINE(C&lt;=O,C,O,3.4,0),COLORAAAA00;  

STICKLINE(C&lt;=O,C,O,3.0,0),COLORBBBB00;  

STICKLINE(C&lt;=O,C,O,2.4,0),COLORCCCC00;  

STICKLINE(C&lt;=O,C,O,2.0,0),COLORDDDD00;  

STICKLINE(C&lt;=O,C,O,1.6,0),COLOREEEE00;  

STICKLINE(C&lt;=O,C,O,1.2,0),COLORFFFF00;  

STICKLINE(C&lt;=O,C,O,0.6,0),COLORFFFF00;  

STICKLINE(C&lt;=O,H,L,0,0),COLORFFFF00;  

AA:=(REF(CLOSE,1)+REF(CLOSE,2)+OPEN)/3;  

DRAWTEXT_FIX(CURRBARSCOUNT=1,0.8,0.05,1,'今日保护价'),LINETHICK2,COLOR00FFFF;  

DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.84,0.05,1,AA);  

DRAWTEXT_FIX(CURRBARSCOUNT=1,0.86,0.05,1,'元');


image.png


[源码注释]通达信公式动态翻译结果




输出XG:1日前的收盘价/1日前的收盘价>0.92


神奇指标网(https://www.shenqizhibiao.com/)所有指标公式及文章来源于网络仅供学习研究

神奇指标收藏 收藏
神奇指标分享 分享