公式指标论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

逆向波自动测幅主图指标 (源码)

2021-6-16 00:36| 发布者: admin| 查看: 22| 评论: 0

飞狐逆向波自动测幅主图指标公式股票软件源码如下:

KG1:=9;F1:=10;
KG:=IF(DATATYPE<=1,1,IF(DATATYPE<=3,5,IF(DATATYPE<=5,10,KG1)));
F:=IF(DATATYPE<=3,1,IF(DATATYPE=4,3,IF(DATATYPE=5,5,F1)));
ZX:=ZIG(4,KG);
CCH:=PEAK(4,KG,1);
CCY:=TROUGH(4,KG,1);
CC:=IF(ZXDD:=IF(ZXW1:=CROSS(CCH-0.02,ZX);
W2:=CROSS(ZX,CCY+0.02);
FD:=F/100;
YS:=IF(ZXW:=IF(ZXH1:if(ZXH2:if(ZXH3:if(ZXH4:if(ZXH5:if(ZXH6:if(ZXH7:if(ZXH8:if(ZXH9:if(ZXH10:if(ZXH11:if(ZXH12:if(ZXH13:if(ZXH14:if(ZXH15:if(ZXH16:if(ZXH17:if(ZXH18:if(ZXH19:if(ZXH1h:if(ZX>REF(ZX,1),REF(CC+(dd-cc)*0.5,BARSLAST(W)),0),LINETHICK0;
H2h:if(ZX>REF(ZX,1),REF(CC+(dd-cc)*0.618,BARSLAST(W)),0),LINETHICK0;
H3h:if(ZX>REF(ZX,1),REF(CC+(dd-cc)*1.618,BARSLAST(W)),0),LINETHICK0;
H4h:if(ZX>REF(ZX,1),REF(CC+(dd-cc)*1.272,BARSLAST(W)),0),LINETHICK0;
H5h:if(ZX>REF(ZX,1),REF(CC+(dd-cc)*1.5,BARSLAST(W)),0),LINETHICK0;
H6h:if(ZX>REF(ZX,1),REF(CC+(dd-cc)*1.382,BARSLAST(W)),0),LINETHICK0;
H7h:if(ZX>REF(ZX,1),REF(CC+(dd-cc)*2,BARSLAST(W)),0),LINETHICK0;
H8h:if(ZX>REF(ZX,1),REF(CC+(dd-cc)*2.5,BARSLAST(W)),0),LINETHICK0;
H9h:if(ZX>REF(ZX,1),REF(CC+(dd-cc)*2.618,BARSLAST(W)),0),LINETHICK0;
H10h:if(ZX>REF(ZX,1),REF(CC+(dd-cc)*4.236,BARSLAST(W)),0),LINETHICK0;
H11h:if(ZX>REF(ZX,1),REF(CC+(dd-cc)*0.382,BARSLAST(W)),0),LINETHICK0;
H12h:if(ZX>REF(ZX,1),REF(CC+(dd-cc)*0.764,BARSLAST(W)),0),LINETHICK0;
H13h:if(ZX>REF(ZX,1),REF(CC+(dd-cc)*0.809,BARSLAST(W)),0),LINETHICK0;
H14h:if(ZX>REF(ZX,1),REF(CC+(dd-cc)*3.326,BARSLAST(W)),0),LINETHICK0;
H15h:if(ZX>REF(ZX,1),REF(CC+(dd-cc)*3.618,BARSLAST(W)),0),LINETHICK0;
H16h:if(ZX>REF(ZX,1),REF(CC+(dd-cc)*3,BARSLAST(W)),0),LINETHICK0;
H17h:if(ZX>REF(ZX,1),REF(CC+(dd-cc)*1,BARSLAST(W)),0),LINETHICK0;
H18h:if(ZX>REF(ZX,1),REF(CC+(dd-cc)*4,BARSLAST(W)),0),LINETHICK0;
{www.gpxiazai.com 股票软件下载网_飞狐股票指标公式}
H19h:if(ZX>REF(ZX,1),REF(CC+(dd-cc)*0.191,BARSLAST(W)),0),LINETHICK0;
HHD:=SYSPARAM(4);
LLD:=SYSPARAM(5);
系数:=IF(DATATYPE=2,1.00005,IF(DATATYPE<6,1.0005,1.002));
STICKLINE(CC>=LLD AND CC<=HHD,CC,CC*系数,20,0),colorFF;
STICKLINE(CC>=LLD AND CC<=HHD,H1,H1,5,0),colorA0A0A0;
STICKLINE(H1>LLD AND H1STICKLINE(H2>LLD AND H2STICKLINE(H3>LLD AND H3STICKLINE(H4>LLD AND H4STICKLINE(H5>LLD AND H5STICKLINE(H6>LLD AND H6STICKLINE(H7>LLD AND H7STICKLINE(H8>LLD AND H8STICKLINE(H9>LLD AND H9STICKLINE(H10>LLD AND H10STICKLINE(H11>LLD AND H11STICKLINE(H12>LLD AND H12STICKLINE(H13>LLD AND H13STICKLINE(H14>LLD AND H14STICKLINE(H15>LLD AND H15STICKLINE(H16>LLD AND H16STICKLINE(H17>LLD AND H17STICKLINE(H18>LLD AND H18STICKLINE(CC>=LLD AND CC<=HHD,H1h,H1h,5,0),colorA0A0A0;
STICKLINE(H1h>LLD AND H1hSTICKLINE(H2h>LLD AND H2hSTICKLINE(H3h>LLD AND H3hSTICKLINE(H4h>LLD AND H4hSTICKLINE(H5h>LLD AND H5hSTICKLINE(H6h>LLD AND H6hSTICKLINE(H7h>LLD AND H7hSTICKLINE(H8h>LLD AND H8hSTICKLINE(H9h>LLD AND H9hSTICKLINE(H10h>LLD AND H10hSTICKLINE(H11h>LLD AND H11hSTICKLINE(H12h>LLD AND H12hSTICKLINE(H13h>LLD AND H13hSTICKLINE(H14h>LLD AND H14hSTICKLINE(H15h>LLD AND H15hSTICKLINE(H16h>LLD AND H16hSTICKLINE(H17h>LLD AND H17hSTICKLINE(H18h>LLD AND H18hDRAWTEXT(W AND CC>=LLD AND CC<=HHD,H1,''+NUMTOSTR(F*0.5/10,3)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(W AND H1>LLD AND H1DRAWTEXT(W AND H2>LLD AND H2DRAWTEXT(W AND H3>LLD AND H3DRAWTEXT(W AND H4>LLD AND H4DRAWTEXT(W AND H5>LLD AND H5DRAWTEXT(W AND H6>LLD AND H6DRAWTEXT(W AND H7>LLD AND H7DRAWTEXT(W AND H8>LLD AND H8DRAWTEXT(W AND H9>LLD AND H9DRAWTEXT(W AND H10>LLD AND H10DRAWTEXT(W AND H11>LLD AND H11DRAWTEXT(W AND H12>LLD AND H12DRAWTEXT(W AND H13>LLD AND H13DRAWTEXT(W AND H14>LLD AND H14DRAWTEXT(W AND H15>LLD AND H15DRAWTEXT(W AND H16>LLD AND H16DRAWTEXT(W AND H17>LLD AND H17DRAWTEXT(W AND H18>LLD AND H18DRAWTEXT(W AND CC>=LLD AND CC<=HHD,H1h,''+NUMTOSTR(F*0.5/10,3)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(W AND H1h>LLD AND H1hDRAWTEXT(W AND H2h>LLD AND H2hDRAWTEXT(W AND H3h>LLD AND H3hDRAWTEXT(W AND H4h>LLD AND H4hDRAWTEXT(W AND H5h>LLD AND H5hDRAWTEXT(W AND H6h>LLD AND H6hDRAWTEXT(W AND H7h>LLD AND H7hDRAWTEXT(W AND H8h>LLD AND H8hDRAWTEXT(W AND H9h>LLD AND H9hDRAWTEXT(W AND H10h>LLD AND H10hDRAWTEXT(W AND H11h>LLD AND H11hDRAWTEXT(W AND H12h>LLD AND H12hDRAWTEXT(W AND H13h>LLD AND H13hDRAWTEXT(W AND H14h>LLD AND H14hDRAWTEXT(W AND H15h>LLD AND H15hDRAWTEXT(W AND H16h>LLD AND H16hDRAWTEXT(W AND H17h>LLD AND H17hDRAWTEXT(W AND H18h>LLD AND H18hAK1:=BARSLAST(W1)+1;
BK1:=BARSLAST(W2)+1;
目前:=IF(BK1>AK1,AK1,BK1);
DRAWNUMBER(W1,CC,REF(目前,1)+1,0),ALIGN2,PXUP30,colorFF00FF;
DRAWNUMBER(W2,CC,REF(目前,1)+1,0),ALIGN2,PXDN10,coloryellow;
方向:=IF(CC=CCH,'下行 ','上升 ');
周期:=IF(DATATYPE=6,'天 ',IF(DATATYPE=7,'周 ',IF(DATATYPE=8,'月 ','单位')));
DRAWTEXTEX(CLOSE>0,0,2,5,'目前波段'+方向+NUMTOSTR(目前+1,0)+周期),colorRED;
DRAWTEXT(W1,CC,''+周期),PXUP30,colorFF00FF;
DRAWTEXT(W2,CC,''+周期),PXDN10,coloryellow;
a:=FLATZIG(4,KG1);
z:zig(4,KG1),PRECISION2,LINEDOT,COLORWHITE;
aa:=a=0 or a=1 or 是否最后周期;
wq:=barslast(aa);
F:(z/ref(z,ref(wq,1)+1)-1)*100,LINETHICK;
w2:=sumbars(aa,2)-1;
fb:=f/ref(f,ref(w2,1)+1);
显示数字(aa,z,fb,2);
显示数字(aa,z*0.99,f/ref(f,ref(wq,1)+1),2);

飞狐逆向波自动测幅主图指标公式


鲜花

握手

雷人

路过

鸡蛋
返回顶部