牛熊波段(同花顺公式 公式、同花顺源码 K线图)[同花顺公式]
相关标签:
CXHd2:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
CXHd3:=SMA(SMA(CXHd2,3,1),3,1)/28.57;CXHd4:=EMA(CXHd3,5);
CXHd5:=3*CXHd3-2*CXHd4;
AA:=CROSS(CXHd5,CXHd3) AND CXHd3<2.1 AND C>O;
DRAWTEXT(AA,85,'底'),coloryellow;
CXHs1:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
CXHs2:=SMA(CXHs1,3,1);
CXHs3:=SMA(CXHs2,3,1);
CXHs4:=SMA(CXHs3,3,1);
波:= CXHs3;
段:= CXHs4;
//www.cxh99.com
CXHs5:=CROSS(CXHs3,CXHs4) AND CXHs3<20;
DRAWTEXT(FILTER(CXHs5,10)=1,40,'抄底'),colorred;
STICKLINE(FILTER(CXHs5,10)=1,0,30,10,0),colorred;
CXHs9:=CROSS(CXHs4,CXHs3) AND CXHs3>80;
STICKLINE(FILTER(CXHs9,5)=1,80,100,10,0),COLORGREEN;//http://www.cxh99.com
DRAWTEXT(FILTER(CXHs9,5)=1,70,'逃顶'),COLORGREEN;//http://www.cxh99.com
CXHs8:=CROSS(CXHs2,CXHs3) AND CXHs3>80 AND CXHs3>CXHs4;
STICKLINE(CXHs8,85,100,10,0),COLOR0099FF;
100,COLORBBBBBB,LINETHICK3;
0,,LINETHICK3;
AA:=LLV(LOW,36);
BB:=HHV(HIGH,30);
风险:=80,COLORFF00FF;
小心:=87.5,COLOR00FF00;
DD:=(EMA(((CLOSE-AA)/(BB-AA))*(4),4))*(25);
股神:=DD,COLOR0000FF,LINETHICK2;
股海:=(((DD-LLV(DD,21))/(HHV(DD,21)-LLV(DD,21)))*(4))*(25);
目标出现B:=IF(CROSS(股海,90) AND (股神<40),70,0),COLORFFFF00;
跟踪:=10,COLOR0000FF;
目标出现A:=IF((COUNT((股神>REF(股神,1)),1)=1) AND (REF(股神,1)<REF(REF(股神,1),1)) AND (股神<跟踪),50,0),COLORF00FF0;
均价:=(HIGH+LOW+CLOSE)/3;
CXHn1:=LLV(LOW,13);
CXHn2:=HHV(HIGH,5);
快线:=EMA((均价-CXHn1)/(CXHn2-CXHn1)*100,4);
慢线:=EMA(0.618*REF(快线,1)+0.382*快线,2);
转点:=IF(快线>慢线,1,0);
顶部:=75,DOTLINE,COLOR3C3CFF,PRECIS0;
底部:=25,DOTLINE,colorcyan,PRECIS0;
大盘均价:=(INDEXH+INDEXL+INDEXC)/3;
个股LC:=REF(均价,1);
个股牛熊:=SMA(MAX(均价-个股LC,0),28,1.92)/SMA(ABS(均价-个股LC),28,1.92)*100,coloryellow,PRECIS2;
大盘LC:=REF(大盘均价,1);
大盘牛熊:=SMA(MAX(大盘均价-大盘LC,0),28,1.92)/SMA(ABS(大盘均价-大盘LC),28,1.92)*100,coloryellow,PRECIS2;
大牛:IF(大盘牛熊>50 AND 大盘牛熊>=SMA(大盘牛熊,3,1),60,0);
大熊:=IF(大盘牛熊<50 AND 大盘牛熊<=SMA(大盘牛熊,3,1),30,0);
牛个:IF(个股牛熊>50 AND 个股牛熊>=SMA(个股牛熊,3,1),40,0);
熊个:=IF(个股牛熊<50 AND 个股牛熊<=SMA(个股牛熊,3,1),15,0);
CXH1:=(C-LLV(L,13))/(HHV(H,13)-LLV(L,13))*100;
牛:SMA(CXH1,7,1.96);
CXH2:=SMA(牛,5,1.96);
熊:IF(CROSS(牛,CXH2) AND CROSS(MA(C,5),MA(C,13) AND 牛>50),CXH2*2,CXH2);
nxc:牛-熊;va1:SMA(nxc,5,1);va2:SMA(nxc,13,1);
牛熊差:IF(nxc>0,nxc/熊-nxc/牛,nxc/牛-nxc/熊);
va3:=SMA(牛熊差,3,1);
va4:=SMA(牛熊差,2,1);
CXH3:=EMA(C,8);
CXH4:=EMA(C,20);
STICKLINE(牛>CXH2,牛,熊,0,0);
STICKLINE(牛<CXH2,牛,CXH2,0,0);
短线进出:3*SMA((C-LLV(L,13))/(HHV(H,13)-LLV(L,13))*100,5,1)-2*SMA(SMA((C-LLV(L,13))/(HHV(H,13)-LLV(L,13))*100,5,1.96),3,1);
CXH5:=10;
低吸区:IF(短线进出<=70.1 AND 牛熊差 >=va3,30,0) ;
买入:IF(短线进出<=70.1 AND 牛熊差 >=va3 AND 牛熊差>=-0.004 AND 牛熊差 >=va4 AND 牛熊差 >=REF(牛熊差,1),30,0),colorred;
CXH6:=(2*C+H+L+O)/5; CXH7:=LLV(L,33); CXH8:=HHV(H,33);
目前位置:EMA((CXH6-CXH7)/(CXH8-CXH7)*100,5);
生命线:EMA(0.667*REF(目前位置,1)+0.333*目前位置,4),CIRCLEDOT; CXH9:=IF(CROSS(生命线,目前位置) AND 目前位置>=77,77,89); CXHa:=IF(CROSS(目前位置,20) OR CROSS(目前位置,生命线) AND 目前位置>20,20,5);
卖出区:CXH9; CXHb:=LLV(L,55); CXHc:=HHV(H,34); CXHd:=EMA((CXH6-CXHb)/(CXHc-CXHb)*100,3);
卖卖卖:IF(牛熊差<=va3/1.96 AND 牛熊差<=-0.004,70,0);
A1:=MA(CLOSE,5);
A2:=MA(CLOSE,10);
A3:=MA(CLOSE,20);
dc1:=COUNT(a1>=a2 AND a2>=a3,3);
m1:=IF(COUNT((牛熊差<=va3/1.9545 OR (牛熊差<=0)),2)=2 OR COUNT(CLOSE<a1,2)=2,15,0);
多头:IF(IF(REF(dc1,1)=0,dc1>=1 AND COUNT(CLOSE>a1,3)>=2,dc1>=2 AND COUNT(CLOSE>a1,3)>=2) AND 牛熊差>=REF(牛熊差,1) AND 牛个=15 OR (dc1>=2 AND m1=0 AND(牛熊差>-0.004 AND REF(牛熊差,1)>-0.004 AND REF(牛熊差,2)>-0.004) AND 牛个=15),10,0);
卖:IF(COUNT((牛熊差<=va3/1.9545 AND (牛熊差<=-0.004)),2)=2 OR (多头=0 AND REF(多头,1)=10 OR COUNT(CLOSE<a1,2)=2),15,0);
CXHe:=(目前位置+CXHd)/2;
CXHf:=EMA(0.667*REF(CXHd,1)+0.333*目前位置,2);
CXH10:=EMA(CXHe,5); CXH11:=EMA(0.667*REF(CXH10,1)+0.333*CXH10,2);
a0:=MA(CLOSE,3);
A4:=MA(REF(CLOSE,1),5);
A5:=MA(REF(CLOSE,1),10);
A6:=MA(REF(CLOSE,1),20);
A7:=MA(REF(CLOSE,2),5);
A8:=MA(REF(CLOSE,2),10);
A9:=MA(REF(CLOSE,2),20);
A10:=MA(REF(CLOSE,2),200);
dc2:=COUNT(a4>=a5 AND a5>=a6,3);
dc3:=COUNT(a7>a8 AND a8>a9,3);
kt1:=COUNT(a1<=a2 AND a2<=a3,2);
kt2:=COUNT(a4<a5 AND a5<a6,3);
kt3:=COUNT(a7<a8 AND a8<a9,3);
空头:IF(kt1=2 AND CLOSE<=a1 OR (kt1=2 AND 牛熊差<0.004 AND REF(牛熊差,1)<0.004 AND REF(牛熊差,2)<0.004),10,0);
r:=((ZDMR[-1]+BDMR[-1])-(ZDMC[-1]+BDMC[-1]))/SHGZG*100;
大单净量:r;
STICKLINE(r>0,0,r,8),color0000ff;
STICKLINE(r<0,0,r,8),color00ff00;
r0:=((IF(ISNULL(ZDMR[-1]),0,ZDMR)+IF(ISNULL(BDMR[-1]),0,BDMR))
-(IF(ISNULL(ZDMC[-1]),0,ZDMC)+IF(ISNULL(BDMC[-1]),0,BDMC)))
/SHGZG*100;
MA5:MA(r0,5);
MA10:MA(r0,10);
MA20:MA(r0,20);
提示:=IF(r>=0.02 AND CLOSE<OPEN,35,0);
TIPTEXT:提示;
超买:IF((短线进出<=21 AND 目前位置<=21 AND 卖=0 AND 卖卖卖=0 AND 空头=0 AND 牛熊差>=-0.004 AND r>=0.02) OR (CLOSE>a2 AND CLOSE>a1 AND a1>a2 AND REF(CLOSE,1)>a4 AND REF(CLOSE,2)>a7 AND 短线进出<=70 AND 目前位置<=55 AND 牛熊差>-0.004 AND r>=0.02),35,0);
问道:=ZIG(0,1);
wen:=COST(10);
Vd1:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100;
底:ABS(Vd1),colorgray;
VRd1:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
VRd2:=SMA(VRd1,3,1);
VRd3:=SMA(VRd2,3,1);
VRd4:=SMA(VRd3,3,1);
VRd5:=CROSS(VRd3,VRd4) AND VRd3<20;
DRAWTEXT(FILTER(VRd5,10)=1,21,'底'),colorblue;
CXHF1:=((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100);
CXHf21:=SMA(CXHF1,3,1);
趋势:=SMA(CXHf21,3,1);
人气:=SMA(趋势,3,1);
出击:=IF(CROSS(趋势,人气) AND (趋势<30),20,0);
底参考:IF(出击=20,70,0);
DRAWTEXT(底参考=70,底参考,底),colorblue;
公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程】
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容