您现在的位置:程序化交易>> 股票公式>> 同花顺>> 同花顺公式>>正文内容

涨停量能饱和基因主图指标公式源码[同花顺公式]

涨停量能饱和基因主图指标公式源码:

 

 

 
M1:=3;M2:=6;M3:=12;M4:=24;
 
BBI:(MA(C,M1)+MA(C,M2)+MA(C,M3)+MA(C,M4))/4,colorgray,DOTLINE;
IF(BBI>REF(BBI,1),BBI,DRAWNULL),DOTLINE, coloryellow;
IF(BBI<REF(BBI,1),BBI,DRAWNULL),DOTLINE,colorgray;
涨停:=IF((CLOSE-REF(CLOSE,1))*100/REF(CLOSE,1)>=(10-0.01*100/REF(CLOSE,1)),1,0);
STICKLINE(涨停,O,C,2,0),coloryellow;
STICKLINE(涨停,H,L,0,0),coloryellow;
ZT:=C/REF(CLOSE,1)>1.099 AND C=H;
AA:=REF(CLOSE,BARSLAST(ZT AND CURRBARSCOUNT<60));
ABA:=REF((C/REF(CLOSE,1)>=1.095 AND C=H),1) AND O>REF(CLOSE,1) AND C<O AND O=H AND V=HHV(VOL,34);
BAB:=REF(OPEN,BARSLAST(ABA AND CURRBARSCOUNT<60));
SAT:=(AMOUNT/C)/(HHV(AMOUNT,120)/HHV(CLOSE,120));
量能饱和:=IF(SAT>1,1,SAT)*100;//88 gs com
倒灌:=REF((C/REF(CLOSE,1)>=1.099 AND C=H),1) AND 量能饱和>75 AND O>REF(CLOSE,1) AND C<O AND O<H ;
BAB1:=REF(HIGH,BARSLAST(倒灌 AND CURRBARSCOUNT<90));
{DRAWLINE(ZT,C,1,REF(AA,1),1);}
DD:=ABS((C-MA(C,5))/MA(C,5)*100)>=10;
DRAWTEXT(DD,H*1.02,''),colorgreen,LINETHICK3;
ZTCS:=COUNT(涨停,BARSLAST(涨停+1));
ZTCS90:=COUNT(涨停,90);
DRAWNUMBER(涨停,H*1.04,ZTCS90),coloryellow;
个线:=EMA(EMA(C,30),9);
大线:=EMA(EMA(INDEXC,45),9);
个股1:=C/个线*100;
大盘1:=INDEXC/大线*100;
GGQD:=(个股1-大盘1);
N1:=REF(BARSLAST((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>9.6 AND C=H),1)+1;
回光返照:=COUNT(CROSS(MA(CLOSE,15),MA(CLOSE,5)),N1)=0 AND HHV(GGQD,20)>23 AND MA(CLOSE,5)>MA(CLOSE,30) AND GGQD<HHV(GGQD,30) AND GGQD>5 AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>9.6 AND C=H,;
ZT9:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>9.5,colorwhite;
开盘:=IF(REF(ZT9,1)>0 ,(OPEN-REF(CLOSE,1))/REF(CLOSE,1)*100,0),NODRAW;
BIAS1 :=(C-MA(C,6))/MA(C,6)*100;
BIAS2 :=(C-MA(C,24))/MA(C,24)*100;
BIA:=(BIAS1-BIAS2);
BIS:=LLV(BIAS1,3);
超跌涨停:=ZT9>0 AND BIS<0 AND BIA>5 AND MA(CLOSE,5)<MA(CLOSE,60);
{DRAWTEXT(超跌涨停,L*0.98,'超跌涨停'),COLORGREEN;//http://www.cxh99.com}
MA5:=MA(CLOSE,5);
MA10:=MA(CLOSE,10);
MA20:=MA(CLOSE,20) ;
MA30:=MA(CLOSE,30);
MA60:=MA(CLOSE,34);
F1:=(MA5-MA10)/MA10*100;
F2:=(MA10-MA20)/MA10*100;
F3:=(MA20-MA60)/MA10*100;
拉升涨停:=F1>1 AND F2>3 AND F3>0 AND ZT>0;
A1:=REF(CLOSE,20)=HHV(CLOSE,2*20+1);B1:=FILTER(A1,20);C1:=BACKSET(B1,20+1);HD:=FILTER(C1,20);
A:=REF(HIGH,BARSLAST(HD));
RSI1:=SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100;
钝化涨停:=ZT>0 AND RSI1=HHV(RSI1,5) AND RSI1>80;
钝化涨停1:=GGQD>15 AND ZT>0 AND RSI1=HHV(RSI1,5) AND RSI1>80 AND REF(GGQD>15 AND ZT>0 AND RSI1=HHV(RSI1,5) AND RSI1>80,1)=0;
新股首次:=COUNT(ZT>0,BARSCOUNT(C))=1 AND ZT>0 AND FINANCE(42)<100;
突破涨停:=CROSS(CLOSE,A) AND ZT>0;
DRAWTEXT(回光返照,L*0.93,'↖回光返照'),colorblue;
{DRAWTEXT(拉升涨停,L*0.99,'↖拉升涨停'),colorred;}
DRAWTEXT(突破涨停,L*0.99,'↖突破涨停'),coloryellow;
{DRAWTEXT(新股首次,L*0.96,'↖新股首次'),colormagenta;
DRAWTEXT(钝化涨停,L*0.95,'↖钝化涨停'),colorliblue;}
STICKLINE(C,REF(H,BARSLAST(涨停)),REF(H,BARSLAST(涨停)),2,0),colorligreen;
STICKLINE(C,REF(L,BARSLAST(涨停)),REF(L,BARSLAST(涨停)),2,0),colorred;
STICKLINE(涨停,O,C,3,0),colorred;
STICKLINE(涨停,O,C,2,0),coloryellow;
STICKLINE(涨停,H,L,0,0),coloryellow;
倒拔杨柳:DRAWLINE(ABA,O,1,REF(BAB,1),1),colorligray;
普通倒灌:DRAWLINE(倒灌,H,1,REF(BAB1,1),1),colorligray;
DRAWICON(CROSS(CLOSE,倒拔杨柳),倒拔杨柳*1,11);
DRAWICON(CROSS(CLOSE,普通倒灌),普通倒灌*1,11);
AA11:=REF(CLOSE,30)=HHV(CLOSE,2*30+1);
BB11:=FILTER(AA11,30);
CC11:=BACKSET(BB11,30+1);
HD1:=FILTER(CC11,30);
AA2:=REF(CLOSE,10)=LLV(CLOSE,2*10+1);
BB2:=FILTER(AA2,10);
CC2:=BACKSET(BB2,10+1);
LD1:=FILTER(CC2,10);
T线:REF(CLOSE,BARSLAST(HD1)),colorgray,DOTLINE;
DRAWICON(CROSS(CLOSE,T线),T线*1,11);
T1:=CONST(LLVBARS(L,10));
T1H:=CONST(REF(H,T1));
CCVV:=CONST(CURRBARSCOUNT);
T2:=CONST(BARSLAST((CURRBARSCOUNT >(CCVV+T1)) AND (H>T1H)));
T2H:=CONST(REF(H,T2));
T3:=CONST(BARSLAST((CURRBARSCOUNT >(CCVV+T2)) AND (H>T2H)));
T3H:=CONST(REF(H,T3));
必杀线:DRAWLINE(CURRBARSCOUNT=T3+1, T3H, ISLASTBAR, T3H, 1),LINETHICK2,COLORFF0099;
DRAWICON(CROSS(CLOSE,必杀线),必杀线*1,11);
 
 

公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程

 

 

有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友

可联系技术人员 QQ: 262069696  点击在线交流或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)

怎么收费,代编流程等详情请点击查阅!

(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)

 


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容