指标公式

多空通道

短顶:EMA(H,25),COLORGREEN;短底:EMA(L,25),COLORGREEN;A111:=PLOYLINE(C>短顶,短顶);NOTEXT_A222:IF(C>短顶,A111,DRAWNULL),COLORRED;B111:=PLOYLINE(C>短底,短底);NOTEXT_B222:IF(C>短底,B111,DRAWNULL),COLORRED;STICKLINE(C>短顶,短顶,短底,0.01,1),COLORRED;STICKLINE(C<短底,短顶,短底,0.01,1),COLORGREEN;

A1:=C>REF(C,4);A2:=C<REF(C,4);T1:=A2 AND REF(A1,1);T2:=A2 AND REF(T1,1);T3:=A2 AND REF(T2,1);T4:=A2 AND REF(T3,1);T5:=A2 AND REF(T4,1);T6:=A2 AND REF(T5,1);T7:=A2 AND REF(T6,1);T8:=A2 AND REF(T7,1);T9:=A2 AND REF(T8,1);T10:=A2 AND REF(T9,1);

长顶:EMA(H,90),COLORBLUE;长底:EMA(L,90),COLORBLUE;C1111:=PLOYLINE(C>长顶,长顶);NOTEXT_C2222:IF(C>长顶,C1111,DRAWNULL),COLORMAGENTA;D1111:=PLOYLINE(C>长底,长底);NOTEXT_D2222:IF(C>长底,D1111,DRAWNULL),COLORMAGENTA;STICKLINE(C>长顶,长顶,长底,0.01,1),COLORMAGENTA;STICKLINE(C<长底,长顶,长底,0.01,1),COLORBLUE;

B1:=C<REF(C,4);B2:=C>REF(C,4);D1:=B2 AND REF(B1,1);DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);MACD:=2*(DIF-DEA);D2:=B2 AND REF(D1,1);D3:=B2 AND REF(D2,1);D4:=B2 AND REF(D3,1);D5:=B2 AND REF(D4,1);D6:=B2 AND REF(D5,1);D7:=B2 AND REF(D6,1);D8:=B2 AND REF(D7,1);D9:=B2 AND REF(D8,1);D10:=B2 AND REF(D9,1);

AAA:=(2*C+H+L+2*O)/6;VAR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;VAR2:=(HHV(VAR1,2)+HHV(VAR1,4)+HHV(VAR1,8))/3;VAR3:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,8))/3;VAR4:=(HHV(VAR2,2)+HHV(VAR2,4)+HHV(VAR2,8))/3;

短空:=REF(C,1)>REF(短底,1) AND C<短底;短多:=REF(C,1)<REF(短顶,1) AND C>短顶;短空1:=短空 AND COUNT(短空,BARSLAST(短多))=1; 短多1:=短多 AND COUNT(短多,BARSLAST(短空))=1;长空:=REF(C,1)>REF(长底,1) AND C<长底;长多:=REF(C,1)<REF(长顶,1) AND C>长顶;长空1:=长空 AND COUNT(长空,BARSLAST(长多))=1; 长多1:=长多 AND COUNT(长多,BARSLAST(长空))=1;

VAR5:=(LLV(VAR3,2)+LLV(VAR3,4)+LLV(VAR3,8))/3;VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,8))/3;AAE:= WINNER(CLOSE+CLOSE*15/100)*100;BBE:= WINNER(CLOSE+CLOSE*0/100)*100;CCE:= AAE-BBE;DDE:= (WINNER(CLOSE-CLOSE*0.1/100)-WINNER(CLOSE-CLOSE*15/100))*100;EEE:= CCE<3 AND DDE<0.5 AND OPEN>LOW;AE1:= DYNAINFO(6);AE2:= IF(LOW>AE1,0,IF(HIGH<AE1,1,(AE1-LOW+0.01)/(HIGH-LOW+0.01)));AE3:= VOL/WINNER(LOW);AE4:= REF(HHV(CLOSE,120),1);

DRAWKLINE(H,O,L,C);DRAWTEXT(短空1,L*1.02,6'),COLORMAGENTA;DRAWTEXT(短多1,L*0.98,4'),COLORMAGENTA;DRAWTEXT(长多1,L*0.98,10'),COLORMAGENTA;DRAWTEXT(长空1,L*0.98,0'),COLORMAGENTA;

AE5:= REF(LLV(CLOSE,120),1);AE6:= 100*(CLOSE-AE5)/(AE4-AE5);AE7:= AE2>0 OR AE2=1;AE8:= AE7 AND AE3/REF(AE3,3)>=3 AND AE6<80;AE9:= REF(AE8,1) OR REF(AE8,2) OR REF(AE8,3) OR REF(AE8,4);AE10:= AE8 AND AE9;AE11:= IF(FILTER(AE8,3),5,0);AE12:= FILTER(IF(FILTER(AE10,3) OR EEE,10,0),3);

ZT_1:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1);ZT_2:=ZT_1>=0.099 AND CLOSE=HIGH AND LOW!=HIGH;STICKLINE(ZT_2,OPEN,CLOSE,2.4,0),COLORYELLOW;

双龙之翼

下偏离值:=6.4;

上偏离值:=5.4;

上轨:EMA(H,55),COLORGREEN;

下轨:EMA(L,55),COLORGREEN;

A1:=PLOYLINE(C>上轨,上轨);

NOTEXT_A2:IF(C>上轨,A1,DRAWNULL),COLORRED;

B1:=PLOYLINE(C>下轨,下轨);

NOTEXT_B2:IF(C>下轨,B1,DRAWNULL),COLORRED;

DIF:=(EMA(CLOSE,12)-EMA(CLOSE,26))*100;DEA:=EMA(DIF,9);MACD:=(DIF-DEA)*2;

{神龙抄底13号}

CDYH:=DIF/C<-下偏离值 && DIF/C<0;

抄底一号:=MACD>REF(MACD,1) && DIF<REF(DIF,1)*1.01 && CDYH,COLORWHITE;

底一号:=抄底一号 AND REF(抄底一号,1)=0,COLORWHITE;

DRAWTEXT(底一号,L*0.99,'←偏离'),COLORMAGENTA;

JJCC:=CROSS(DIF,DEA);

X0ZHH:=BARSLAST(CROSS(0,DIF))+1;

SCCTS:=BARSLAST(CROSS(DEA,DIF))+1,NODRAW;

DIFZDZ1:=LLV(DIF,SCCTS),NODRAW;

GJJZDZ:=LLV(L,SCCTS),NODRAW;

DIFZDZ2:=LLV(DIF,X0ZHH),NODRAW;

DIFWS0ZZ:=HHV(DIF,SCCTS)<-0.08;

LGLJXX:=REF(MACD,1)<0 && REF(MACD,2)<0;

BLLL:=LGLJXX && DIFWS0ZZ && (DIFZDZ1>=REF(DIFZDZ1,SCCTS) || DIFZDZ1>=REF(DIFZDZ2,SCCTS)) && GJJZDZ<=REF(GJJZDZ,SCCTS);

三号:=JJCC && DIF<0 && BLLL,COLORMAGENTA;

DRAWTEXT(三号,L*0.99,'←背离'),COLORMAGENTA;

{神龙逃顶13号}

CCDD1:=DIF/C>上偏离值 && DIF/C>0;

逃顶一号:=MACD<REF(MACD,1) && DIF>REF(DIF,1) && CCDD1,COLORWHITE;

顶一号:=逃顶一号 AND REF(逃顶一号,1)=0,COLORWHITE;

DRAWTEXT(顶一号,H*1.0,'←偏离'),COLORGREEN;

JJC:=CROSS(DEA,DIF);

X0ZHHL:=BARSLAST(CROSS(DIF,0))+1;

SCCTSS:=BARSLAST(CROSS(DIF,DEA))+1,NODRAW;

DIFZDZ11:=HHV(DIF,SCCTSS),NODRAW;

GJJZDZZ:=HHV(H,SCCTSS),NODRAW;

{DIFZDZ2:=HHV(DIF,X0ZHH),NODRAW;}

DIFWS0ZZZ:=HHV(DIF,SCCTSS)>0.08;

LGLJXXX:=REF(MACD,1)>0 && REF(MACD,2)>0;

BLLLL:=LGLJXXX && DIFWS0ZZZ && (DIFZDZ11<=REF(DIFZDZ11,SCCTSS) {|| DIFZDZ11<=REF(DIFZDZ2,SCCTSS)}) && GJJZDZZ>=REF(GJJZDZZ,SCCTSS);

顶三号:=JJC && DIF>0 && BLLLL,COLORMAGENTA;

DRAWTEXT(顶三号,H*1.0,'←背离'),COLORGREEN;

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;

DRAWICON(CROSS(J,0),L*0.98,5);

DRAWICON(CROSS(100,J),H*1.02,6);

定量结构

DIF:100*(EMA(CLOSE,12)-EMA(CLOSE,26));

DEA:EMA(DIF,9);

MACD:(DIF-DEA)*2,COLORSTICK;

死叉:=CROSS(DEA,DIF);

N1:=BARSLAST(死叉),NODRAW;

N2:=REF(BARSLAST(死叉),N1+1),NODRAW;

N3:=REF(BARSLAST(死叉),N2+N1+2),NODRAW;

CL1:=LLV(C,N1+1),NODRAW;

DIFL1:=LLV(DIF,N1+1),NODRAW;

CL2:=REF(CL1,N1+1),NODRAW;

DIFL2:=REF(DIFL1,N1+1),NODRAW;

CL3:=REF(CL2,N1+1),NODRAW;

DIFL3:=REF(DIFL2,N1+1),NODRAW;

PDIFL2:=IF(DIFL2>0,INTPART(LOG(DIFL2))-1,INTPART(LOG(-DIFL2))-1);

MDIFL2:=INTPART(DIFL2/POW(10,PDIFL2));

PDIFL3:=IF(DIFL3>0,INTPART(LOG(DIFL3))-1,INTPART(LOG(-DIFL3))-1);

MDIFL3:=INTPART(DIFL3/POW(10,PDIFL3));

MDIFB2:=INTPART(DIF/POW(10,PDIFL2));

MDIFB3:=INTPART(DIF/POW(10,PDIFL3));

直接底背离:=(CL1<CL2 ) AND (MDIFB2>MDIFL2) AND (MACD<0 AND REF(MACD,1)<0) AND MDIFB2<=REF(MDIFB2,1);

隔峰底背离:=(CL1<CL3 AND CL3<CL2 ) AND (MDIFB3>MDIFL3) AND (MACD<0 AND REF(MACD,1)<0) AND MDIFB3<=REF(MDIFB3,1);

B:直接底背离 OR 隔峰底背离,NODRAW;

BG:((MDIFB2>REF(MDIFB2,1))*REF(直接底背离,1)) OR ((MDIFB3>REF(MDIFB3,1))*REF(隔峰底背离,1)),NODRAW;

底背离消失:=(REF(直接底背离,1) AND DIFL1<=DIFL2 ) OR (REF(隔峰底背离,1) AND DIFL1<=DIFL3);

DRAWTEXT(TFILTER(B,MACD>0,1),(DIF+MACD),'钝化'),COLORRED;

STICKLINE(B OR BG,DIF,DEA,1,0),COLORRED;

DRAWTEXT(TFILTER(底背离消失,B,1),(DIF+MACD),'消失'),COLORYELLOW;

DRAWTEXT(TFILTER(BG,MACD>0,1),DIF*1.1,'结构形成'),COLORMAGENTA;

{顶部结构预警}

金叉:=CROSS(DIF,DEA);

M1:=BARSLAST(金叉),NODRAW;{最近一次金叉的位置}

M2:=REF(BARSLAST(金叉),M1+1),NODRAW;{倒数第二次金叉与倒数第一次金叉的区间}

M3:=REF(BARSLAST(金叉),M2+M1+2),NODRAW;{倒数第三次金叉与倒数第二次金叉的区间}

CH1:=HHV(C,M1+1),NODRAW;{最近一次金叉后,最高收盘价}

DIFH1:=HHV(DIF,M1+1),NODRAW;

CH2:=REF(CH1,M1+1),NODRAW;{倒数第二次金叉与倒数第一次金叉之间的最高收盘价}

DIFH2:=REF(DIFH1,M1+1),NODRAW;

CH3:=REF(CH2,M1+1),NODRAW;{倒数第三次金叉与倒数第二次金叉之间的最高收盘价}

DIFH3:=REF(DIFH2,M1+1),NODRAW;

PDIFH2:=IF(DIFH2>0,INTPART(LOG(DIFH2))-1,INTPART(LOG(-DIFH2))-1);

MDIFH2:=INTPART(DIFH2/POW(10,PDIFH2));

PDIFH3:=IF(DIFH3>0,INTPART(LOG(DIFH3))-1,INTPART(LOG(-DIFH3))-1);

MDIFH3:=INTPART(DIFH3/POW(10,PDIFH3));

MDIFT2:=INTPART(DIF/POW(10,PDIFH2));

MDIFT3:=INTPART(DIF/POW(10,PDIFH3));

直接顶背离:=(CH1>CH2 ) AND (MDIFT2<MDIFH2) AND (MACD>0 AND REF(MACD,1)>0) AND MDIFT2>=REF(MDIFT2,1);

隔峰顶背离:=(CH1>CH3 AND CH3>CH2 ) AND (MDIFT3<MDIFH3) AND (MACD>0 AND REF(MACD,1)>0) AND MDIFT3>=REF(MDIFT3,1);

T:直接顶背离 OR 隔峰顶背离,NODRAW;

TG:((MDIFT2<REF(MDIFT2,1))*REF(直接顶背离,1)) OR ((MDIFT3<REF(MDIFT3,1))*REF(隔峰顶背离,1)),NODRAW;

顶背离消失:=(REF(直接顶背离,1) AND DIFH1>=DIFH2 ) OR (REF(隔峰顶背离,1) AND DIFH1>=DIFH3);

DRAWTEXT(TFILTER(T,MACD<0,1),(DIF+MACD),'钝化'),COLORGREEN;

DRAWTEXT(TFILTER(顶背离消失,T,1),(DIF+MACD),'消失'),COLORYELLOW;

STICKLINE(T OR TG,DIF,DEA,1,0),COLORGREEN;

DRAWTEXT(TFILTER(TG,MACD<0,1),DIF*1.02,'结构形成'),COLORMAGENTA;

叠加因子

DIF:EMA(CLOSE,12)-EMA(CLOSE,26);

DEA:EMA(DIF,9);

MACD:(DIF-DEA)*2,COLORSTICK;

A1:=CROSS(DIF,DEA);

{A1赋值:DIF上穿DEA}

A2:=IF(A1 AND DIF<-0.25 ,1,0);

{A2赋值:如果A1ANDDIF<-0.25,返回1,否则返回0}

DRAWTEXT(A2, CROSS(DIF,DEA)*0.15,'超跌因子'),COLORWHITE;

DRAWICON(A2, CROSS(DIF,DEA)*-0.10,1);

DIF1:=EMA(CLOSE,12)-EMA(CLOSE,26);

DEA1:=EMA(DIF,9);

MACD1:=(DIF1-DEA1)*2,COLORSTICK;

A3:=CROSS(DIF,DEA) AND DEA>0 AND DIF<0.25 ;

{A3赋值:DIF上穿DEA AND DEA>0 AND DIF<0.25}

A4:=COUNT(CROSS(DIF,DEA),20)=1;

{A4赋值:统计20日中满足DIF上穿DEA的天数=1}

YYLM:=A3;

{输出YYLM:A3 AND A4};

DRAWTEXT(YYLM, CROSS(DIF1,DEA1)*0.25,'鱼跃龙门'),COLORYELLOW ;

DRAWICON(YYLM, CROSS(DIF1,DEA1)*-0.10,5);

九转序列

A1:=C>=REF(C,4);

A:=C<REF(C,4);

AA:=C<REF(C,4) AND REF(A1,1);

T:=BARSLAST(AA)NODRAW;

M:=(T=0 AND REFX(T=1 AND NOT(A),1)) OR (REFX(T=2 AND NOT(A),2)) OR (REFX(T=3 AND NOT(A),3)) OR (REFX(T=4 AND NOT(A),4)) OR (REFX(T=5 AND NOT(A),5))

OR (REFX(T=6 AND NOT(A),6)) OR (REFX(T=7 AND NOT(A),7)) OR (REFX(T=8 AND NOT(A),8));

M1:=T=1 AND REFX(T=2 AND NOT(A),1) OR (REFX(T=3 AND NOT(A),2)) OR (REFX(T=4 AND NOT(A),3)) OR (REFX(T=5 AND NOT(A),4)) OR (REFX(T=6 AND NOT(A),5))

OR (REFX(T=7 AND NOT(A),6)) OR (REFX(T=8 AND NOT(A),7));

M2:=T=2 AND REFX(T=3 AND NOT(A),1) OR (REFX(T=4 AND NOT(A),2)) OR (REFX(T=5 AND NOT(A),3)) OR (REFX(T=6 AND NOT(A),4)) OR (REFX(T=7 AND NOT(A),5)) OR (REFX(T=8 AND NOT(A),6));

M3:=T=3 AND REFX(T=4 AND NOT(A),1)OR (REFX(T=5 AND NOT(A),2)) OR (REFX(T=6 AND NOT(A),3)) OR (REFX(T=7 AND NOT(A),4)) OR (REFX(T=8 AND NOT(A),5));

M4:=T=4 AND REFX(T=5 AND NOT(A),1) OR (REFX(T=6 AND NOT(A),2)) OR (REFX(T=7 AND NOT(A),3)) OR (REFX(T=8 AND NOT(A),4));

M5:=T=5 AND REFX(T=6 AND NOT(A),1) OR (REFX(T=7 AND NOT(A),2)) OR (REFX(T=8 AND NOT(A),3));

M6:=T=6 AND REFX(T=7 AND NOT(A),1) OR (REFX(T=8 AND NOT(A),2));

M7:=T=7 AND REFX(T=8 AND NOT(A),1);

N:=T=1 AND REF(T=0 AND AA,1) AND A;

N1:=T=2 AND REF(N,1) AND A;

N2:=T=3 AND REF(N1,1) AND A;

N3:=T=4 AND REF(N2,1) AND A;

N4:=T=5 AND REF(N3,1) AND A;

N5:=T=6 AND REF(N4,1) AND A;

N6:=T=7 AND REF(N5,1) AND A;

N7:=T=8 AND REF(N6,1) AND A;

DRAWTEXT(T=0,H*1,'1')COLORGREEN;

DRAWTEXT(N,H*1,'2')COLORGREEN;

DRAWTEXT(N1,H*1,'3')COLORGREEN;

DRAWTEXT(N2,H*1,'4')COLORGREEN;

DRAWTEXT(N3,H*1,'5')COLORGREEN;

DRAWTEXT(N4,H*1,'6')COLORGREEN;

DRAWTEXT(N5,H*1,'7')COLORGREEN;

DRAWTEXT(N6,H*1,'8')COLORGREEN;

DRAWTEXT(N7,H*1,'9')COLORGREEN;

DRAWICON(N7,H*1.02,1)COLORGREEN;

DRAWTEXT(M,H*1,'1')COLORBLACK;

DRAWTEXT(M1,H*1,'2')COLORBLACK;

DRAWTEXT(M2,H*1,'3')COLORBLACK;

DRAWTEXT(M3,H*1,'4')COLORBLACK;

DRAWTEXT(M4,H*1,'5')COLORBLACK;

DRAWTEXT(M5,H*1,'6')COLORBLACK;

DRAWTEXT(M6,H*1,'7')COLORBLACK;

DRAWTEXT(M7,H*1,'8')COLORBLACK;

B1:=C<=REF(C,4);

B:=C>REF(C,4);

BB:=C>REF(C,4) AND REF(B1,1);

T1:=BARSLAST(BB)NODRAW;

M111:=(T1=0 AND REFX(T1=1 AND NOT(B),1)) OR (REFX(T1=2 AND NOT(B),2)) OR (REFX(T1=3 AND NOT(B),3)) OR (REFX(T1=4 AND NOT(B),4)) OR (REFX(T1=5 AND NOT(B),5))

OR (REFX(T1=6 AND NOT(B),6)) OR (REFX(T1=7 AND NOT(B),7)) OR (REFX(T1=8 AND NOT(B),8));

M11:=T1=1 AND REFX(T1=2 AND NOT(B),1) OR (REFX(T1=3 AND NOT(B),2)) OR (REFX(T1=4 AND NOT(B),3)) OR (REFX(T1=5 AND NOT(B),4)) OR (REFX(T1=6 AND NOT(B),5))

OR (REFX(T1=7 AND NOT(B),6)) OR (REFX(T1=8 AND NOT(B),7));

M22:=T1=2 AND REFX(T1=3 AND NOT(B),1) OR (REFX(T1=4 AND NOT(B),2)) OR (REFX(T1=5 AND NOT(B),3)) OR (REFX(T1=6 AND NOT(B),4)) OR (REFX(T1=7 AND NOT(B),5)) OR (REFX(T1=8 AND NOT(B),6));

M33:=T1=3 AND REFX(T1=4 AND NOT(B),1)OR (REFX(T1=5 AND NOT(B),2)) OR (REFX(T1=6 AND NOT(B),3)) OR (REFX(T1=7 AND NOT(B),4)) OR (REFX(T1=8 AND NOT(B),5));

M44:=T1=4 AND REFX(T1=5 AND NOT(B),1) OR (REFX(T1=6 AND NOT(B),2)) OR (REFX(T1=7 AND NOT(B),7)) OR (REFX(T1=8 AND NOT(B),4));

M55:=T1=5 AND REFX(T1=6 AND NOT(B),1) OR (REFX(T1=7 AND NOT(B),2)) OR (REFX(T1=8 AND NOT(B),3));

M66:=T1=6 AND REFX(T1=7 AND NOT(B),1) OR (REFX(T1=8 AND NOT(B),2));

M77:=T1=7 AND REFX(T1=8 AND NOT(B),1);

N111:=T1=1 AND REF(T1=0 AND BB,1) AND B;

N11:=T1=2 AND REF(N111,1) AND B;

N22:=T1=3 AND REF(N11,1) AND B;

N33:=T1=4 AND REF(N22,1) AND B;

N44:=T1=5 AND REF(N33,1) AND B;

N55:=T1=6 AND REF(N44,1) AND B;

N66:=T1=7 AND REF(N55,1) AND B;

N77:=T1=8 AND REF(N66,1) AND B;

DRAWTEXT(T1=0,H*1,'1')COLOR9900CC;

DRAWTEXT(N111,H*1,'2')COLOR9900CC;

DRAWTEXT(N11,H*1,'3')COLOR9900CC;

DRAWTEXT(N22,H*1,'4')COLOR9900CC;

DRAWTEXT(N33,H*1,'5')COLOR9900CC;

DRAWTEXT(N44,H*1,'6')COLOR9900CC;

DRAWTEXT(N55,H*1,'7')COLOR9900CC;

DRAWTEXT(N66,H*1,'8')COLOR9900CC;

DRAWTEXT(N77,H*1,'9')COLOR9900CC;

DRAWICON(N77,H*1.02,2);

DRAWTEXT(M111,H*1,'1')COLORBLACK;

DRAWTEXT(M11,H*1,'2')COLORBLACK;

DRAWTEXT(M22,H*1,'3')COLORBLACK;

DRAWTEXT(M33,H*1,'4')COLORBLACK;

DRAWTEXT(M44,H*1,'5')COLORBLACK;

DRAWTEXT(M55,H*1,'6')COLORBLACK;

DRAWTEXT(M66,H*1,'7')COLORBLACK;

DRAWTEXT(M77,H*1,'8')COLORBLACK;

顶底副图

RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);VAR2:=IF(HIGH=CLOSE,1.10*CLOSE,HIGH);VAR3:=IF(HIGH=CLOSE,0.90*CLOSE,LOW);短期值1:=EMA((HIGH+LOW)/2,5);顶部线1:=EMA(EMA(VAR2,6)*1.05,8);底部线1:=EMA(EMA(VAR3,6)*0.97,8);VARA1:=EXPMA(CLOSE,5);VARB1:=EXPMA(CLOSE,10);VARC1:=EXPMA(CLOSE,20);VARD1:=EXPMA(CLOSE,50);VARE1:=(VARA1+VARB1+VARC1+VARD1)/4;天线1:=MA(VARE1,4);天线2:=MA(VARE1,5)+MA(VARE1,5)*0.03;天线3:=MA(VARE1,4)-MA(VARE1,4)*0.03;A1:=C>REF(C,4);A2:=C<REF(C,4);T1:=A2 AND REF(A1,1);T2:=A2 AND REF(T1,1);T3:=A2 AND REF(T2,1);T4:=A2 AND REF(T3,1);T5:=A2 AND REF(T4,1);T6:=A2 AND REF(T5,1);T7:=A2 AND REF(T6,1);T8:=A2 AND REF(T7,1);T9:=A2 AND REF(T8,1);T10:=A2 AND REF(T9,1);{DRAWTEXT(T1,L,'1'),COLORGREEN;DRAWTEXT(T2,L,'2'),COLORGREEN;

DRAWTEXT(T3,L,'3'),COLORGREEN;DRAWTEXT(T4,L,'4'),COLORGREEN;DRAWTEXT(T5,L,'5'),COLORGREEN;}B1:=C<REF(C,4);B2:=C>REF(C,4);D1:=B2 AND REF(B1,1);D2:=B2 AND REF(D1,1);D3:=B2 AND REF(D2,1);D4:=B2 AND REF(D3,1);D5:=B2 AND REF(D4,1);D6:=B2 AND REF(D5,1);D7:=B2 AND REF(D6,1);D8:=B2 AND REF(D7,1);D9:=B2 AND REF(D8,1);D10:=B2 AND REF(D9,1);结构线:3*K-2*D;STICKLINE(结构线<0,结构线,0,2,0),COLORRED;STICKLINE(结构线>100,结构线,100,2,0),COLORGREEN;底部:0,LINETHICK1,COLORRED;顶部:100,LINETHICK1,COLORGREEN;

培油抄底

DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);

DEA:=EMA(DIF,9);

MACD:=(DIF-DEA)*2;

LZSD:=BARSLAST("MACD.MACD"<0 AND LLV("MACD.MACD",35)<

REF(LLV("MACD.MACD",35),1))=1  AND DEA<-2.7;

LZSDGL:=IF(LZSD,1,0);

BB:=BARSLAST(CROSS(DEA,DIF)) AND DEA>4.00;

BBXZ:=EXIST(BB,30);

BBGL:=IF(BBXZ=1,1,0);

一号深度宿量:LZSDGL AND BBGL, COLORWHITE,LINETHICK2;

AA1:=CROSS(DIF,DEA);

AA2:=IF(AA1 AND DIF<-1.25 ,1,0) ;

二号深度金叉:AA2 AND COUNT(一号深度宿量,30)=1,COLORYELLOW,LINETHICK2;

TT1:=IF(REF(LLV(DIF,55),1) < REF(LLV(DIF,8),1),1,0);

TT2:=IF(TT1,1,0);

MM:=COUNT(MACD<0,15)>=2;

GJZG2:=IF(REF(LLV(L,55),1) >L,1,0);

GJZG3:=EXIST(GJZG2,6);

底背离2:=TT2 AND GJZG3  AND CROSS(DIF,DEA)  AND MM ;

三号一次底背:COUNT(底背离2,55)=1 AND 底背离2,COLORGREEN,LINETHICK2;

四号二次底背:COUNT(底背离2,55)=2 AND 底背离2,COLORCYAN,LINETHICK2;

SWD:=BARSSINCE(CLOSE<OPEN AND LOW>REF(LOW,1))=1;

LXXD:=REF(LOW,SWD+2)> REF(LOW,SWD+1) AND "MACD.MACD">0  AND DIF>0 AND DEA<0 ;

BB1:=BARSLAST(CROSS(DIF,0)) AND DEA<0;

CC1:=REF(BARSLAST(CROSS(DIF<0,DEA<0))<20,BARSLAST(CROSS(DIF,0))+1);

五号反弹中继:LXXD AND BB1 AND CC1 AND LOW>REF(LOW,1),COLORMAGENTA  ,LINETHICK2;

黄龙出海:=CROSS(DEA,0);

白龙出海:=CROSS(DIF,0);

六号骑零轴:黄龙出海 AND EXIST(白龙出海,15),COLORRED,LINETHICK2;

鱼跃二号

DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);

DEA:=EMA(DIF,9);

MACD:=(DIF-DEA)*2;

AA:=CROSS(DIF,DEA) AND DEA>0;

BB:=BARSLAST(CROSS(DEA,DIF)) AND DEA>0;

CC:=REF(BARSLAST(CROSS(DIF,0))<20,BARSLAST(CROSS(DEA,DIF))+1);

三加二:AA AND BB AND CC;

趋势

上轨:EMA(H,25),COLORGREEN;

下轨:EMA(L,25),COLORGREEN;

NOTEXT_A111:=PLOYLINE(C>上轨,上轨);

NOTEXT_A222:IF(C>上轨,NOTEXT_A111,DRAWNULL),COLORRED;

NOTEXT_B111:=PLOYLINE(C>下轨,下轨);

NOTEXT_B222:IF(C>下轨,NOTEXT_B111,DRAWNULL),COLORRED;

{WWW.GPXIAZAI.COM}

ZT_1:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1);

ZT_2:=ZT_1>=0.099 AND CLOSE=HIGH AND LOW!=HIGH;

STICKLINE(ZT_2,OPEN,CLOSE,2.4,0),COLORYELLOW;

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;

DRAWICON(CROSS(100,J),H*1.004,6);

DRAWICON(CROSS(J,0),L*0.996,5);

DRAWTEXT_FIX(1,0.1,0,1,'芙芙制作'),COLORYELLOW;

A1:=C>REF(C,4);A2:=C<REF(C,4);

T1:=A2 AND REF(A1,1);T2:=A2 AND REF(T1,1);

T3:=A2 AND REF(T2,1);T4:=A2 AND REF(T3,1);

T5:=A2 AND REF(T4,1);T6:=A2 AND REF(T5,1);

T7:=A2 AND REF(T6,1);T8:=A2 AND REF(T7,1);

T9:=A2 AND REF(T8,1);

DRAWTEXT(T6,L*0.994,'6'),COLORGREEN;

DRAWTEXT(T7,L*0.994,'7'),COLORGREEN;

DRAWTEXT(T8,L*0.994,'8'),COLORGREEN;

DRAWTEXT(T9,L*0.994,'9'),COLORYELLOW;

B1:=C<REF(C,4);B2:=C>REF(C,4);

D1:=B2 AND REF(B1,1);D2:=B2 AND REF(D1,1);

D3:=B2 AND REF(D2,1);D4:=B2 AND REF(D3,1);

D5:=B2 AND REF(D4,1);D6:=B2 AND REF(D5,1);

D7:=B2 AND REF(D6,1);D8:=B2 AND REF(D7,1);

D9:=B2 AND REF(D8,1);

DRAWTEXT(D6,H*1.006,'6'),COLORYELLOW;

DRAWTEXT(D7,H*1.006,'7'),COLORYELLOW;

DRAWTEXT(D8,H*1.006,'8'),COLORYELLOW;

DRAWTEXT(D9,H*1.006,'9'),COLORGREEN;

通道

(0)

相关推荐