【翻倍金三角】起涨妖龙,主图+选股指标
一、指标说明:
三角形态突破指标,绿色为突破买点,绿色与黄线之间的区域为支撑,同时也是止损点位,标注了相对应的价格,直观的显示价格区间,和第一目标区间。
主图如下:
总股本:=STRCAT(STRCAT(' 总股本:',CON2STR(TOTALCAPITAL/1000000,2)),'亿');
流通盘:=STRCAT(STRCAT(' 流通盘:',CON2STR(CAPITAL/1000000,2)),'亿');
全流通:=STRCAT(STRCAT(' 流通比:',CON2STR(CAPITAL/TOTALCAPITAL*100,2)),'%');
市值:=STRCAT(STRCAT(' 流通市值:',CON2STR((CAPITAL/1000000)*C,2)),'亿');
股本市值:=STRCAT('【股本市值】:',STRCAT(STRCAT(STRCAT(总股本,流通盘),全流通),市值));
市盈率:=STRCAT(' 市盈率:',CON2STR(C/FINANCE(33),2));
净资收益率:=STRCAT(' 净资收益率:',CON2STR(FINANCE(33)/FINANCE(34)*100,2));
主营利润率:=STRCAT(' 主营利润率:',CON2STR(FINANCE(23)/FINANCE(20)*100,2));
当前业绩:=STRCAT('【当前业绩】:',STRCAT(STRCAT(市盈率,净资收益率),主营利润率));
DRAWTEXT_FIX(ISLASTBAR,0.005,0.12,0,股本市值),COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0.005,0.17,0,当前业绩),COLORMAGENTA;
CTE1:=REF(HIGH,3)=HHV(HIGH,2*3+1);
CTE2:=FILTER(CTE1,3);
CTE3:=BACKSET(CTE2,3+1);
CTE4:=FILTER(CTE3,3);
CTE5:=REF(LOW,3)=LLV(LOW,2*3+1);
CTE6:=FILTER(CTE5,3);
CTE7:=BACKSET(CTE6,3+1);
CTE8:=FILTER(CTE7,3);
CTE9:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2;
CTE10:=(HIGH+LOW)/2;
CTE11:=(CTE4 AND NOT(CTE8 AND CTE9>=CTE10)) OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;
CTE12:=CTE4 AND NOT(CTE8 AND CTE9>=CTE10);
CTE13:=CTE8 AND NOT(CTE4 AND CTE9=CTE10);
CTE15:=REF(BARSLAST(CTE11),1)+1;
CTE16:=BACKSET(CTE11 AND COUNT(CTE13,CTE15)>0,LLVBARS(IF(CTE13,LOW,10000),CTE15));
CTE17:=CTE16>REF(CTE16,1);
CTE18:=BACKSET(CTE17,2);
CTE19:=CTE18>REF(CTE18,1);
CTE20:=CTE19 OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;
CTE21:=REF(BARSLAST(CTE20),1)+1;
CTE22:=BACKSET(CTE20 AND COUNT(CTE12,CTE21)>0,HHVBARS(IF(CTE12,HIGH,0),CTE21));
CTE23:=CTE22>REF(CTE22,1);
CTE24:=BACKSET(CTE23,2);
CTE25:=CTE24>REF(CTE24,1);
CTE26:=BACKSET(ISLASTBAR,MIN(BARSLAST(CTE25),BARSLAST(CTE19))+1);
CTE27:=CTE26>REF(CTE26,1);
CTE28:=H;
CTE29:=REF(H,REF(BARSLAST(CTE25),1)+1)>REF(H,REF(BARSLAST(CTE25),1)+2+REF(BARSLAST(CTE25),REF(BARSLAST(CTE25),1)+2));
CTE30:=CTE28 AND CTE29 AND CTE25;
CTE31:=BACKSET(CTE30,REF(BARSLAST(CTE25),1)+2);
HH:=CTE31>REF(CTE31,1);
CTE32:=L>REF(L,REF(BARSLAST(CTE19),1)+1);
CTE33:=REF(L,REF(BARSLAST(CTE19),1)+1);
D4:=CTE32 AND CTE33 AND CTE19;
E4:=BACKSET(D4,REF(BARSLAST(CTE19),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(CTE19)+1);
VV:=UU>REF(UU,1);
WW:=BACKSET(VV,REF(BARSLAST(CTE19),1)+2);
XX:=WW>REF(WW,1);
UU2:=BACKSET(ISLASTBAR,BARSLAST(CTE25)+1);
VV2:=UU2>REF(UU2,1);
WW2:=BACKSET(VV2,REF(BARSLAST(CTE25),1)+2);
XCTE21:=WW2>REF(WW2,1);
前一低:=REF(L,BARSLAST(VV)),COLOR99FF66,LINETHICK2;
前二低:=REF(L,BARSLAST(XX)),COLORFF66FF,LINETHICK2;
前一高:=REF(H,BARSLAST(VV2)),COLOR99FF66,LINETHICK2;
前二高:=REF(H,BARSLAST(XCTE21)),COLORFF66FF,LINETHICK2;
短高:=REF(H,BARSLAST(VV2));
短低:=REF(L,BARSLAST(VV));
短比:=(C-短低)/(短高-短低),NODRAW;
底:REF(L,BARSLAST(VV)),COLORYELLOW,LINETHICK2;
顶:REF(H,BARSLAST(VV2)),COLORGREEN,LINETHICK2;
XG:C>顶;
信号:=BARSLASTCOUNT(XG)=1;
DRAWICON(信号,L*0.98,34);
STICKLINE(VV,顶,底,0,0),COLORFF6633,LINETHICK3;
DRAWLINE(VV2,H,VV,L,0),COLORBLUE,LINETHICK3;
DRAWLINE(VV2,H,VV,顶,0),COLORFF6633,LINETHICK3;
DRAWTEXT(ISLASTBAR,顶,STRCAT((''),CON2STR(顶,2))),COLORGREEN;
DRAWTEXT(ISLASTBAR,底,STRCAT((''),CON2STR(底,2))),COLORRED;
STICKLINE(VV2 ,顶,底,0,0),COLORRED,LINETHICK3;
DRAWLINE(VV,L,VV2,H,0),COLORRED,LINETHICK3;
DRAWLINE(VV,L,VV2,底,0),COLORRED,LINETHICK3;
粉色主力进场选股:
GSPT:=REF(HIGH,3)=HHV(HIGH,2*3+1);
CTGSPT5:=FILTER(GSPT,3);
GSPT3:=BACKSET(CTGSPT5,3+1);
GSPT4:=FILTER(GSPT3,3);
GSPT5:=REF(LOW,3)=LLV(LOW,2*3+1);
GSPT6:=FILTER(GSPT5,3);
GSPT7:=BACKSET(GSPT6,3+1);
GSPT8:=FILTER(GSPT7,3);
GSPT9:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2;
GSPT10:=(HIGH+LOW)/2;
GSPT11:=(GSPT4 AND NOT(GSPT8 AND GSPT9>=GSPT10)) OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;
GSPT12:=GSPT4 AND NOT(GSPT8 AND GSPT9>=GSPT10);
GSPT13:=GSPT8 AND NOT(GSPT4 AND GSPT9=GSPT10);
GSPT14:=REF(BARSLAST(GSPT11),1)+1;
GSPT15:=BACKSET(GSPT11 AND COUNT(GSPT13,GSPT14)>0,LLVBARS(IF(GSPT13,LOW,10000),GSPT14));
GSPT16:=GSPT15>REF(GSPT15,1);
I1:=BACKSET(GSPT16,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(GSPT12,X2)>0,HHVBARS(IF(GSPT12,HIGH,0),X2));
G2:=F2>REF(F2,1);
I2:=BACKSET(G2,2);
HD:=I2>REF(I2,1);
UU2:=BACKSET(ISLASTBAR,BARSLAST(HD)+1);
VV2:=UU2>REF(UU2,1);
顶:=REF(H,BARSLAST(VV2)),COLORGREEN,LINETHICK2;
XG:=C>顶 COLORRED;
突破信号:BARSLASTCOUNT(XG)=1;