以下是同花顺神奇底顶副图源码

该指标由民间高手精心编写而成,能较为成功地帮助预示阶段顶部和底部。
 使用说明:出现红色“底”字信号,预示阶段底部,后势上涨概率较大;出现绿色“顶”字信号,预示阶段顶部,后势下跌概率较大。
 该指标叠加了量能饱和指标,能很好地判断顶底走势。
 本指标有未来函数,请谨慎使用。

D1:=REF(H,N);
 D2:=D1=HHV(H,2*N+1);
 D3:=FILTER(D2,N);
 D4:=BACKSET(D3,N+1);
 HD:=FILTER(D4,N);
 D5:=REF(L,N);
 D6:=D5=LLV(L,2*N+1);
 D7:=FILTER(D6,N);
 D8:=BACKSET(D7,N+1);
 LD:=FILTER(D8,N);
 D:=BACKSET(ISLASTBAR,BARSLAST(HD)+1);
 E:=D>REF(D,1);
 F:=BACKSET(E,REF(BARSLAST(HD),1)+2);
 G:=F>REF(F,1);
 DRAWLINE(G,H,E,H,1),POINTDOT,LINETHICK1,coloryellow;
 I:=BACKSET(ISLASTBAR,BARSLAST(LD)+1);
 J:=I>REF(I,1);
 K:=BACKSET(J,REF(BARSLAST(LD),1)+2);
 M:=K>REF(K,1);
 DRAWLINE(M,L,J,L,1),POINTDOT,LINETHICK1,COLORFFB97A;
 M1:=BARSLAST(E);
 M2:=BARSLAST(G);
 M3:=REF(H,M1);
 M4:=REF(H,M2);
 M5:=M4-M2*(M4-M3)/(M2-M1);
 DRAWICON(REF(C,1)<=REF(M5,1) AND C>M5,M5,4);
 N1:=BARSLAST(J);
 N2:=BARSLAST(M);
 N3:=REF(L,N1);
 N4:=REF(L,N2);
 N5:=N4-N2*(N4-N3)/(N2-N1);
 DRAWICON(REF(C,1)>=REF(N5,1) AND C<N5,N5,5);
买点:IF(REF(C,1)<=REF(M5,1) AND C>M5,1,0), LINETHICK0 ;
卖点:IF(REF(C,1)>=REF(N5,1) AND C<N5,1,0), LINETHICK0 ;
 DRAWTEXT(TROUGHBARS(3,15,1)<4,LOW*0.95,’底’) , colorred,LINETHICK1;
 DRAWTEXT(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),HIGH*1.004,’顶’) , colorgreen,LINETHICK1;
 DRAWICON(CROSS(ZIG(3,10) ,REF(ZIG(3 ,10),1)) ,LOW*0.85,’buy’);
 Var1:=IF(YEAR>=2038 AND MONTH>=1,0,1);
 Var2:=REF(LOW,1)*Var1;
 Var3:=SMA(ABS(LOW-Var2),3,1)/SMA(MAX(LOW-Var2,0),3,1)*100*Var1;
 Var4:=EMA(IF(CLOSE*1.3,Var3*10,Var3/10),3)*Var1;
 Var5:=LLV(LOW,30)*Var1;
 Var6:=HHV(Var4,30)*Var1;
 Var7:=IF(MA(CLOSE,58),1,0)*Var1;
 Var8:=EMA(IF(LOW<=Var5,(Var4+Var6*2)/2,0),3)/618*Var7*Var1;
吸筹:IF(Var8>100,100,Var8)*Var1,color00ffff;
庄家吸筹:STICKLINE(吸筹>-150,0,吸筹,6,1),color00ffff;
 gg:=100*(1-WINNER(C))>99.8 AND V/CAPITAL*100<5 AND 100*(WINNER(1.1*C)-WINNER(0.9*C))<3.9;
百年大底:C>REF(C,1) AND REF(gg,1)>0 AND var3,,colorred;
 STICKLINE(C>REF(C,1) AND REF(gg,1)>0 AND var3,0,80,3,0),colorred;
 DRAWTEXT(C>REF(C,1) AND REF(gg,1)>0 AND var3,80,’★百年大底★’),colorred;
量能饱和:IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100>100,100,(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100),COLORFF00FF;

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。