今天翻看自己的指标库,看到短线游子的【压力预测】有意思,自己改了测量涨幅,不会编指标,但也喜欢动手
测量跌幅
drawgbk((close > 0),colorrgb(0,0,0),colorrgb(0,0,0),1);
kline(o,h,l,c,0);
ab:=sysparam(1);
bb:=sysparam(3);
d:=(bb - ab);
da:=backset(islastbar,hhvbars(h,(d+1))+1);
高点:=count(da,(d+1))=1;{高点位置}
ll:=hhv(h,(d + 1));
最高:ll[bb],colorred,linethick0;
x1:=最高*(1-0.02);
x2:=最高*(1-0.04);
x3:= 最高*(1-0.06);
x4:= 最高*(1-0.08);
x5:= 最高*(1-0.10);
x6:= 最高*(1-0.12);
x7:= 最高*(1-0.14);
x8:= 最高*(1-0.16);
x9:=最高*(1-0.18);
x10:=最高*(1-0.20);
x11:= 最高*(1-0.22);
x12:= 最高*(1-0.24);
x13:= 最高*(1-0.26);
x14:= 最高*(1-0.28);
x15:= 最高*(1-0.30);
x16:= 最高*(1-0.32);
x17:=最高*(1-0.34);
x18:=最高*(1-0.36);
x19:= 最高*(1-0.38);
x20:= 最高*(1-0.40);
x21:= 最高*(1-0.42);
x22:= 最高*(1-0.44);
x23:= 最高*(1-0.46);
x24:= 最高*(1-0.48);
drawline(高点,最高, islastbar,ref(最高,1),0),color939300,linedot;
b1:drawline(高点,x1,islastbar,ref(x1,1),0),color008080,linedot;
b2:drawline(高点,x2,islastbar,ref(x2,1),0),color939300,linedot;
b3:drawline(高点,x3,islastbar,ref(x3,1),0),color008080,linedot;
b4:drawline(高点,x4,islastbar,ref(x4,1),0),color939300,linedot;
b5:drawline(高点,x5,islastbar,ref(x5,1),0),color008080,linedot;
b6:drawline(高点,x6,islastbar,ref(x6,1),0),color939300,linedot;
b7:drawline(高点,x7,islastbar,ref(x7,1),0),color008080,linedot;
b8:drawline(高点,x8,islastbar,ref(x8,1),0),color939300,linedot;
b9:drawline(高点,x9,islastbar,ref(x9,1),0),color008080,linedot;
b10:drawline(高点,x10,islastbar,ref(x10,1),0),color939300,linedot;
b11:drawline(高点,x11,islastbar,ref(x11,1),0),color008080,linedot;
b12:drawline(高点,x12,islastbar,ref(x12,1),0),color939300,linedot;
b13:drawline(高点,x13,islastbar,ref(x13,1),0),color008080,linedot;
b14:drawline(高点,x14,islastbar,ref(x14,1),0),color939300,linedot;
b15:drawline(高点,x15,islastbar,ref(x15,1),0),color008080,linedot;
b16:drawline(高点,x16,islastbar,ref(x16,1),0),color939300,linedot;
b17:drawline(高点,x17,islastbar,ref(x17,1),0),color008080,linedot;
b18:drawline(高点,x18,islastbar,ref(x18,1),0),color939300,linedot;
b19:drawline(高点,x19,islastbar,ref(x19,1),0),color008080,linedot;
b20:drawline(高点,x20,islastbar,ref(x20,1),0),color939300,linedot;
b21:drawline(高点,x21,islastbar,ref(x21,1),0),color008080,linedot;
b22:drawline(高点,x22,islastbar,ref(x22,1),0),color939300,linedot;
b23:drawline(高点,x23,islastbar,ref(x23,1),0),color008080,linedot;
b24:drawline(高点,x24,islastbar,ref(x24,1),0),color939300,linedot;
vertline(高点),colorred,linethick1;
drawtext(高点,ref(最高*0.996,barslast(barscount(c)=ab)),' 最高价 '+numtostr(最高,2)+'元'),align1,color838383,pxup35;
drawtext(高点,ref(x1*0.996,barslast(barscount(c)=ab)),' 2%:'+numtostr(x1,2)+'元'),align1,color838383,pxup35;
drawtext(高点,ref(x2*0.996,barslast(barscount(c)=ab)),' 4%:'+numtostr(x2,2)+'元'),align1,color838383,pxup35;
drawtext(高点,ref(x3*0.996,barslast(barscount(c)=ab)),' 6%:'+numtostr(x3,2)+'元'),align1,color838383,pxup35;
drawtext(高点,ref(x4*0.996,barslast(barscount(c)=ab)),' 8%:'+numtostr(x4,2)+'元'),align1,color838383,pxup35;
drawtext(高点,ref(x5*0.996,barslast(barscount(c)=ab)),' 10%:'+numtostr(x5,2)+'元'),align1,color838383,pxup35;
drawtext(高点,ref(x6*0.996,barslast(barscount(c)=ab)),' 12%:'+numtostr(x6,2)+'元'),align1,color838383,pxup35;
drawtext(高点,ref(x7*0.996,barslast(barscount(c)=ab)),' 14%:'+numtostr(x7,2)+'元'),align1,color838383,pxup35;
drawtext(高点,ref(x8*0.996,barslast(barscount(c)=ab)),' 16%:'+numtostr(x8,2)+'元'),align1,color838383,pxup35;
drawtext(高点,ref(x9*0.996,barslast(barscount(c)=ab)),' 18%:'+numtostr(x9,2)+'元'),align1,color838383,pxup35;
drawtext(高点,ref(x10*0.996,barslast(barscount(c)=ab)),' 20%:'+numtostr(x10,2)+'元'),align1,color838383,pxup35;
drawtext(高点,ref(x11*0.996,barslast(barscount(c)=ab)),' 22%:'+numtostr(x11,2)+'元'),align1,color838383,pxup35;
drawtext(高点,ref(x12*0.996,barslast(barscount(c)=ab)),' 24%:'+numtostr(x12,2)+'元'),align1,color838383,pxup35;
drawtext(高点,ref(x13*0.996,barslast(barscount(c)=ab)),' 26%:'+numtostr(x13,2)+'元'),align1,color838383,pxup35;
drawtext(高点,ref(x14*0.996,barslast(barscount(c)=ab)),' 28%:'+numtostr(x14,2)+'元'),align1,color838383,pxup35;
drawtext(高点,ref(x15*0.996,barslast(barscount(c)=ab)),' 30%:'+numtostr(x15,2)+'元'),align1,color838383,pxup35;
drawtext(高点,ref(x16*0.996,barslast(barscount(c)=ab)),' 32%:'+numtostr(x16,2)+'元'),align1,color838383,pxup35;
drawtext(高点,ref(x17*0.996,barslast(barscount(c)=ab)),' 34%:'+numtostr(x17,2)+'元'),align1,color838383,pxup35;
drawtext(高点,ref(x18*0.996,barslast(barscount(c)=ab)),' 36%:'+numtostr(x18,2)+'元'),align1,color838383,pxup35;
drawtext(高点,ref(x19*0.996,barslast(barscount(c)=ab)),' 38%:'+numtostr(x19,2)+'元'),align1,color838383,pxup35;
drawtext(高点,ref(x20*0.996,barslast(barscount(c)=ab)),' 40%:'+numtostr(x20,2)+'元'),align1,color838383,pxup35;
drawtext(高点,ref(x21*0.996,barslast(barscount(c)=ab)),' 42%:'+numtostr(x21,2)+'元'),align1,color838383,pxup35;
drawtext(高点,ref(x22*0.996,barslast(barscount(c)=ab)),' 44%:'+numtostr(x22,2)+'元'),align1,color838383,pxup35;
drawtext(高点,ref(x23*0.996,barslast(barscount(c)=ab)),' 46%:'+numtostr(x23,2)+'元'),align1,color838383,pxup35;
drawtext(高点,ref(x24*0.996,barslast(barscount(c)=ab)),' 48%:'+numtostr(x24,2)+'元'),align1,color838383,pxup35;
测量涨幅
{【压力预测线】}
drawgbk((close > 0),colorrgb(0,0,0),colorrgb(0,0,0),1);
kline(o,h,l,c,0);
ab:=sysparam(1);
bb:=sysparam(3);
d:=(bb - ab);
da:=backset(islastbar,llvbars(l,(d+1))+1);
低点:=count(da,(d+1))=1;{低点位置}
ll:=llv(l,(d + 1));
最低:ll[bb],colorred,linethick0;
x1:=最低*(1+0.02);
x2:=最低*(1+0.04);
x3:= 最低*(1+0.06);
x4:= 最低*(1+0.08);
x5:= 最低*(1+0.10);
x6:= 最低*(1+0.12);
x7:= 最低*(1+0.14);
x8:= 最低*(1+0.16);
x9:=最低*(1+0.18);
x10:=最低*(1+0.20);
x11:= 最低*(1+0.22);
x12:= 最低*(1+0.24);
x13:= 最低*(1+0.26);
x14:= 最低*(1+0.28);
x15:= 最低*(1+0.30);
x16:= 最低*(1+0.32);
x17:=最低*(1+0.34);
x18:=最低*(1+0.36);
x19:= 最低*(1+0.38);
x20:= 最低*(1+0.40);
x21:= 最低*(1+0.42);
x22:= 最低*(1+0.44);
x23:= 最低*(1+0.46);
x24:= 最低*(1+0.48);
drawline(低点,最低, islastbar,ref(最低,1),0),color939300,linedot;
b1:drawline(低点,x1,islastbar,ref(x1,1),0),color008080,linedot;
b2:drawline(低点,x2,islastbar,ref(x2,1),0),color939300,linedot;
b3:drawline(低点,x3,islastbar,ref(x3,1),0),color008080,linedot;
b4:drawline(低点,x4,islastbar,ref(x4,1),0),color939300,linedot;
b5:drawline(低点,x5,islastbar,ref(x5,1),0),color008080,linedot;
b6:drawline(低点,x6,islastbar,ref(x6,1),0),color939300,linedot;
b7:drawline(低点,x7,islastbar,ref(x7,1),0),color008080,linedot;
b8:drawline(低点,x8,islastbar,ref(x8,1),0),color939300,linedot;
b9:drawline(低点,x9,islastbar,ref(x9,1),0),color008080,linedot;
b10:drawline(低点,x10,islastbar,ref(x10,1),0),color939300,linedot;
b11:drawline(低点,x11,islastbar,ref(x11,1),0),color008080,linedot;
b12:drawline(低点,x12,islastbar,ref(x12,1),0),color939300,linedot;
b13:drawline(低点,x13,islastbar,ref(x13,1),0),color008080,linedot;
b14:drawline(低点,x14,islastbar,ref(x14,1),0),color939300,linedot;
b15:drawline(低点,x15,islastbar,ref(x15,1),0),color008080,linedot;
b16:drawline(低点,x16,islastbar,ref(x16,1),0),color939300,linedot;
b17:drawline(低点,x17,islastbar,ref(x17,1),0),color008080,linedot;
b18:drawline(低点,x18,islastbar,ref(x18,1),0),color939300,linedot;
b19:drawline(低点,x19,islastbar,ref(x19,1),0),color008080,linedot;
b20:drawline(低点,x20,islastbar,ref(x20,1),0),color939300,linedot;
b21:drawline(低点,x21,islastbar,ref(x21,1),0),color008080,linedot;
b22:drawline(低点,x22,islastbar,ref(x22,1),0),color939300,linedot;
b23:drawline(低点,x23,islastbar,ref(x23,1),0),color008080,linedot;
b24:drawline(低点,x24,islastbar,ref(x24,1),0),color939300,linedot;
vertline(低点),colorred,linethick1;
drawtext(低点,ref(最低*0.996,barslast(barscount(c)=ab)),' 最低价 '+numtostr(最低,2)+'元'),align1,color838383,pxup35;
drawtext(低点,ref(x1*0.996,barslast(barscount(c)=ab)),' 2%:'+numtostr(x1,2)+'元'),align1,color838383,pxup35;
drawtext(低点,ref(x2*0.996,barslast(barscount(c)=ab)),' 4%:'+numtostr(x2,2)+'元'),align1,color838383,pxup35;
drawtext(低点,ref(x3*0.996,barslast(barscount(c)=ab)),' 6%:'+numtostr(x3,2)+'元'),align1,color838383,pxup35;
drawtext(低点,ref(x4*0.996,barslast(barscount(c)=ab)),' 8%:'+numtostr(x4,2)+'元'),align1,color838383,pxup35;
drawtext(低点,ref(x5*0.996,barslast(barscount(c)=ab)),' 10%:'+numtostr(x5,2)+'元'),align1,color838383,pxup35;
drawtext(低点,ref(x6*0.996,barslast(barscount(c)=ab)),' 12%:'+numtostr(x6,2)+'元'),align1,color838383,pxup35;
drawtext(低点,ref(x7*0.996,barslast(barscount(c)=ab)),' 14%:'+numtostr(x7,2)+'元'),align1,color838383,pxup35;
drawtext(低点,ref(x8*0.996,barslast(barscount(c)=ab)),' 16%:'+numtostr(x8,2)+'元'),align1,color838383,pxup35;
drawtext(低点,ref(x9*0.996,barslast(barscount(c)=ab)),' 18%:'+numtostr(x9,2)+'元'),align1,color838383,pxup35;
drawtext(低点,ref(x10*0.996,barslast(barscount(c)=ab)),' 20%:'+numtostr(x10,2)+'元'),align1,color838383,pxup35;
drawtext(低点,ref(x11*0.996,barslast(barscount(c)=ab)),' 22%:'+numtostr(x11,2)+'元'),align1,color838383,pxup35;
drawtext(低点,ref(x12*0.996,barslast(barscount(c)=ab)),' 24%:'+numtostr(x12,2)+'元'),align1,color838383,pxup35;
drawtext(低点,ref(x13*0.996,barslast(barscount(c)=ab)),' 26%:'+numtostr(x13,2)+'元'),align1,color838383,pxup35;
drawtext(低点,ref(x14*0.996,barslast(barscount(c)=ab)),' 28%:'+numtostr(x14,2)+'元'),align1,color838383,pxup35;
drawtext(低点,ref(x15*0.996,barslast(barscount(c)=ab)),' 30%:'+numtostr(x15,2)+'元'),align1,color838383,pxup35;
drawtext(低点,ref(x16*0.996,barslast(barscount(c)=ab)),' 32%:'+numtostr(x16,2)+'元'),align1,color838383,pxup35;
drawtext(低点,ref(x17*0.996,barslast(barscount(c)=ab)),' 34%:'+numtostr(x17,2)+'元'),align1,color838383,pxup35;
drawtext(低点,ref(x18*0.996,barslast(barscount(c)=ab)),' 36%:'+numtostr(x18,2)+'元'),align1,color838383,pxup35;
drawtext(低点,ref(x19*0.996,barslast(barscount(c)=ab)),' 38%:'+numtostr(x19,2)+'元'),align1,color838383,pxup35;
drawtext(低点,ref(x20*0.996,barslast(barscount(c)=ab)),' 40%:'+numtostr(x20,2)+'元'),align1,color838383,pxup35;
drawtext(低点,ref(x21*0.996,barslast(barscount(c)=ab)),' 42%:'+numtostr(x21,2)+'元'),align1,color838383,pxup35;
drawtext(低点,ref(x22*0.996,barslast(barscount(c)=ab)),' 44%:'+numtostr(x22,2)+'元'),align1,color838383,pxup35;
drawtext(低点,ref(x23*0.996,barslast(barscount(c)=ab)),' 46%:'+numtostr(x23,2)+'元'),align1,color838383,pxup35;
drawtext(低点,ref(x24*0.996,barslast(barscount(c)=ab)),' 48%:'+numtostr(x24,2)+'元'),align1,color838383,pxup35;
上一指标公式:MTM短线买卖副图公式 飞狐买卖MTM指标 源码
下一指标公式:神枪手去时间限制提供和公式 飞狐神枪手指标 源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文测量跌幅测量涨幅公式 飞狐跌幅涨幅指标 源码仅供学习研究。