用不同的颜色把涨跌停板用不同的颜色在k线上标识。
用法:在主图使用,自动添加均线5 10 20 30 60 120 240 360,后面3条均线不显示
提醒顶底分型
verline(hour<ref(hour,1),2),color666666;
c2:=ref(c,1);//www.goodgongshi.com
涨停:=if((c-c2)*100/c2>=(10-0.01*100/c2),1,0);
stickline(涨停,open,close,10,0),coloryellow;
stickline(涨停,h,l,0,0),coloryellow;
跌停:=if((c2-c)*100/c2>=(10-0.01*100/c2),1,0);
stickline(跌停,open,close,10,0),colorgreen;
stickline(跌停,h,l,10,0),colorgreen;
//mid : ma(close,26);
//upper: mid + 2*std(close,26);
//lower: mid - 2*std(close,26);
//stickline(1,h,l,1,0),colorliblue;
//{笔底分型 选股 预警 确保向下笔成立后的底分型}
v00:= high<ref(high,1) and low<ref(low,1);
v01:= high<ref(high,1) and low>ref(low,1);
v02:= high>ref(high,1) and low<ref(low,1);
v03:= high>ref(high,1) and low>ref(low,1);
v04:= ref(high,2) < high and ref(low,2) < low
and ref(high,2) > ref(high,1) and ref(low,2) < ref(low,1);
v1:= count(v00,6)>=3 and count(v01 or v02,5)=0 and llvbars(low,6) = 1 and hhvbars(high,6) >= 5 and v03;
v2:= count(v00,7)>=3 and count(v01 or v02,6)=1 and llvbars(low,7) = 2 and hhvbars(high,7) >= 6 and v04;
v3:= count(v00,7)>=3 and count(v01 or v02,6)=1 and llvbars(low,7) = 1 and hhvbars(high,7) >= 6 and v03;
v4:= count(v00,8)>=3 and count(v01 or v02,7)<=2 and llvbars(low,8) = 2 and hhvbars(high,8) >= 7 and v04;
v5:= count(v00,8)>=3 and count(v01 or v02,7)<=2 and llvbars(low,8) = 1 and hhvbars(high,8) >= 7 and v03;
v6:= count(v00,9)>=3 and count(v01 or v02,8)<=3 and llvbars(low,9) = 2 and hhvbars(high,9) >= 8 and v04;
v7:= count(v00,9)>=3 and count(v01 or v02,8)<=3 and llvbars(low,9) = 1 and hhvbars(high,9) >= 8 and v03;
v8:= count(v00,10)>=3 and count(v01 or v02,9)<=4 and llvbars(low,10) = 2 and hhvbars (high,10) >= 9 and v04;
v9:= count(v00,10)>=3 and count(v01 or v02,9)<=4 and llvbars(low,10) = 1 and hhvbars (high,10) >= 9 and v03;
v10:= count(v00,11)>=3 and count(v01 or v02,10)<=5 and llvbars(low,11) = 2 and hhvbars (high,11) >= 10 and v04;
xg:= v1 or v2 or v3 or v4 or v5 or v6 or v7 or v8 or v9 or v10;
drawtext(filter(xg=1,5),l*0.998,'底'),coloryellow;
//{笔顶分型 选股 预警 确保向上笔成立后的顶分型}
hv00:= high>ref(high,1) and low>ref(low,1);
hv01:= high<ref(high,1) and low>ref(low,1);
hv02:= high>ref(high,1) and low<ref(low,1);
hv03:= high<ref(high,1) and low<ref(low,1);
hv04:= ref(high,2) > high and ref(low,2) > low and ref(high,2) > ref(high,1) and ref(low,2) < ref(low,1);
hv1:= count(hv00,6)>=3 and count(hv01 or hv02,5)=0 and hhvbars(high,6) = 1 and llvbars (low,6) >= 5 and hv03;
hv2:= count(hv00,7)>=3 and count(hv01 or hv02,6)=1 and hhvbars(high,7) = 2 and llvbars (low,7) >= 6 and hv04;
hv3:= count(hv00,7)>=3 and count(hv01 or hv02,6)=1 and hhvbars(high,7) = 1 and llvbars (low,7) >= 6 and hv03;
hv4:= count(hv00,8)>=3 and count(hv01 or hv02,7)<=2 and hhvbars(high,8) = 2 and llvbars (low,8) >= 7 and hv04;
hv5:= count(hv00,8)>=3 and count(hv01 or hv02,7)<=2 and hhvbars(high,8) = 1 and llvbars (low,8) >= 7 and hv03;
hv6:= count(hv00,9)>=3 and count(hv01 or hv02,8)<=3 and hhvbars(high,9) = 2 and llvbars (low,9) >= 8 and hv04;
hv7:= count(hv00,9)>=3 and count(hv01 or hv02,8)<=3 and hhvbars(high,9) = 1 and llvbars (low,9) >= 8 and hv03;
hv8:= count(hv00,10)>=3 and count(hv01 or hv02,9)<=4 and hhvbars(high,10) = 2 and llvbars (low,10) >= 9 and hv04;
hv9:= count(hv00,10)>=3 and count(hv01 or hv02,9)<=4 and hhvbars(high,10) = 1 and llvbars (low,10) >= 9 and hv03;
hv10:= count(hv00,11)>=3 and count(hv01 or hv02,10)<=5 and hhvbars(high,11) = 2 and llvbars (low,11) >= 10 and hv04;
hxg:=hv1 or hv2 or hv3 or hv4 or hv5 or hv6 or hv7 or hv8 or hv9 or hv10;
drawtext(filter(hxg=1,3),h*1.01,'顶'),colorgreen;
if (k<=0)
return 0;
ma$1:ma(close, n1),colorwhite;
if (k<=1)
return 0;
ma$2:ma(close, n2),coloryellow;
if (k<=2)
return 0;
ma$3:ma(close, n3),colormagenta;
if (k<=3)
return 0;
ma$4:ma(close, n4),colorgreen;
if (k<=4)
return 0;
ma$5:ma(close, n5),colorcyan;
if (k<=5)
return 0;
ma$6:ma(close, n6),colorred;
if (k<=6)
return 0;
ma$7:ma(close, n7);
if (k<=7)
return 0;
ma$8:ma(close, n8);
//基于k线买卖提醒,5日线突破13日线且收盘大于5日线
购买点提醒:=if(cross(ref(ema(c,n1),1),ref(ema(c,n2),1)) and c>ema(c,n1),1,0);
//drawicon(购买点提醒,ma$5*0.95,"buy");
drawtext(购买点提醒,l*0.998,'buy'),coloryellow;
上一指标公式:自制KD老李指标公式详解 同花顺老李KD
下一指标公式:庖丁解牛上海指标公式详解 同花顺庖丁解牛
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文查查K线标示涨跌停指标公式详解 同花顺涨跌标示仅供学习研究。