{公式名称: 牛熊通道
公式描述: 牛熊通道+九转序列+缠中说禅
参数数量: 4
参数1: m1, 最小: 0, 最大: 1000, 缺省: 0
参数2: m2, 最小: 0, 最大: 1000, 缺省: 0
参数3: m3, 最小: 0, 最大: 1000, 缺省: 0
参数4: m4, 最小: 0, 最大: 1000, 缺省: 0
公式类型: 技术指标公式-均线型
画线方法: 主图叠加
公式版本: 0
显示小数: 缺省位数
坐标线位置: 自动
额外y轴分界: 无
参数精灵:
请设置计算参数:
m1: param#0 (0.00--1000.00)
m2: param#1 (0.00--1000.00)
m3: param#2 (0.00--1000.00)
m4: param#3 (0.00--1000.00)
用法注释:
{顶背离}
c1:=barslast(ref(cross("macd.dea"(12,26,9),"macd.dif"(12,26,9)),1));
d1:=ref(c,c1+1)<c and ref("macd.dif"(12,26,9),c1+1)>"macd.dif"(12,26,9) and cross("macd.dea"(12,26,9),"macd.dif"(12,26,9));
顶macd:drawtext(filter(d1>0,5),high*1.02,'↓'),color00ff00;
drawtext(filter(d1>0,5),high*1.04,'macd顶'),colorred;
c2:=barslast(ref(cross("kdj.d"(9,3,3),"kdj.k"(9,3,3)),1));
d2:=ref(c,c2+1)<c and ref("kdj.k"(9,3,3),c2+1)>"kdj.k"(9,3,3) and cross("kdj.d"(9,3,3),"kdj.k"(9,3,3));
顶kdj:drawtext(filter(d2>0,5),high*1.02,'↓'),color00ff00;
drawtext(filter(d2>0,5),high*1.04,'kdj顶'),colorf00ff0;
c3:=barslast(ref(cross("rsi.rsi2"(8,55,55),"rsi.rsi1"(8,55,55)),1));
d3:=ref(c,c3+1)<c and ref("rsi.rsi1"(8,55,55),c3+1)>"rsi.rsi1"(8,55,55) and cross("rsi.rsi2"(8,55,55),"rsi.rsi1"(8,55,55));
顶rsi:drawtext(filter(d3>0,5),high*1.02,'↓'),color00ff00;
drawtext(filter(d3>0,5),high*1.04,'rsi顶'),coloryellow;
c4:=barslast(ref(cross("dmi.mdi"(14,6),"dmi.pdi"(14,6)),1));
d4:=ref(c,c4+1)<c and ref("dmi.pdi"(14,6),c4+1)>"dmi.pdi"(14,6) and cross("dmi.mdi"(14,6),"dmi.pdi"(14,6));
顶dmi:drawtext(filter(d4>0,5),high*1.02,'↓'),color00ff00;
drawtext(filter(d4>0,5),high*1.04,'dmi顶'),colorf0f000;
{底背离}
a1:=barslast(ref(cross("macd.dif"(12,26,9),"macd.dea"(12,26,9)),1));
b1:=ref(c,a1+1)>c and ref("macd.dif"(12,26,9),a1+1)<"macd.dif"(12,26,9) and cross("macd.dif"(12,26,9),"macd.dea"(12,26,9));
底macd:drawtext(filter(b1>0,5),low,'1'),coloryellow;
drawtext(filter(b1>0,5),low*0.98,'macd底'),color00ff00;
a2:=barslast(ref(cross("kdj.k"(9,3,3),"kdj.d"(9,3,3)),1));
b2:=ref(c,a2+1)>c and ref("kdj.k"(9,3,3),a2+1)<"kdj.k"(9,3,3) and cross("kdj.k"(9,3,3),"kdj.d"(9,3,3));
底kdj:drawtext(filter(b2>0,5),low,'↑'),coloryellow;
drawtext(filter(b2>0,5),low*0.98,'kdj底'),colorred;
a3:=barslast(ref(cross("rsi.rsi1"(8,55,55),"rsi.rsi2"(8,55,55)),1));
b3:=ref(c,a3+1)>c and ref("rsi.rsi1"(8,55,55),a3+1)<"rsi.rsi1"(8,55,55) and cross("rsi.rsi1"(8,55,55),"rsi.rsi2"(8,55,55));
底rsi:drawtext(filter(b3>0,5),low,'↑'),coloryellow;
drawtext(filter(b3>0,5),low*0.98,'rsi底'),colorf0f000;
a4:=barslast(ref(cross("dmi.pdi"(14,6),"dmi.mdi"(14,6)),1));
b4:=ref(c,a4+1)>c and ref("dmi.pdi"(14,6),a4+1)<"dmi.pdi"(14,6) and cross("dmi.pdi"(14,6),"dmi.mdi"(14,6));
底dmi:drawtext(filter(b4>0,5),low,'↑'),coloryellow;
drawtext(filter(b4>0,5),low*0.98,'dmi底'),colorf00ff0;
公式源码:}
x_1:=strcat(hyblock,1);
x_2:=strcat(x_1,dyblock);
x_3:=strcat(x_2,1);
drawtext_fix(islastbar,0,0,0,strcat(x_3,gnblock)),colorred;
黄金卖点:(xma(xma(high,25),25)-xma(xma(low,25),25))*1+xma(xma(high,25),25),dotline,coloryellow;
x_4:=xma(xma(low,25),25)-(xma(xma(high,25),25)-xma(xma(low,25),25))*1;
drawband(x_4,rgb(100,0,0),ema(x_4,5),rgb(0,100,0));
drawkline(high,open,low,close);
stickline(x_4>low and x_4<high,x_4,min(min(x_4,x_4),x_4),0.8,0),coloryellow;
stickline(x_4>low and x_4>high,close,open,1.6,0),coloryellow;
stickline(x_4>low and x_4<high and x_4>close and x_4>open,open,close,1.6,0),coloryellow;
stickline(x_4>low and x_4<high and x_4>close and x_4<open,x_4,close,1.6,0),coloryellow;
stickline(x_4>low and x_4<high and x_4<close and x_4>open,open,x_4,1.6,0),coloryellow;
stickline(x_4>low and x_4<high and x_4<close and x_4<open,low,x_4,0,0),coloryellow;
stickline(x_4>low and x_4<high and x_4<close and x_4>open,low,x_4,0,0),coloryellow;
stickline(x_4>low and x_4>high and x_4>close and x_4>open,low,close,0,0),coloryellow;
stickline(x_4>low and x_4<high and x_4>close and x_4<open,low,close,0,0),coloryellow;
stickline(x_4>low and x_4<high and x_4>close and x_4>open,low,close,0,0),coloryellow;
stickline(黄金卖点<high and 黄金卖点>low,黄金卖点,min(min(黄金卖点,黄金卖点),黄金卖点),0.8,0),coloryellow;
stickline(黄金卖点<low,open,close,1.6,0),coloryellow;
stickline(黄金卖点>low and 黄金卖点<close and 黄金卖点<open,open,close,1.6,0),coloryellow;
stickline(黄金卖点>low and 黄金卖点<close and 黄金卖点>open and 黄金卖点<high,close,黄金卖点,1.6,0),coloryellow;
stickline(黄金卖点>low and 黄金卖点>close and 黄金卖点<high and 黄金卖点<open,open,黄金卖点,1.6,0),coloryellow;
stickline(黄金卖点>low and 黄金卖点>close and 黄金卖点<high and 黄金卖点>open,high,黄金卖点,0,0),coloryellow;
stickline(黄金卖点>low and 黄金卖点>close and 黄金卖点<high and 黄金卖点<open,high,黄金卖点,0,0),coloryellow;
stickline(黄金卖点>low and 黄金卖点<close and 黄金卖点>open and 黄金卖点<high,high,黄金卖点,0,0),coloryellow;
stickline(黄金卖点>low and 黄金卖点<close and 黄金卖点<open and 黄金卖点<high,high,close,0,0),coloryellow;
stickline(黄金卖点<low and 黄金卖点<close and 黄金卖点<open and 黄金卖点<high,high,low,0,0),coloryellow;
缠:ma(close,m1),colorwhite;
中:ma(close,m2),coloryellow;
说:ma(close,m3),colormagenta;
禅:ma(close,m4),colorgreen;
x_5:=toprange(high);
x_6:=lowrange(low);
x_7:=llvbars(high,x_5);
x_8:=llvbars(low,x_5);
x_9:=hhvbars(low,x_6);
x_10:=hhvbars(high,x_6);
x_11:=hhv(low,x_7+1)>llv(high,x_7+1);
x_12:=hhv(low,x_9+1)>llv(high,x_9+1);
x_13:=count(low>=ref(low,1),x_8)>2 and count(high>=ref(high,1),x_7)>2;
x_14:=count(high<=ref(high,1),x_10)>2 and count(low<=ref(low,1),x_9)>2;
x_15:=x_5 and x_11 and x_13 and x_8>3;
x_16:=x_6 and x_12 and x_14 and x_10>3;
x_17:=barslast(x_15);
x_18:=barslast(x_16);
x_19:=if(x_17=0,x_18,x_17)>=3;
x_20:=x_15 and x_19 and high=hhv(high,barslast(x_16));
x_21:=x_16 and x_19 and low=llv(low,barslast(x_15));
notext上笔划线:drawline(x_21,low,x_20,high,0),coloryellow;
notext下笔划线:drawline(x_20,high,x_21,low,0),coloryellow;
x_22:=notext上笔划线 and notext下笔划线;
x_23:=if(period=11,0.02,if(period=10,0.02,if(period=9,0.02,if(period=8,0.001,if(period=7,0.02,if(period=6,0.01,if(period=5,0.005,if(period=4,0.002,if(period=3,0.001,if(period=2,0.001,if(period=1,0.0003,if(period=0,0.0002,0))))))))))));
涨家数:indexadv,nodraw,color0080ff;
跌家数:indexdec,nodraw,colorgreen;
x_24:=vol/((high-low)*2-abs(close-open));
x_25:=if(close>open,x_24*(high-low),if(close<open,x_24*(high-open+(close-low)),vol/2));
x_26:=if(close>open,x_24*(high-close+(open-low)),if(close<open,x_24*(high-low),vol/2));
x_27:=x_25/x_26;
x_28:=(high+low+close)/3;
x_29:=if(high=low,1,high-max(open,close));
x_30:=if(high=low,1,max(close,open)-x_28);
x_31:=if(high=low,1,min(open,close)-low);
x_32:=if(high=low,1,x_28-min(close,open));
x_33:=vol/if(high=low,4,high-low);
x_34:=x_29*x_33;
x_35:=x_30*x_33;
x_36:=x_31*x_33;
x_37:=x_32*x_33;
x_38:=x_37+x_36;
x_39:=x_34+x_35;
x_40:=x_38*close/100;
x_41:=x_39*close/100;
x_42:=x_38*close/100-x_39*close/100;
资金净流入:x_42,nodraw,colorred;
x_43:=close>ref(close,4);
x_44:=barslastcount(x_43);
x_45:=x_44=9;
x_46:=islastbar and between(x_44,5,8);
x_47:=(backset(x_45>0,9) or backset(x_46>0,x_44))*x_44;
drawtext(x_47>0,high*1.001,var2str(x_47,0)),colorwhite;
drawtext(x_44=9,high*1.001,6),colormagenta;
x_48:=close<ref(close,4);
x_49:=barslastcount(x_48);
x_50:=x_49=9;
x_51:=islastbar and between(x_49,5,8);
x_52:=(backset(x_50>0,9) or backset(x_51>0,x_49))*x_49;
drawtext(x_52>0,low*0.998,var2str(x_52,0)),colorwhite;
drawtext(x_49=9,low*0.998,6),colorgreen;
上一指标公式:为攻击涨停而保驾护航指标下载 通达信护航涨停
下一指标公式:宝塔上穿布林上轨 放量上攻指标下载 通达信宝塔
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文牛熊通道缠论笔_牛熊通道_9转组合指标下载 通达信分享源码仅供学习研究。