{公式名称: 皇冠55
公式描述: 天数n<=5为周选股,<=20 or 21为月选股}
zfa:=(close-ref(close,1))*100/ref(close,1);
zfb:=(close-open)*100/open;
zf:max(zfb,zfa),nodraw;
vv:=close;
ma5:=ma(vv,if(barssince(close>0)<5,barssince(close>0),5));
ma13:=ma(vv,if(barssince(close>0)<13,barssince(close>0),13));
m13:=if(ma13>ref(ma13,1),1,0);
ma21:=ma(vv,if(barssince(close>0)<21,barssince(close>0),21));
m21:=if(ma21>ref(ma21,1),1,0);
ma34:=ma(vv,if(barssince(close>0)<34,barssince(close>0),34));
m34:=if(ma34>ref(ma34,1),1,0);
ma55:=ma(close,if(barssince(close>0)<55,barssince(close>0),55));
m55:=if(ma55>ref(ma55,1),1,0);
ma90:=ma(vv,if(barssince(close>0)<90,barssince(close>0),90));
m90:=if(ma90>ref(ma90,1),1,0);
ma120:=ma(vv,if(barssince(close>0)<144,barssince(close>0),144));
m120:=if(ma120>ref(ma120,1),1,0);
ma250:=ma(vv,if(barssince(close>0)<240,barssince(close>0),240));
m250:=if(ma250>ref(ma250,1),1,0);
upj:m90+m120+m250,nodraw;
upja:=m90+m120+m55;
upk:=m21+m34+m55;
va:=(close+open+low+high)/4;
rsv:=(va-llv(va,13))/(hhv(va,13)-llv(va,13))*200-100;
k:=sma(rsv,5,1);
d:=sma(k,5,1);
dd:=d*1.4;
jj:=3*k-2*d;
j:=sma(jj,3,1);
ja:=sma(j,3,1);
jb:=sma(ja,3,1);
rsb:=(va-llv(va,27))/(hhv(va,27)-llv(va,27))*200-100;
da:=sma(sma(rsb,5,1),5,1)*1.3;
xd55:=ma(ref(hhv(close,if(barssince(close>0)<55,barssince(close>0),55)),1),2);
xd5:=ma(ref(hhv(close,2),1),2);
xd300:=ma(ref(hhv(close,if(barssince(close>0)<377,barssince(close>0),377)),1),2);
xd30:=intpart(xd300*10);
跨度:(xd300-min(ma90,min(ma120,ma250)))*100/min(ma90,min(ma120,ma250)),nodraw;
dif:=ema(close,12)-ema(close,26);
dea:=ema(dif,9);
aa3:=high>xd55 and low<xd55 or (close>xd55 and ref(close,1)<xd55) and zf>=4 or (close>xd55 and ref(open,1)<xd55 and zf+ref(zf,1)>=7 and zf>=3) and intpart(xd55*10)>intpart(xd5*10);
aa4:=count(aa3,6)=1 and aa3;
aa5:=barslast(aa4);
aa6:=if(aa4 and (ref(aa5,1)>=13 or count(intpart(xd55*10)=ref(intpart(xd55*10),1),13)=13) and upj>=2 and upk>=3 and dif>dea,1,0);
aa8:=intpart(xd300*10);
aa7:=if(count(abs(aa8-ref(aa8,1))<=1,21)=21 and (high>xd300 and low<xd300 or (close>xd300 and ref(close,1)<xd300) or (close>xd300 and ref(open,1)<xd300)) and (zf>=4 or (zf+ref(zf,1)>=7 and zf>=3)) or (count(abs(aa8-ref(aa8,1))<=1,9)=9 or count(abs(aa8-ref(aa8,1))<=1,21)>=17 and (high>xd300 and low<xd300 or (close>xd300 and ref(close,1)<xd300) or (close>xd300 and ref(open,1)<xd300)) and zf>=8) and dif>dea,1,0);
皇冠55:if(aa6=1 and aa7=0,zf+1,0),colorcyan,linethick2;
皇冠88:if(filter(aa7=1 and da<=60,7),hhv(zf,34)+3,0),colorred,linethick3;
notext1:if(filter(aa7=1 and da<=60,7),hhv(zf,34)+3.5,0),coloryellow;
notext2:if(filter(aa7=1 and da<=60,7),hhv(zf,34)+2.8,0),colorwhite;
cc1:=low>ref(high,1);
跳空:if(filter(upj>=2 and barslast(cc1)<=3 and zf>=3,5),hhv(zf,20)+2,0),colorbbbbff,linethick2;
跳空介入:if(upj>=3 and barslast(filter(barslast(cc1 and close>ma21)<=3 and zf>=3,3))<=23 and cross(ma5,ma21),barslast(cc1>0),0),colorwhite;
cc2:=cross(xd5,min(ma90,min(ma120,ma250)));
小马过河:if(barslast(upj>=3)<144 or barslast(upja>=3)<144 and (upj+m55>=3 or (upj>=1 and m13=1 and m21=1) or (upj>=2 and m55=1 and m90=1) or (upj>=2 and m90=1 and m120=1 and ma90>ma120) or (upj>=2 and m90=1 and m250=1 and ma90>ma250) or (upj>=2 and m120=1 and m250=1 and ma120>ma250) or barslastcount(m90=1)>=5 or barslastcount(m120=1)>=5 or barslastcount(m250=1)>=5) and cc2 and count(cc2,34)=1,hhv(zf,21)+3,0),colorred,linethick2;
再启:if(upj>=3 or (upj>=2 and m55=1 and m90=1) or (upj>=2 and m90=1 and m120=1 and ma90>ma120) or (upj>=2 and m90=1 and m250=1 and ma90>ma250) or (upj>=2 and m120=1 and m250=1 and ma120>ma250) and dif>dea and jb<0 and filter(cross(xd5,ma55) or cross(xd5,ma250) or cross(xd5,ma120) or cross(xd5,ma90),8) or (upj>=2 and upk>=3 and open<ma21 and close>ma21 and zf>=6 and dif>dea and jb<=0),hhv(zf,42)+1,0),coloryellow,linethick2;
半波:if(upj>=3 or (upj>=2 and m90=1 and m120=1 and ma90>ma120) or (upj>=2 and m90=1 and m250=1 and ma90>ma250) or (upj>=2 and m120=1 and m250=1 and ma120>ma250) and ma21<ma55 and barslastcount(ma13>ma21)=1,hhv(zf,55)+3,0),colorwhite,linethick2;
xd6:=sma(xd5,3,1);
模式2:if(barslastcount(jb<0 and (upj>=3 or (upj>=2 and m90=1 and m120=1 and ma90>ma120) or (upj>=2 and m90=1 and m250=1 and ma90>ma250) or (upj>=2 and m120=1 and m250=1 and ma120>ma250)) and (ma21<ref(ma21,1) or barslast(barslastcount(xd6>xd5)>3)<5) and (barslast(barslastcount(dif<dea)>5)<5 and barslast(cross(dif,dea))<3 or barslast(cross(ma13,ma21))<3))=1,hhv(zf,55)+2,0),colormagenta,linethick2;
起涨:if(upj>=3 or (upj>=2 and m55=1 and m90=1) or (upj>=1 and upk>=3) and jb>ref(jb,1) and jb<0 and filter(cross(xd5,ma21) or cross(xd5,ma34) or cross(xd5,ma55) or cross(xd5,ma90),8),hhv(zf,42)+1,0),colorgreen,linethick2;
小马5:if(barslast(小马过河>=3)<=n,barslast(小马过河>=3),0),nodraw,colorgray;
起涨5:if(barslast(起涨>=1)<=n,barslast(起涨>=1),0),nodraw,colorgray;
再启5:if(barslast(再启>=1)<=n,barslast(再启>=1),0),nodraw,colorgray;
半波5:if(barslast(半波>=3)<=n,barslast(半波>=3),0),nodraw,colorgray;
模式25:if(barslast(模式2>=2)<=n,barslast(模式2>=2),0),nodraw,colorgray;
上一指标公式:KD不只是传说 通达信KD
下一指标公式:画线OBV 通达信画线
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文皇冠55B 通达信皇冠仅供学习研究。