在均线ma的基础上,添加涨跌停k颜色。
均线和涨跌停k线加颜色加九转序列
stickline(c>1.095*ref(c,1),c,o,6,0),coloryellow;
stickline(c<0.905*ref(c,1),c,o,6,0),colorblue;
ma1:ma(close, m1),colorwhite;
ma2:ma(close, m2),coloryellow;
ma3:ma(close, m3),colormagenta;
ma4:ma(close, m4),colorligreen;
ur:=currbarscount+1;
//www.goodgongshi.com
drawicon(ur=5,l/1.015,13);
drawicon(ur=10,l/1.015,9);
drawicon(ur=15,l/1.015,26);
drawicon(ur=30,l/1.015,25);
drawicon(ur=55,l/1.015,27);
drawicon(ur=120,l/1.015,14);
drawicon(ur=250,l/1.015,66);
drawtext(ur=5,l/1.035,'5');
drawtext(ur=10,l/1.035,'10');
drawtext(ur=15,l/1.035,'15');
drawtext(ur=30,l/1.035,'30');
drawtext(ur=55,l/1.035,'55');
drawtext(ur=120,l/1.035,'120');
drawtext(ur=250,l/1.035,'250');
//九转序列
//九转序列是基于狄马克td序列思想为参考,进行的价格连续同方向趋势排序。当数字出现"9"时,价格容易出现转折,因此起名为九转序列。
// 九转系列特点:
// 1、当序列运行在6之前,数字并不显示,以过滤过于频繁的数字排序。
// 2、当市场容易出现"9"的概率大于50%的时候,踢进行数字序列提示,通常从"6"或"7"开始,如果确定不会出现"9",数字序列会在某个阶段消失。
// 3、当完成数字序列,"9"则变成绿色并锁定,请尽量与该周期收盘价格为准。
a1 := if(((ref(close,1) >= ref(close,5)) and (close < ref(close,4))),1,0);
a2 := if(((refx(&close,1) < ref(close,3)) and (a1 = 1)),2,0);
a3 := if(((refx(&close,2) < ref(close,2)) and (a2 = 2)),3,0);
a4 := if(((refx(&close,3) < ref(close,1)) and (a3 = 3)),4,0);
a5 := if(((refx(&close,4) < close) and (a4 = 4)),5,0);
a6 := if(((refx(&close,5) < refx(&close,1)) and (a5 = 5)),6,0);
a7 := if(((refx(&close,6) < refx(&close,2)) and (a6 = 6)),7,0);
a8 := if(((refx(&close,7) < refx(&close,3)) and (a7 = 7)),8,0);
a9 := if(((refx(&close,8) < refx(&close,4)) and (a8 = 8)),9,0);
b1 := if((a9 = 9),1,0);//www.goodgongshi.com
b2 := if((ref(a9,1) = 9),2,0);
b3 := if((ref(a9,2) = 9),3,0);
b4 := if((ref(a9,3) = 9),4,0);
b5 := if((ref(a9,4) = 9),5,0);
b6 := if((ref(a9,5) = 9),6,0);
b7 := if((ref(a9,6) = 9),7,0);
b8 := if((ref(a9,7) = 9),8,0);
b9 := if((ref(a9,8) = 9),9,0);
m1 := ((((((((b1 + b2) + b3) + b4) + b5) + b6) + b7) + b8) + b9);
drawtext((m1 = 1),(low * 0.98),'1'),colormagenta;
drawtext((m1 = 2),(low * 0.98),'2'),colormagenta;
drawtext((m1 = 3),(low * 0.98),'3'),colormagenta;
drawtext((m1 = 4),(low * 0.98),'4'),colormagenta;
drawtext((m1 = 5),(low * 0.98),'5'),colormagenta;
drawtext((m1 = 6),(low * 0.98),'6'),colormagenta;
drawtext((m1 = 7),(low * 0.98),'7'),colormagenta;
drawtext((m1 = 8),(low * 0.98),'8'),colormagenta;
aa1 := if((close < ref(close,4)),1,0);
aa2 := if(((close < ref(close,4)) and (ref(aa1,1) = 1)),1,0);
aa3 := if(((close < ref(close,4)) and (ref(aa2,1) = 1)),1,0);
aa4 := if(((close < ref(close,4)) and (ref(aa3,1) = 1)),1,0);
aa5 := if(((close < ref(close,4)) and (ref(aa4,1) = 1)),1,0);
aa6 := if(((close < ref(close,4)) and (ref(aa5,1) = 1)),1,0);
aa7 := if(((close < ref(close,4)) and (ref(aa6,1) = 1)),1,0);
aa8 := if(((close < ref(close,4)) and (ref(aa7,1) = 1)),1,0);
aa9 := if(((close < ref(close,4)) and (ref(aa8,1) = 1)),1,0);
bb1 := if(((aa9 = 1) and (ref(aa9,1) = 0)),1,0);
drawtext((bb1 = 1),(low * 0.98),'9'),colorgreen;
a11 := if(((ref(close,1) <= ref(close,5)) and (close > ref(close,4))),1,0);
a21 := if(((refx(&close,1) > ref(close,3)) and (a11 = 1)),2,0);
a31 := if(((refx(&close,2) > ref(close,2)) and (a21 = 2)),3,0);
a41 := if(((refx(&close,3) > ref(close,1)) and (a31 = 3)),4,0);
a51 := if(((refx(&close,4) > close) and (a41 = 4)),5,0);
a61 := if(((refx(&close,5) > refx(&close,1)) and (a51 = 5)),6,0);
a71 := if(((refx(&close,6) > refx(&close,2)) and (a61 = 6)),7,0);
a81 := if(((refx(&close,7) > refx(&close,3)) and (a71 = 7)),8,0);
a91 := if(((refx(&close,8) > refx(&close,4)) and (a81 = 8)),9,0);
b11 := if((a91 = 9),1,0);
b21 := if((ref(a91,1) = 9),2,0);
b31 := if((ref(a91,2) = 9),3,0);
b41 := if((ref(a91,3) = 9),4,0);
b51 := if((ref(a91,4) = 9),5,0);
b61 := if((ref(a91,5) = 9),6,0);
b71 := if((ref(a91,6) = 9),7,0);
b81 := if((ref(a91,7) = 9),8,0);
b91 := if((ref(a91,8) = 9),9,0);
m11 := ((((((((b11 + b21) + b31) + b41) + b51) + b61) + b71) + b81) + b91);
drawtext((m11 = 1),(high * 1.02),'1'),colormagenta;
drawtext((m11 = 2),(high * 1.02),'2'),colormagenta;
drawtext((m11 = 3),(high * 1.02),'3'),colormagenta;
drawtext((m11 = 4),(high * 1.02),'4'),colormagenta;
drawtext((m11 = 5),(high * 1.02),'5'),colormagenta;
drawtext((m11 = 6),(high * 1.02),'6'),colormagenta;
drawtext((m11 = 7),(high * 1.02),'7'),colormagenta;
drawtext((m11 = 8),(high * 1.02),'8'),colormagenta;
aa11 := if((close > ref(close,4)),1,0);
aa21 := if(((close > ref(close,4)) and (ref(aa11,1) = 1)),1,0);
aa31 := if(((close > ref(close,4)) and (ref(aa21,1) = 1)),1,0);
aa41 := if(((close > ref(close,4)) and (ref(aa31,1) = 1)),1,0);
aa51 := if(((close > ref(close,4)) and (ref(aa41,1) = 1)),1,0);
aa61 := if(((close > ref(close,4)) and (ref(aa51,1) = 1)),1,0);
aa71 := if(((close > ref(close,4)) and (ref(aa61,1) = 1)),1,0);
aa81 := if(((close > ref(close,4)) and (ref(aa71,1) = 1)),1,0);
aa91 := if(((close > ref(close,4)) and (ref(aa81,1) = 1)),1,0);
bb11 := if(((aa91 = 1) and (ref(aa91,1) = 0)),1,0);
drawtext((bb11 = 1),(high * 1.02),'9'),colorgreen;
drawtext_fix(currbarscount<1,0.01,0.03,0,"低位又缩量,底部已来到,高位不放量,安全有保障!早上大跌可买,早上大跌不割,早上大涨要卖,下午大涨不追,下午大跌次日买,不涨不跌睡觉!"),coloryellow;
上一指标公式:精准趋势指标公式详解 同花顺精准
下一指标公式:EMA613指标公式详解 同花顺EMA613
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文KD色K九转加警示指标公式详解 同花顺KD九转加仅供学习研究。