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

同花顺源码:KW凯文逃顶,资金看涨跌,主图重要点位提示

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

1、KW凯文逃顶

a、看图中说明

b、搭配指标“KW趋势线”,轻松降龙
c、我的自用指标,若要更深层次的熟练以上两个指标,实现稳定盈利,



RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,M1,1);
D:SMA(K,M2,1);
J:3*K-2*D,colormagenta;
KD差值:K-D,NODRAW;
筹码集中价:(3*REF(KDJ.D,1)-2*REF(KDJ.K,1))*(HHV(HIGH,9)-LLV(LOW,9))/100+LLV(LOW,9),NODRAW;
筹码浮动:(CLOSE-筹码集中价)/筹码集中价*100,colorred,NODRAW;
DRAWICON(CROSS(J,K),K,1);
DRAWICON(CROSS(K,J),D,2);
明天观察价:(3*KDJ.D-2*KDJ.K)*(HHV(HIGH,N)-LLV(LOW,N))/100+LLV(LOW,N),colorred,NODRAW;
筹码浮动预警:(C-明天观察价)/明天观察价*100, NODRAW;
筹码集中天:BARSLAST(KDJ.K<KDJ.D),NODRAW;
筹码见底天:BARSLAST(KDJ.K>KDJ.D),NODRAW;
A1:=BARSLAST(REF(CROSS(K,D),1));
抄底机会:=REF(CLOSE,A1+1)>CLOSE AND K>REF(K,A1+1) AND CROSS(K,D);
DRAWTEXT(抄底机会,K*0.6,'抄底');
A2:=BARSLAST(REF(CROSS(D,K),1));
战术撤退:=REF(CLOSE,A2+1)<CLOSE AND REF(K,A2+1)>K AND CROSS(D,K);
DRAWTEXT(战术撤退,K*1.3,'逃顶');
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);
VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3);
VAR6:0;
主力进场:IF(VAR5>REF(VAR5,1),VAR5,0),colorred,NODRAW;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,0.01,0 ),colorred;
准备拉升:IF(VAR5<REF(VAR5,1),VAR5,0),colorgreen,NODRAW;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,0.01,0),colorgreen;
VAR11:=(2*CLOSE+HIGH+LOW)/4;
VAR22:=LLV(LOW,34);
VAR33:=HHV(HIGH,34);
XX:=EMA((VAR11-VAR22)/(VAR33-VAR22)*100,13);
YY:=EMA(0.667*REF(XX,1)+0.333*XX,2) , ;
选股:IF(CROSS(XX,YY) AND XX<20 ,30,1);
逃顶:IF(FILTER(CROSS(YY,XX) AND XX>80 ,3),60,90),COLORFF0000;




2、资金看涨跌

VAR1:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3;

持币区域:VAR1,colorgreen;
持股区域:IF(VAR1>0,VAR1,0),colorred;
短顶:STICKLINE(VAR1>9 AND FILTER(VAR1<REF(VAR1,1),5),VAR1+2,0,3,0),colorgreen;
大顶:STICKLINE(VAR1>20 AND FILTER(VAR1<REF(VAR1,1),5),VAR1+5,0,7,0),COLOR00FF00;
VAR2:=HHV(VAR1>20,10);
危险: STICKLINE(VAR2 AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),VAR1+10,0,4,0);
注意止损:STICKLINE(VAR2 AND FILTER(VAR1< REF(VAR1,1),6)
AND CROSS(MA(CLOSE,5),MA(CLOSE,2)),VAR1+6,0,3,0);
短底:STICKLINE(VAR1<-9 AND VAR1> REF(VAR1,1),VAR1-2,0,3,0),colorred;
大底:STICKLINE(VAR1<-20 AND FILTER(VAR1> REF(VAR1,1),5),VAR1-5,0,7,0),coloryellow;
买入准备:VAR1<-9 AND VAR1>REF(VAR1,1),coloryellow;
DRAWTEXT(VAR1>9 AND FILTER(VAR1<REF(VAR1,1),5),VAR1+2,'短顶'),COLOR00FF00;
DRAWTEXT(VAR1>20 AND FILTER(VAR1<REF(VAR1,1),5),VAR1+5,'大顶'),COLORFFFF00;
DRAWTEXT(VAR2 AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),VAR1+10,'危险'),COLOR00FFFF;
DRAWTEXT(VAR2 AND FILTER(VAR1< REF(VAR1,1),6) AND CROSS(MA(CLOSE,5),MA(CLOSE,2)),VAR1+6,'注意止损'),COLORFF00FF;
DRAWTEXT(FILTER(VAR1<-9 AND VAR1>REF(VAR1,1),18),VAR1-2,'短底'),,COLOR0000FF;
DRAWTEXT(VAR1<-20 AND FILTER(VAR1> REF(VAR1,1),5),VAR1-5,'大底'),;
DRAWTEXT(FILTER(VAR1<-9 AND VAR1>REF(VAR1,1),18),1,'买入准备');
N1:=9;N2:=5;
MTM:=C-REF(C,1);
主力:100*EMA(EMA(MTM,N1),N1)/EMA(EMA(ABS(MTM),N1),N1);
 


3、主图重要点位提示

每次盯盘都要看重要的点位,其实就是某些K线的三一位,二一位,顶底等。每次计算都很麻烦,所以编写这个指标能自动提示三一二一位,有助于做出强弱判断,也有助于画图取点。又集成了短期均线做辅助。喜欢的希望您给个五星鼓励一下,您的鼓励就是我的动力。( 顶尖财经 股票学院: http://58188.com )

重要的压力位支撑位,每根k线的三一,二一位,涨跌停提示

涨停:=(C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(O,1));
STICKLINE(涨停,O,C,6,0),coloryellow;
跌停:=(REF(C,1)-C)*100/REF(C,1)>=(10-0.01*100/REF(C,1));
STICKLINE(跌停,O,C,6,0),colorligreen;
上三一:IF(C>O,(C-(C-O)/3),(O-(O-C)/3)),colormagenta,NODRAW;
二一位:O+(C-O)*0.5,colorred,NODRAW;
下三一:IF(C>O,(O+(C-O)/3),(C+(O-C)/3)),colormagenta,NODRAW;
STICKLINE(C<O AND C<(MONEY/VOL) AND (MONEY/VOL)>REF(C,1),O,C,2,0),colorred;
STICKLINE(C>O AND C>(MONEY/VOL) AND (MONEY/VOL)<REF(C,1),O,C,2,0),colorcyan;
中K:=ABS(C-O)/O>3.3/100;
大K:=ABS(C-O)/O>=6.6/100;
STICKLINE(大K,上三一,上三一,5,0),colorred;
STICKLINE(中K,二一位,二一位,8,0),colorred;
STICKLINE(大K,下三一,下三一,5,0),colorred;
MA3:MA(CLOSE,3);
MA5:MA(CLOSE,5);
MA20:MA(CLOSE,20),coloryellow,POINTDOT;
BL1 = (REF(CLOSE,2) >  REF(CLOSE,3)) AND (REF(VOL,2)/REF(VOL,3) >BL);
SL1 = REF(CLOSE,1) >  REF(CLOSE,2) AND CLOSE  >  REF(CLOSE,1) AND REF(VOL,1)<REF(VOL,2)        AND VOL <REF(VOL,1);
BL2 = (REF(CLOSE,3) >  REF(CLOSE,4)) AND (REF(VOL,3)/REF(VOL,4) >BL);
SL2 =  REF(CLOSE,2) >  REF(CLOSE,3)
AND REF(CLOSE,1) >  REF(CLOSE,2)
AND CLOSE >  REF(CLOSE,1)
AND REF(VOL,2)<REF(VOL,3)
AND REF(VOL,1) <REF(VOL,2)
AND VOL <REF(VOL,1);
(BL1 AND SL1) OR(BL2 AND SL2);

上一篇:同花顺源码:短线看盘,超赢买点,短线CJ

下一篇:同花顺源码:主力筹码ZTL,MY跟庄,一本童话主图