飞狐压力预测线主图指标公式

[复制链接]
查看170 | 回复0 | 2021-8-21 12:50:24 | 显示全部楼层 |阅读模式

使用说明:使用方法,将光标移至所预测底部的前高点位置,公式能自动寻找最低点的。此公式只是一种预测,在实际使用中只能作为分析的参考,不要直接指导操作!

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.0809);
x2:=最低*(1+0.1618);
x3:=x2*(1+0.0809);
x4:=x2*(1+0.1618);
x5:=x4*(1+0.0809);
x6:=x4*(1+0.1618);
x7:=x6*(1+0.0809);
x8:=x6*(1+0.1618);
DRAWLINE(低点,最低, ISLASTBAR,REF(最低,1),0),Color939300,LINEDOT;
DRAWLINE(低点,x1,ISLASTBAR,REF(x1,1),0),Color008080,LINEDOT;
DRAWLINE(低点,x2,ISLASTBAR,REF(x2,1),0),Color939300,LINEDOT;
DRAWLINE(低点,x3,ISLASTBAR,REF(x3,1),0),Color008080,LINEDOT;
DRAWLINE(低点,x4,ISLASTBAR,REF(x4,1),0),Color939300,LINEDOT;
DRAWLINE(低点,x5,ISLASTBAR,REF(x5,1),0),Color008080,LINEDOT;
DRAWLINE(低点,x6,ISLASTBAR,REF(x6,1),0),Color939300,LINEDOT;
DRAWLINE(低点,x7,ISLASTBAR,REF(x7,1),0),Color008080,LINEDOT;
DRAWLINE(低点,x8,ISLASTBAR,REF(x8,1),0),Color939300,LINEDOT;
VERTLINE(低点),COLORRED,LINETHICK1;
{股旁网-股票公式网站 www.gupang.com}
DRAWTEXT(低点,REF(最低*0.996,BARSLAST(BARSCOUNT(C)=AB)),' 最低价:'+NUMTOSTR(最低,2)+'元'),ALIGN1,Color838383,PXUP35;
DRAWTEXT(低点,REF(x1*0.996,BARSLAST(BARSCOUNT(C)=AB)),' 0.5阶:'+NUMTOSTR(x1,2)+'元'),ALIGN1,Color838383,PXUP35;
DRAWTEXT(低点,REF(x2*0.996,BARSLAST(BARSCOUNT(C)=AB)),' 1.0阶:'+NUMTOSTR(x2,2)+'元'),ALIGN1,Color838383,PXUP35;
DRAWTEXT(低点,REF(x3*0.996,BARSLAST(BARSCOUNT(C)=AB)),' 1.5阶:'+NUMTOSTR(x3,2)+'元'),ALIGN1,Color838383,PXUP35;
DRAWTEXT(低点,REF(x4*0.996,BARSLAST(BARSCOUNT(C)=AB)),' 2.0阶:'+NUMTOSTR(x4,2)+'元'),ALIGN1,Color838383,PXUP35;
DRAWTEXT(低点,REF(x5*0.996,BARSLAST(BARSCOUNT(C)=AB)),' 2.5阶:'+NUMTOSTR(x5,2)+'元'),ALIGN1,Color838383,PXUP35;
DRAWTEXT(低点,REF(x6*0.996,BARSLAST(BARSCOUNT(C)=AB)),' 3.0阶:'+NUMTOSTR(x6,2)+'元'),ALIGN1,Color838383,PXUP35;
DRAWTEXT(低点,REF(x7*0.996,BARSLAST(BARSCOUNT(C)=AB)),' 3.5阶:'+NUMTOSTR(x7,2)+'元'),ALIGN1,Color838383,PXUP35;
DRAWTEXT(低点,REF(x8*0.996,BARSLAST(BARSCOUNT(C)=AB)),' 4.0阶:'+NUMTOSTR(x8,2)+'元'),ALIGN1,Color838383,PXUP35;

202108211226.jpg

202108211226.jpg

 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则