区间三分割源码下载:
起点:=60;
终点:=10;
切换:=5;
drawgbklast(1,strip(rgb(30,80,220),rgb(130,80,180),1));
nx:=currbarscount+1;
wz:=currbarscount+1=1;
wx:=currbarscount+1=起点;
wt:=barslast(wx);
wxz:=if(wt>=0,1,drawnull);
qh:=if(nx>=终点 and nx<=起点,h,drawnull);
ql:=if(nx>=终点 and nx<=起点,l,drawnull);
xz:=if(nx>=终点,1,drawnull);
//分割计算
zh:=hhv(qh,0);
zl:=llv(ql,0);
hxt:=(zh-zl);
j1:=zh-hxt*0.241;
j2:=zh-hxt*0.382;
j3:=zh-hxt*0.613;
j4:=zh-hxt*0.786;
jxt:=(zh-zl)/8;
h1:=zh-jxt*1;
h2:=zh-jxt*2;
h3:=zh-jxt*3;
h4:=zh-jxt*5;
h5:=zh-jxt*6;
h6:=zh-jxt*7;
bxt:=(zh-zl)/10;
b1:=zh-bxt*1;
b2:=zh-bxt*2;
b3:=zh-bxt*3;
b4:=zh-bxt*4;
b5:=zh-bxt*6;
b6:=zh-bxt*7;
b7:=zh-bxt*8;
b8:=zh-bxt*9;
//股票k线
stickline(open,close ,open,9,0 ),color000000;
stickline(open>close ,close ,open,8,0 ),color007700;
stickline(open>close ,close ,open,7,0 ),color009900;
stickline(open>close ,close ,open,5,0 ),color00bb00;
stickline(open>close ,close ,open,3,0 ),color00dd00;
stickline(open>close ,high,low,1.5 ,0 ),color00ff00;
stickline(close>=open ,close,open,8,0) ,color000077;
stickline(close>=open ,close,open,7,0) ,color000099;
stickline(close>=open ,close,open,5,0) ,color0000bb;
stickline(close>=open ,close,open,3,0) ,color0000dd;
stickline(close>=open ,high,low,1.5,0 ),color0000ff;
stickline(high=low and close>ref(close,1),high-0.01,high+0.01,8,0 ),color0000ff;
stickline(high=low and close<ref(close,1),high-0.01,high+0.01,8,0 ),color00ff00;
//分割显示
if 切换>=1 and 切换<=3 then begin
verline(nx=终点 or nx=起点,2),color009fff;
x1:=if(切换=1,j1,if(切换=2,h1,if(切换=3,b1,drawnull)));
x2:=if(切换=1,j2,if(切换=2,h2,if(切换=3,b2,drawnull)));
x3:=if(切换=1,j3,if(切换=2,h3,if(切换=3,b3,drawnull)));
x4:=if(切换=1,j4,if(切换=2,h4,if(切换=3,b4,drawnull)));
高:backset(if(wz,zh,drawnull),起点-1)*wxz,colorff88ff,linethick2;
低:backset(if(wz,zl,drawnull),起点-1)*wxz,colorff88ff,linethick2;
中:backset(if(wz,(zh+zl)/2,drawnull),起点-1)*wxz,colorff88ff;
分1:backset(if(wz,x1,drawnull),起点-1)*wxz,colorffff00;
分2:backset(if(wz,x2,drawnull),起点-1)*wxz,colorffff00;
分3:backset(if(wz,x3,drawnull),起点-1)*wxz,colorffff00;
分4:backset(if(wz,x4,drawnull),起点-1)*wxz,colorffff00;
end;
if 切换=2 or 切换=3 then begin
x5:=if(切换=2,h5,b5);
x6:=if(切换=2,h6,b6);//www.goodgongshi.com
分5:backset(if(wz,x5,drawnull),起点-1)*wxz,colorffff00;
分6:backset(if(wz,x6,drawnull),起点-1)*wxz,colorffff00;
end;
if 切换=3 then begin
x7:=b7;
x8:=b8;
分7:backset(if(wz,x7,null),起点-1)*wxz,colorffff00;
分8:backset(if(wz,x8,null),起点-1)*wxz,colorffff00;
end;
//分割提示
drawtext(wz,高,'`'+tostring(高,2)+'(高)'),colorff88ff;
drawtext(wz,低,'`'+tostring(低,2)+'(低)'),colorff88ff;
drawtext(wz,中,'`'+tostring(中,2)+'(中)'),colorff88ff;
drawtext(wz,分1,'`'+tostring(分1,2)+'(分1)'),colorffffff;
drawtext(wz,分2,'`'+tostring(分2,2)+'(分2)'),colorffffff;
drawtext(wz,分3,'`'+tostring(分3,2)+'(分3)'),colorffffff;
drawtext(wz,分4,'`'+tostring(分4,2)+'(分4)'),colorffffff;
drawtext(wz,分5,'`'+tostring(分5,2)+'(分5)'),colorffffff;
drawtext(wz,分6,'`'+tostring(分6,2)+'(分6)'),colorffffff;
drawtext(wz,分7,'`'+tostring(分7,2)+'(分7)'),colorffffff;
drawtext(wz,分8,'`'+tostring(分8,2)+'(分8)'),colorffffff;
if 切换=4 then begin
aa5:ma(c,5),colorffffff;
aa10:ma(c,10),color00ffff;
aa20:ma(c,20),color009fff;
aa30:ma(c,30),colorffff00;
aa60:ma(c,60),color0000ff;
aa120:ma(c,120),color00ff00;
aa250:ma(c,250),colorff00ff;
zdx:=max(aa5,aa10,aa20,aa30,aa60,aa120,aa250);
zxx:=min(aa5,aa10,aa20,aa30,aa60,aa120,aa250);
nhd:=(zdx/zxx-1)*100;
中位线:=(aa5+aa10+aa20+aa30+aa60+aa120+aa250)/7;
partline(中位线,1,rgb(255,100,255),1,rgb(255,100,255)),linethick2;
drawtext(currbarscount+1=1,中位线,'``中位线:'+tostring(中位线,2)+'`\n``粘合度:'+tostring(nhd,2)+'%'),colorff88ff;
end;
if 切换=5 then begin
boll:ma(close,20),colorcccccc;//曲线属性--输出线性--不输出
partline(boll,boll>boll[1],rgb(255,0,0),boll<=boll[1],rgb(0,255,255));
ub:boll+2*std(close,20),colorff88ff;
lb:boll-2*std(close,20),color00ffff;
drawtext(currbarscount+1=1,boll,'``中轨值:'+tostring(boll,2)+'`\n``上下轨比:'+tostring((ub/lb-1)*100,2)+'%'),colorff88ff;
end;
drawtext_fix(currbarscount=1,1/100,0,0,'【分割图】 当前是'+if(切换=1,'[黄金分割]',if(切换=2,'[江恩分割]',
if(切换=3,'[百分比]',if(切换=4,'[平均线]','布林线'))))),color00ffff;
上一指标公式:黑马登天发现追击下载
下一指标公式:同花顺公式生命线赢大盘主图附有实效图指标下载
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文区间三分割下载仅供学习研究。