当前位置: 网站首页 > 股票软件公式 > 同花顺公式 > 文章 当前位置: 同花顺公式 > 文章

同花顺源码:逃顶指标,抄底指标,买入加仓逃顶

点击: 次    来源:顶尖财经    作者:股市狙击 - 小 + 大

1、逃顶指标

 此指标在别人基础上优化,感谢源代码提供者
 如果有金黄色向上箭头准备现金
 如果有向上箭头和高红柱同时出现时买入。
 出现白色“逃顶”时出逃,
 注意:绿柱约集中越高(>100以上最好),成功率相当高

 VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);

VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1);
VAR3:=EMA(VAR2,10);
VAR4:=LLV(LOW,33);
QUSHI: 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),9,1),COLOR0000FF;
JIANDI: 1;
MAIRU: IF(CROSS(QUSHI,JIANDI),100,0),color0088ff ,LINETHICK2;
VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3);
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,4,0 ),COLOR00FF55;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,4,0),COLOR0000FF;
DADI:IF((MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5))/MA(C,5)>0.04,100,0),LINETHICK2,colorred;
DRAWICON(DADI=100,100,1),LINETHICK0,color0088ff ;
DRAWTEXT(CROSS(100,QUSHI),100,'▼逃顶');
分界线:100;
 


2、抄底指标

给大家分享一个抄底指标,这个是附图指标,建议主图里用均线系统,当附图出现“抄底”信号时,要通过主图里面的均线系统来加以筛选,比如说当出现“抄底”信号时不要急于买入,可以等10日均线向上时再考虑买入,还有可以通过看在出现信号之前,成交量有没有放大来加以筛选,总之不是每一个“抄底”信号都可以执行,要通过均线或者量能等其它指标辅助来加以甄别,具体情况可以自己把握。( 顶尖财经 股票学院: http://58188.com )

短趋势:((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)-50)*1.032+50),colorred;
VAR2:=(2*CLOSE+HIGH+LOW+OPEN)/5;
VAR3:=LLV(LOW,34);
VAR4:=HHV(HIGH,34);
长趋势:EMA((VAR2-VAR3)/(VAR4-VAR3)*100,13),COLOR00FF00;
判断底:SQRT(SQRT(FLOOR(SQRT(MA(1/WINNER(CLOSE)*100,4)/10000))))*5;
VAR5:=CROSS(短趋势,长趋势)AND 长趋势<25;
底部:STICKLINE(短趋势<10 AND 判断底>0,0,30,6,1);
STICKLINE(VAR5,0,50,8,0),colorred;
DRAWTEXT(COUNT(短趋势<10AND 判断底>0,8) AND VAR5,50,'抄底');
DRAWTEXT(CROSS(短趋势,长趋势)AND 长趋势>25AND 长趋势>REF(长趋势,1),50,'快拉或短顶');
VAR6:=CROSS(短趋势,长趋势)AND 长趋势<50;
DRAWTEXT(COUNT(短趋势<30AND 判断底>0,5) AND VAR6,30,'短线买');



3、买入加仓逃顶

M1:=7;
M2:=17;
M3:=170;
N1:=20;
A1:=MA(CLOSE,M1);
A2:=MA(CLOSE,M2);
A3:=MA(CLOSE,M3);
VAR1:=(CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*100;
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
VAR4:=SMA(VAR3,3,1);
波: VAR3;
段: VAR4;
T1:=COUNT((ABS(A1-A2)/A1)>0.03,5)>1;
T2:=COUNT((ABS(A1-A2)/A1)>0.01,5)>1;
VAR6:=EVERY(VAR3>REF(VAR3,1),2) AND COUNT(CROSS(VAR3,VAR4),5)>0;
R1:=(EVERY(C>A2,3) OR (T1=1 AND EVERY(C>A1,6)) OR (C>A2 AND COUNT(C>A1,4)>2)) AND COUNT(VAR6>0,7) AND COUNT(C<A1,15);
VAR7:=EVERY(VAR3<REF(VAR3,1),2) AND COUNT(CROSS(VAR4,VAR3),5)>0;
C1:=(EVERY(C<A2,3) OR (T1=1 AND EVERY(C<A1,6)) OR (C<A2 AND COUNT(C<A1,4)>2)) AND COUNT(VAR7>0,7) AND COUNT(C>A1,15);
多1:A1>A3 AND R1 AND COUNT(R1,BARSLAST(C1))=1;
DRAWTEXT(FILTER(多1,5)=1,30,'加仓'),LINETHICK3;
STICKLINE(FILTER(多1,5)=1,0,50,2,0),colorblue;
空1:A1>A3 AND C1 AND COUNT(C1,BARSLAST(R1))=1;
DRAWTEXT(FILTER(空1,5)=1,70,'逃顶'),LINETHICK3 ,coloryellow;
STICKLINE(FILTER(空1,5)=1,50,100,2,0),coloryellow;
多2:A1<A3 AND R1 AND COUNT(R1,BARSLAST(C1))=1;
DRAWTEXT(FILTER(多2,5)=1,30,'抄底'),LINETHICK3;
STICKLINE(FILTER(多2,5)=1,0,50,2,0),colorgreen;
空2:A1<A3 AND C1 AND COUNT(C1,BARSLAST(R1))=1;
DRAWTEXT(FILTER(空2,5)=1,70,'加仓'),LINETHICK3 ,coloryellow;
STICKLINE(FILTER(空2,5)=1,50,100,2,0),colorblue;
超买:=EVERY(波>70,2);
STICKLINE(超买>0,75,100,2,0),colormagenta;
超卖:=EVERY(波<25,2);
STICKLINE(超卖>0,0,25,2,0),coloryellow ;
低反:=ABS(C-A3)/A3>0.155 AND 波<30 AND A1<A3;
STICKLINE(低反>0,0,10,2,0),colorred;
高反:=ABS(C-A3)/A3>0.155 AND 波>70 AND A1>A3;
STICKLINE(高反>0,90,100,2,0),colorred;
VAR8:=CROSS(VAR2,VAR3) AND COUNT(VAR3>73,10) AND VAR3>VAR4;
STICKLINE(VAR8,65,100,2,0),colorlired;
高位:85,colorred,LINETHICK1;
低位:15,colorgreen,LINETHICK1;
多1>0 OR 多2>0,PLAYSOUND7;
空1>0 OR 空2>0,PLAYSOUND7;

上一篇:同花顺源码:洪七公,笑脸抄底哭脸逃顶,筹码绝地反击

下一篇:同花顺源码:简单加仓逃顶,顶底波段,厚积薄發副图