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

同花顺源码:顶级临界线专抓波段黑马+百万抄底+KDJ追踪H

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

顶级临界线专抓波段黑马:

 V1:=(C*2+H+L)/4*10;

V2:=EMA(V1,13)-EMA(V1,34);
V3:=EMA(V2,5);
V4:=2*(V2-V3)*5.5;
VARP1:=(CLOSE+HIGH+LOW+OPEN)/4;
VARP2:=SUMBARS(VOL,CAPITAL);
VARP3:=HHV(VARP1,VARP2);
VARP4:=LLV(VARP1,VARP2);
主力撤: IF(V4<=0,V4,0),colorblue;
主力进: IF(V4>=0,V4,0),colorff00ff;
V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;
V6:=EMA(3*V5-2*SMA(V5,18,1),5);
V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;
V8:=(INDEXC*2+INDEXH+INDEXL)/4;
V9:=EMA(V8,13)-EMA(V8,34);
VA:=EMA(V9,3);
VB:=(V9-VA)/2;
VARP5:=(2*VARP1-VARP4-REF(VARP4,1))/(VARP3-VARP4);
VARP6:=(VARP1-VARP4)/(VARP3-VARP4);
VARP7:=IF(VARP1<=VARP4,VARP5*60,VARP6*60);
VARP8:=600*(EMA(CLOSE,3)-EMA(LOW,30))/EMA(LOW,30);
VARP9:=EMA(VARP8,7);
大盘资金进场:IF(VB>=0,VB,0),colorred;
大盘资金撤走:IF(VB<=0,VB,0),colorgreen;
V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,
1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
趋势线: EMA(V11,3);
V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;
VARPA:=(WINNER(120*CLOSE/100)-WINNER(100*CLOSE/100))*100;
VARPB:=(-100)*(WINNER(120*CLOSE/100)-WINNER(100*CLOSE/100))+5;
VARPC:=HHV(HIGH,9)-LLV(LOW,9);
VARPD:=HHV(HIGH,9)-CLOSE;
VARPE:=CLOSE-LLV(LOW,9);
VARPF:=VARPD/VARPC*100-70;
准备现金: STICKLINE(趋势线<=13,0,20,5,0),colorcc9900;
aa:=(趋势线<=13) AND FILTER((趋势线<=13),15);
DRAWTEXT (aa,30,'准备现金'),colorcc9900;
VARP10:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
VARP11:=(2*CLOSE+HIGH+LOW)/4;
VARP12:=SMA(VARPE/VARPC*100,3,1);
VARP13:=LLV(LOW,34);
VARP14:=SMA(VARP12,3,1)-SMA(VARPF,9,1);
买入股票: STICKLINE(趋势线<=13 AND V12>13,0,50,5,0),color0099ff;
bb:= (趋势线<=13 AND V12>13) AND FILTER((趋势线<=13 AND V12>13),10);
DRAWTEXT (bb,60,'买入股票'),color0099ff;
卖临界: STICKLINE(趋势线>90 AND 趋势线>REF(趋势线,1),100,95,15,1),COLORFFFF00;
见顶清仓:FILTER(趋势线>90 AND 趋势线<REF(趋势线,1) AND 主力进<REF(主力进,1),8);
DRAWTEXT( 见顶清仓,90,'逃顶'),colorblue;
VARP15:=IF(VARP14>100,VARP14-100,0);
VARP16:=HHV(HIGH,34);
VARP17:=EMA((VARP11-VARP13)/(VARP16-VARP13)*100,8);
VARP18:=EMA(VARP17,5);
STICKLINE(大盘资金进场 AND 趋势线<13,0,30,10,0),colorred;
STICKLINE(大盘资金撤走 AND 趋势线>90,0,30,10,0),colorgreen;
STICKLINE(主力进 AND 趋势线<13,0,40,10,0),colorff00ff;
STICKLINE(主力撤 AND 趋势线>90,0,40,10,0),colorblue;
STICKLINE(VARP17-VARP18>0,VARP17,VARP18,3,1), ,colorred;
STICKLINE(VARP17-VARP18<0,VARP17,VARP18,3,1), ,colorgreen;




百万抄底:

N1:=9;N:=3;

VAR1:=REF(CLOSE,1);
标尺: SMA(MAX(CLOSE-VAR1,0),5,1)/SMA(ABS(CLOSE-VAR1),5,1)*100;
VAR2:=(CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*100;
VAR3:=SMA(VAR2,3,1);
VAR4:=SMA(VAR3,3,1);
VAR5:=SMA(VAR4,3,1);
浪: VAR3,colorblue;
波: VAR4, colorred;
段: VAR5 ,coloryellow;
VAR6:=CROSS(VAR3,VAR4) AND VAR4<25;
STICKLINE(VAR6,0,VAR4+15,5,0), colorgreen;
VAR7:=CROSS(VAR4,VAR5) AND VAR4<25;
VAR8:=VAR7 AND VOL>REF(VOL,1)*2 AND VOL>REF(MA(VOL,5),1)*2;
STICKLINE(VAR7,0,VAR4+55,5,0),colorwhite;
DRAWTEXT(VAR7 AND COUNT(VAR7,10)=1,VAR4+25,'抄底'),coloryellow;
STICKLINE(VAR8,0,VAR4+15,5,0),colorblue;
DRAWTEXT(VAR8 AND COUNT(VAR8,10)=1,VAR4-1,'放量'),colorgreen;
VAR9:=CROSS(VAR3,VAR4) AND VAR4>80 AND VAR4>VAR5;
STICKLINE(VAR9 AND COUNT(VAR9,5)=1,VAR4-5,100,5,0),coloryellow;
VARA:=CROSS(VAR5,VAR4) AND REF(VAR4,1)>80;
STICKLINE(VARA,VAR4-15,100,15,0), coloryellow;
DRAWTEXT(VARA AND COUNT(VARA,10)=1,VAR4-25,'逃顶'), coloryellow;
VAR1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
VAR1B:=SMA((SMA(VAR1A,4,1)-50)*2,3,1);
VAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
VAR1D:=SMA(VAR1C,4,1);
VAR1E:=SMA(VAR1D,3,1);
VAR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
VARE:=REF(LOW,1)*0.9;
VARF:=LOW*0.9;
VAR10:=(VARF*VOL+VARE*(CAPITAL-VOL))/CAPITAL;
VAR11:=EMA(VAR10,30);
VAR12:=CLOSE-REF(CLOSE,1);
VAR13:=MAX(VAR12,0);
VAR14:=ABS(VAR12);
VAR15:=SMA(VAR13,7,1)/SMA(VAR14,7,1)*100;
VAR16:=SMA(VAR13,13,1)/SMA(VAR14,13,1)*100;
VAR17:=BARSCOUNT(CLOSE);
VAR18:=SMA(MAX(VAR12,0),6,1)/SMA(ABS(VAR12),6,1)*100;
VAR19:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;
VAR20:=VAR18<=25 AND VAR19<-95 AND VAR1F>20 AND VAR1B<-30 AND VAR1E<30 AND VAR11-CLOSE>=-0.25 AND VAR15<22 AND VAR16<28 AND VAR17>50;
STICKLINE(VAR20,0,50,10,0),LINETHICK2,colorblue;
DRAWTEXT(CROSS(VAR20,0.5) AND COUNT(VAR20=1,10)=1,60,'百万导弹?'),LINETHICK7,colorwhite;




KDJ追踪H:

KDJ指标(顶尖财经 股票学院: www.58188.com)
指标说明
KDJ,其综合动量观念、强弱指标及移动平均线的优点,
早年应用在期货投资方面,功能颇为显著,目前为股市中最常
被使用的指标之一。
买卖原则
1 K线由右边向下交叉D值做卖,K线由右边向上交叉D值做买。
2 高档连续二次向下交叉确认跌势,低挡连续二次向上交叉
  确认涨势。
3 D值<20%超卖,D值>80%超买,J>100%超买,J<10%超卖。
4 KD值于50%左右徘徊或交叉时,无意义。
5 投机性太强的个股不适用。
6 可观察KD值同股价的背离,以确认高低点。
 

MACDX=MACD-REF(MACD,1);

D: KDJ.D;
J: KDJ.J;
bsymbol=HIGH>REF(HIGH,1) AND MACD<0 AND ((J<50 AND MACDX>0.02) OR (J<10 AND MACDX>=0));
ssymbol=LOW<REF(LOW,1) AND MACD>0 AND ((J>60 AND MACDX<0.02) OR (J>100 AND MACDX<0));
i=0;m=0;ppb=0;pps=0;CMAX=300;bp=CLOSE;
WHILE(i<CMAX AND ppb==0){i=i+1;ppb=REF(bsymbol,i);}
WHILE(m<CMAX AND pps==0){m=m+1;pps=REF(ssymbol,m);}
IF I!=0 OR I!=CMAX THEN bp=REF(OPEN,i);
ro=(CLOSE-bp)/bp;
收益率:ro*100;
DRAWTEXT(ro>PRO AND m>i,J-5,"盈");
DRAWTEXT(ro<RKS AND m>i,J-5,"亏");
DRAWICON(bsymbol==1,J-5,1);
DRAWICON(ssymbol==1,J-5,2);
 

上一篇:同花顺源码:操盘顶底+小冯神器爆发点+爆发点

下一篇:同花顺源码:加仓彩带+天龙股价投机+绝路航标