【金钻指标精选】通达信【顶底精准预测】主图指标公式,助你股海擒牛!

财富   2024-11-25 22:33   湖北  


  精 彩 内 容 呈 现 


 指    标    源    码


周期微调:=5;

高位A:=0;

低位B:=0;

次高3买:=0;

后低3章鱼哥卖:=0;

趋势线开关:=0;

手动开关:=0;

微调开关:=0;

结构带开关:=1;

顶底开关:=1;

AR1:=BARSCOUNT(C);

AR2:=CONST(AR1);

AR3:=AR2-AR1;

K线根数:AR3+1,NODRAW,COLORYELLOW;

XA:=(3*CLOSE+LOW+OPEN+HIGH)/6;

XA_1:=IF(结构带开关=1,XA,DRAWNULL);

B:(20*XA_1+19*REF(XA_1,1)+18*REF(XA_1,2)+17*REF(XA_1,3)+16*REF(XA_1,4)+15*REF(XA_1,5)+14*REF(XA_1,6)+13*REF(XA_1,7)+12*REF(XA_1,8)+11*REF(XA_1,9)+10*REF(XA_1,10)+9*REF(XA_1,11)+8*REF(XA_1,12)+7*REF(XA_1,13)+6*REF(XA_1,14)+5*REF(XA_1,15)+4*REF(XA_1,16)+3*REF(XA_1,17)+2*REF(XA_1,18)+REF(XA_1,20))/210,COLORMAGENTA,LINETHICK3;

D:MA(B,15),COLORFFFF00,LINETHICK3;

DRAWBAND(B,RGB(190,94,245),D,RGB(69,201,11));

DRAWKLINE(HIGH,OPEN,LOW,CLOSE);

KDJA :=3*SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,3,1)-2*SMA(SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,3,1),3,1),NODRAW;

STICKLINE(顶底开关>0 AND (KDJA >=90),CLOSE,OPEN,3,0),COLORYELLOW;

STICKLINE(顶底开关>0 AND (KDJA <=10),CLOSE,OPEN,3,0),COLORBLUE;

XD:=B>D;

XY:=H>=B AND C>O AND L>D    AND L<=B;

STICKLINE(XD AND XY,OPEN,CLOSE,3,0),COLORLIRED;

DRAWICON(XY AND XD,LOW,23);

A1:=(REF(HIGH,周期微调)=HHV(HIGH,(周期微调+1)));

B1:=FILTER(A1,周期微调);

C1:=BACKSET(B1,(周期微调+1));

D1:=FILTER(C1,周期微调);

A2:=(REF(LOW,周期微调)=LLV(LOW,(周期微调+1)));

B2:=FILTER(A2,周期微调);

C2:=BACKSET(B2,(周期微调+1));

D2:=FILTER(C2,周期微调);

E1:=(REF(LLV(LOW,周期微调),1)+REF(HHV(HIGH,周期微调),1))/2;

E2:=(HIGH+LOW)/2;

H1:=(D1 AND NOT(D2 AND E1>=E2)) OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;

H2:=D1 AND NOT(D2 AND E1>=E2);

L1:=D2 AND NOT(D1 AND E1=E2);

X1:=REF(BARSLAST(H1),1)+1;

F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,LOW,10000),X1));

G1:=F1>REF(F1,1);

I1:=BACKSET(G1,2);

LD:=I1>REF(I1,1);

L2:=LD OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;

X2:=REF(BARSLAST(L2),1)+1;

F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,HIGH,0),X2));

G2:=F2>REF(F2,1);

I2:=BACKSET(G2,2);

HD:=I2>REF(I2,1);

A3:=H;

B3:=REF(H,REF(BARSLAST(HD),1)+1)>REF(H,REF(BARSLAST(HD),1)+2+REF(BARSLAST(HD),REF(BARSLAST(HD),1)+2));

D3:=A3 AND B3 AND HD;

E3:=BACKSET(D3,REF(BARSLAST(HD),1)+2);

HH:=E3>REF(E3,1);

A4:=L>REF(L,REF(BARSLAST(LD),1)+1);

B4:=REF(L,REF(BARSLAST(LD),1)+1);

D4:=A4 AND B4 AND LD;

E4:=BACKSET(D4,REF(BARSLAST(LD),1)+2);

LL:=E4>REF(E4,1);

H3:=HH OR ISLASTBAR OR BARSCOUNT(C)=1;

X3:=REF(BARSLAST(H3),1)+1;

F3:=BACKSET(H3 AND COUNT(LL,X3)>0,LLVBARS(IF(LL,L,POW(10,20)),X3));

G3:=F3>REF(F3,1);

    I3:=BACKSET(G3,2);

    LZ:=I3>REF(I3,1);

L4:=LZ OR ISLASTBAR OR BARSCOUNT(C)=1;

X4:=REF(BARSLAST(L4),1)+1;

F4:=BACKSET(L4 AND COUNT(HH,X4)>0,HHVBARS(IF(HH,H,-POW(10,20)),X4));

G4:=F4>REF(F4,1);

    I4:=BACKSET(G4,2);

    HZ:=I4>REF(I4,1);

K1:=BACKSET(ISLASTBAR,MIN(BARSLAST(HZ),BARSLAST(LZ))+1);

K2:=K1>REF(K1,1);

UU:=BACKSET(ISLASTBAR,BARSLAST(LD)+1);

VV:=UU>REF(UU,1);

WW:=BACKSET(VV,REF(BARSLAST(LD),1)+2);

XX:=WW>REF(WW,1);

UU2:=BACKSET(ISLASTBAR,BARSLAST(HD)+1);

VV2:=UU2>REF(UU2,1);

WW2:=BACKSET(VV2,REF(BARSLAST(HD),1)+2);

XX2:=WW2>REF(WW2,1);

IF(趋势线开关=1,DRAWLINE(LD,L,HD,H,0),DRAWNULL)LINETHICK1,DOTLINE,COLOR0000FF;

IF(趋势线开关=1,DRAWLINE(HD,H,LD,L,0),DRAWNULL)LINETHICK1,DOTLINE,COLOR00FF00;

K:=CURRBARSCOUNT,NODRAW;

DRAWNUMBER(趋势线开关=1 AND HD,H,K),COLORLIRED,DRAWABOVE;

DRAWNUMBER(趋势线开关=1 AND LD,L,K),COLORFFFF00;

章鱼哥高点:=BARSLAST(HD);

章鱼哥低点:=BARSLAST(LD);

J1:=BACKSET(ISLASTBAR,MIN(章鱼哥高点,章鱼哥低点)+1);

J2:=J1>REF(J1,1);

章鱼哥高位价:=IF(微调开关=1,REF(REF(H,章鱼哥高点),1),DRAWNULL)COLORRED,NODRAW;

章鱼哥低位价:=IF(微调开关=1,REF(REF(L,章鱼哥低点),1),DRAWNULL)COLORGREEN,NODRAW;

H11:=章鱼哥高位价,NODRAW;

H12:=章鱼哥低位价,NODRAW;

L22:=DRAWNULL,NODRAW;

VVC1:=IF(章鱼哥高点< 章鱼哥低点,H11,L22),NODRAW;

VVC2:=IF(LOW>章鱼哥低位价,H11,L22),NODRAW;

CL3:=VVC1 AND VVC2,COLOR00FFFF,NODRAW;

两点买入成立:=CL3,NODRAW;

章鱼哥高位价1:=IFC(CL3,H11,L22);

章鱼哥低位价1:=IFC(CL3,H12,L22);

ZYG1:=章鱼哥高位价1/章鱼哥低位价1;

ZYG2:=SQRT(SQRT(ZYG1));

ZYG3:=SQRT(ZYG1);

ZYG4:=ZYG3+ZYG2-1;

ZYG5:=章鱼哥高位价1/ZYG2;

ZYG6:=章鱼哥高位价1/ZYG3;

ZYG7:=章鱼哥高位价1/ZYG4;

ZYG8:=REFDATE(HHV(H,章鱼哥高点+1),DATE);

ZYG9:=REFDATE(LLV(L,章鱼哥低点+1),DATE);

章鱼哥买C1:=CONST(ZYG5),NODRAW;

章鱼哥买C2:=CONST(ZYG6),NODRAW;

章鱼哥买C3:=CONST(ZYG7),NODRAW;

章鱼哥买入C1:DRAWLINE(VV2,CONST(章鱼哥买C1),CURRBARSCOUNT=1,章鱼哥买C1,1),COLORFF8800,DOTLINE;

章鱼哥买入C2:DRAWLINE(VV2,CONST(章鱼哥买C2),CURRBARSCOUNT=1,章鱼哥买C2,1),COLORFF8800,DOTLINE;

章鱼哥买入C3:DRAWLINE(VV2,CONST(章鱼哥买C3),CURRBARSCOUNT=1,章鱼哥买C3,1),COLORFF8800,DOTLINE;

DRAWTEXT(VV2,章鱼哥买C1,VARCAT('章鱼哥买C1=',VAR2STR(章鱼哥买C1,2))),COLORWHITE;

DRAWTEXT(VV2,章鱼哥买C2,VARCAT('章鱼哥买C2=',VAR2STR(章鱼哥买C2,2))),COLORWHITE;

DRAWTEXT(VV2,章鱼哥买C3,VARCAT('章鱼哥买C3=',VAR2STR(章鱼哥买C3,2))),COLORWHITE;

DRAWTEXT(VV,L,VARCAT('(低位)',VAR2STR(L,2))),COLORGREEN;

DRAWTEXT(VV2,H,VARCAT('(高位)',VAR2STR(H,2))),COLORRED;

STICKLINE(VV2,H,CONST(ZYG7),0,-1),COLORFF8800;

IFC(CL3,DRAWLINE(VV,L,VV2,H,0),DRAWNULL),COLORFF8800,LINETHICK3;

章鱼哥高位价2:=IF(微调开关=1,REF(REF(H,章鱼哥高点),1),DRAWNULL)NODRAW;

章鱼哥低位价2:=IF(微调开关=1,REF(REF(L,章鱼哥低点),1),DRAWNULL)NODRAW;

H111:=章鱼哥高位价2,NODRAW;

H121:=章鱼哥低位价2,NODRAW;

L221:=DRAWNULL,NODRAW;

H221:=章鱼哥高位价2,NODRAW;

H231:=章鱼哥低位价2,NODRAW;

VVA1:=IF(章鱼哥高点>章鱼哥低点,H121,L221)NODRAW;

VVA2:=IF(HIGH< 章鱼哥高位价2,H111,L221);

CL1:=VVA1 AND VVA2 ,COLOR00FFFF,NODRAW;

两点卖出成立:=CL1,NODRAW,COLORYELLOW;

章鱼哥高位价3:=IFC(CL1,H111,L221);

章鱼哥低位价3:=IFC(CL1,H121,L221);

ZYG11:=章鱼哥高位价3/章鱼哥低位价3;

ZYG21:=SQRT(SQRT(ZYG11));

ZYG31:=SQRT(ZYG11);

ZYG41:=ZYG31+ZYG21-1;

ZYG51:=章鱼哥低位价3*ZYG21;

ZYG61:=章鱼哥低位价3*ZYG31;

ZYG71:=章鱼哥低位价3*ZYG41;

章鱼哥卖C1:=CONST(ZYG51),NODRAW;

章鱼哥卖C2:=CONST(ZYG61),NODRAW;

章鱼哥卖C3:=CONST(ZYG71),NODRAW;

DRAWTEXT_FIX(C>O,0,0.07,0,'更多实用指标公式,请关注微信公众号:金钻指标精选'),COLORWHITE;

章鱼哥卖出C1:DRAWLINE(VV,CONST(章鱼哥卖C1),CURRBARSCOUNT=1,章鱼哥卖C1,1),COLORMAGENTA,DOTLINE;

章鱼哥卖出C2:DRAWLINE(VV,CONST(章鱼哥卖C2),CURRBARSCOUNT=1,章鱼哥卖C2,1),COLORMAGENTA,DOTLINE;

章鱼哥卖出C3:DRAWLINE(VV,CONST(章鱼哥卖C3),CURRBARSCOUNT=1,章鱼哥卖C3,1),COLORMAGENTA,DOTLINE;

DRAWTEXT(VV,章鱼哥卖C1,VARCAT('章鱼哥卖C1=',VAR2STR(章鱼哥卖C1,2))),COLORYELLOW;

DRAWTEXT(VV,章鱼哥卖C2,VARCAT('章鱼哥卖C2=',VAR2STR(章鱼哥卖C2,2))),COLORYELLOW;

DRAWTEXT(VV,章鱼哥卖C3,VARCAT('章鱼哥卖C3=',VAR2STR(章鱼哥卖C3,2))),COLORYELLOW;

STICKLINE(VV,L,CONST(ZYG71),0,-1),COLORMAGENTA;

IFC(CL1,DRAWLINE(VV2,H,VV,L,0),DRAWNULL),COLORMAGENTA,LINETHICK3;

前高2:=BARSLAST(XX2),NODRAW;

低位2:=BARSLAST(VV),NODRAW;

次高2:=BARSLAST(VV2),NODRAW;

前低2:=BARSLAST(XX),NODRAW;

前高价:=IF(微调开关=1,REF(REF(H,前高2),1),DRAWNULL)COLORLIRED,NODRAW;

低价:=IF(微调开关=1,REF(REF(L,低位2),1),DRAWNULL)COLORGREEN,NODRAW;

次高价:=IF(微调开关=1,REF(REF(H,次高2),1),DRAWNULL)COLORYELLOW,NODRAW;

前低价:=IF(微调开关=1,REF(REF(L,前低2),1),DRAWNULL)COLORFFFF00,NODRAW;

MH11:=前高价,NODRAW;

MH21:=低价,NODRAW;

MH31:=次高价,NODRAW;

VVM11:=IF(前高2>低位2,MH11,DRAWNULL)NODRAW;

VVM21:=IF(低位2>次高2,MH21,DRAWNULL)NODRAW;

VVM31:=IF(前高价>=次高价,MH11,DRAWNULL)NODRAW;

VVM41:=IF(次高价>低价,MH31,DRAWNULL)NODRAW;

VVM51:=IF(LOW<=MH21,MH21,DRAWNULL)NODRAW;

CL4:=VVM11 AND VVM21 AND VVM31 AND VVM41 AND VVM51,COLOR00FFFF,NODRAW;

三点买入成立:=CL4,COLORRED,NODRAW;

前高价6:=IFC(CL4,MH11,DRAWNULL);

章鱼哥低位价6:=IFC(CL4,MH21,DRAWNULL);

次高价6:=IFC(CL4,MH31,DRAWNULL);

ZYGJ1:=SQRT(前高价6/章鱼哥低位价6);

ZYGJ2:=SQRT(ZYGJ1);

CA:=章鱼哥低位价6/ZYGJ2;

CB:=章鱼哥低位价6/ZYGJ1;

CD:=章鱼哥低位价6/(ZYGJ1+ZYGJ2-1);

章鱼哥买D1:=CONST(CA),NODRAW;

章鱼哥买D2:=CONST(CB),NODRAW;

章鱼哥买D3:=CONST(CD),NODRAW;

章鱼哥买入D1:DRAWLINE(VV2, CONST(CA), CURRBARSCOUNT=1, CA,1),COLORGREEN,DOTLINE;

章鱼哥买入D2:DRAWLINE(VV2, CONST(CB), CURRBARSCOUNT=1, CB,1),COLORGREEN,DOTLINE;

章鱼哥买入D3:DRAWLINE(VV2, CONST(CD), CURRBARSCOUNT=1, CD,1),COLORGREEN,DOTLINE;

DRAWTEXT(VV2,章鱼哥买D1,VARCAT('章鱼哥买D1=',VAR2STR(章鱼哥买D1,2))),COLORWHITE;

DRAWTEXT(VV2,章鱼哥买D2,VARCAT('章鱼哥买D2=',VAR2STR(章鱼哥买D2,2))),COLORWHITE;

DRAWTEXT(VV2,章鱼哥买D3,VARCAT('章鱼哥买D3=',VAR2STR(章鱼哥买D3,2))),COLORWHITE;

DRAWTEXT(XX2,H,VARCAT('3点(前高)',VAR2STR(H,2))),COLORLIRED;

STICKLINE(VV2,H,CONST(CD),0,-1),COLORGREEN;

IFC(CL4,DRAWLINE(XX2,H,VV,L,0),DRAWNULL)COLORGREEN,LINETHICK3;

IFC(CL4,DRAWLINE(VV,L,VV2,H,0),DRAWNULL)COLORFF8800,LINETHICK3;

前低:=BARSLAST(XX),NODRAW;

高位:=BARSLAST(VV2),NODRAW;

次低:=BARSLAST(VV),NODRAW;

前低价4:=IF(微调开关=1,REF(REF(L,前低),1),DRAWNULL)COLORGREEN,NODRAW;

章鱼哥高位价4:=IF(微调开关=1,REF(REF(H,高位),1),DRAWNULL)COLORRED,NODRAW;

次低价4:=IF(微调开关=1,REF(REF(L,次低),1),DRAWNULL)COLORFFFF00,NODRAW;

HH11:=前低价4,NODRAW;

HH21:=章鱼哥高位价4,NODRAW;

H131:=次低价4,NODRAW;

VVA11:=IF(前低>高位,HH11,DRAWNULL)NODRAW;

VVA21:=IF(高位>次低,HH21,DRAWNULL)NODRAW;

VVA31:=IF(前低价4<=次低价4,HH11,DRAWNULL)NODRAW;

VVA41:=IF(章鱼哥高位价4>前低价4,HH11,DRAWNULL)NODRAW;

VVA51:=IF(HIGH>=HH21,HH21,DRAWNULL)NODRAW;

CL2:=VVA11 AND VVA21 AND VVA31 AND VVA41 AND VVA51,COLOR00FFFF,NODRAW;

三点卖出成立:=CL2,NODRAW;

前低价5:=IFC(CL2,HH11,DRAWNULL);

章鱼哥高位价5:=IFC(CL2,HH21,DRAWNULL);

次低价5:=IFC(CL2,H131,DRAWNULL);

ZYGV1:=SQRT(章鱼哥高位价5/前低价5);

ZYGV2:=SQRT(ZYGV1);

N1:=章鱼哥高位价5/ZYGV2;

N2:=章鱼哥高位价5/ZYGV1;

N3:=章鱼哥高位价5/(ZYGV2+ZYGV1-1);

CF:=2*章鱼哥高位价5-前低价5-(N2-N3),COLORRED,NODRAW;

CG:=章鱼哥高位价5+(章鱼哥高位价5-前低价5),COLORRED,NODRAW;

CJ:=2*章鱼哥高位价5-前低价5+(N1-N2),COLORRED,NODRAW;

章鱼哥卖D1:=CONST(CF),NODRAW;

章鱼哥卖D2:=CONST(CG),NODRAW;

章鱼哥卖D3:=CONST(CJ),NODRAW;

章鱼哥卖出D1:DRAWLINE(VV,CONST(CF),CURRBARSCOUNT=1,CF,1),COLORLIRED,DOTLINE;

章鱼哥卖出D2:DRAWLINE(VV,CONST(CG),CURRBARSCOUNT=1,CG,1),COLORLIRED,DOTLINE;

章鱼哥卖出D3:DRAWLINE(VV,CONST(CJ),CURRBARSCOUNT=1,CJ,1),COLORLIRED,DOTLINE;

DRAWTEXT(VV,章鱼哥卖出D1,VARCAT('章鱼哥卖D1=',VAR2STR(章鱼哥卖D1,2))),COLORWHITE;

DRAWTEXT(VV,章鱼哥卖出D2,VARCAT('章鱼哥卖D2=',VAR2STR(章鱼哥卖D2,2))),COLORWHITE;

DRAWTEXT(VV,章鱼哥卖出D3,VARCAT('章鱼哥卖D3=',VAR2STR(章鱼哥卖D3,2))),COLORWHITE;

DRAWTEXT(XX,L,VARCAT('3点(前低)',VAR2STR(L,2))),COLORFFFF00;

STICKLINE(VV,L,CONST(CJ),0,-1),COLORLIRED;

IFC(CL2,DRAWLINE(XX,L,VV2,H,0),DRAWNULL)COLORLIRED,LINETHICK3;

IFC(CL2,DRAWLINE(VV2,H,VV,L,0),DRAWNULL)COLORMAGENTA,LINETHICK3;

DRAWICON(XX2,H,39);

DRAWICON(XX,L,38);

DRAWICON(VV,L,38);

DRAWICON(VV2,H,39);

GB2:=IF(手动开关=1,CONST(REF(H,高位A-1)),DRAWNULL),NODRAW;

LB2:=IF(手动开关=1,CONST(REF(L,低位B-1)),DRAWNULL),NODRAW;

HB1:=IF(手动开关=1,CONST(REF(H,次高3买-1)),DRAWNULL),NODRAW;

CB1A:=IF(次高3买=0,HB1,HB1);

鱼哥11:=IF(高位A>低位B,GB2,DRAWNULL)NODRAW;

鱼哥22:=IF(高位A>低位B,LB2,DRAWNULL)NODRAW;

鱼哥33:=IF(GB2>LB2 AND 次高3买=0,GB2,DRAWNULL)NODRAW;

鱼哥44:=IF(GB2>LB2 AND 次高3买=0,LB2,DRAWNULL)NODRAW;

CB1:=鱼哥11 AND 鱼哥22 AND 鱼哥33 AND 鱼哥44 ,NODRAW;

CB1B:=IF(HB1>LB2 AND GB2>HB1,HB1,DRAWNULL);

GB3:=IFC(CB1,GB2,DRAWNULL);

LB3:=IFC(CB1,LB2,DRAWNULL);

VAB1:=SQRT(GB3/LB3);

VAB2:=SQRT(VAB1);

FB:=LB3*SQRT(VAB1),NODRAW;

GB:=LB3*VAB1,NODRAW;

JB:=LB3*(VAB1+VAB2-1),NODRAW;

DRAWLINE(CURRBARSCOUNT=(低位B), CONST(FB), CURRBARSCOUNT=低位B-6, FB,0),COLORLIRED,DOTLINE;

DRAWLINE(CURRBARSCOUNT=(低位B), CONST(GB), CURRBARSCOUNT=低位B-7, GB,0),COLORLIRED,DOTLINE;

DRAWLINE(CURRBARSCOUNT=(低位B), CONST(JB), CURRBARSCOUNT=低位B-8, JB,0),COLORLIRED,DOTLINE;

DRAWTEXT(CURRBARSCOUNT=低位B,FB,VARCAT('章鱼哥卖C1=',VAR2STR(FB,2))),COLORYELLOW;

DRAWTEXT(CURRBARSCOUNT=低位B,GB,VARCAT('章鱼哥卖C2=',VAR2STR(GB,2))),COLORYELLOW;

DRAWTEXT(CURRBARSCOUNT=低位B,JB,VARCAT('章鱼哥卖C3=',VAR2STR(JB,2))),COLORYELLOW;

DRAWTEXT(CURRBARSCOUNT=高位A,H*1.015,VARCAT('高位【A】',VAR2STR(H,2))),COLORRED;

DRAWTEXT(CURRBARSCOUNT=低位B,L*0.98,VARCAT('低位【B】',VAR2STR(L,2))),COLORGREEN;

DRAWLINE(CURRBARSCOUNT=低位B,L,CURRBARSCOUNT=低位B-7,CONST(JB),0),COLORLIRED,DOTLINE;

IF(手动开关=1,DRAWLINE(CURRBARSCOUNT=高位A,H,CURRBARSCOUNT=低位B,L,0),DRAWNULL),COLORFF0080,LINETHICK3;

STICKLINE(CURRBARSCOUNT=低位B,L,CONST(JB),0,-1),COLORLIRED;





PS:

新增2个微信公众号,用来补充分享指标公式源码和机会提示,有需要的可以关注下!


使用说明:




点击下方短线指标公式公众号名片,关注星标后,每天免费获取更多精彩指标公式!



温馨提示



我每天分享指标,不求打赏,请大家看完文章后保持互动

帮忙点击底部【在看+赞

保持互动,系统才会及时向你推送文章,不错过精品指标。

金钻指标精选
定时更新各类指标公式以及各种看盘软件,助力您在股市斩获丰利。资源共享,以股会友!
 最新文章