设为首页加入收藏

微信关注
官方微信号:71712643
加关注获取每日精选资讯
股票入门欢迎您加入
广告服务联系我们网站地图

飞狐股市任我行指标公式源码是什么?

2016-4-22 15:20:01 股票入门 http://rumen.southmoney.com

飞狐股市任我行指标公式源码是什么?附:飞狐逆向波自动测幅主图公式源码说明 南方财富网小编为您提供


【飞狐股市任我行指标公式源码】

DRAWGBK(CLOSE>0, COLORRGB(1,3333,6666), COLORRGB(100,7777,8888),3);
WRAP: break-word; WHITE-SPACE: normal; TEXT-TRANSFORM: none; WORD-SPACING: 0px; COLOR: rgb(51,51,51); PADDING-BOTTOM: 0px; PADDING-TOP: 0px; FONT: 14px/24px 宋体, arial, sans-serif, 'DejaVu Sans', 'Lucida Grande', Tahoma, 'Hiragino Sans GB', STHeiti, SimSun, sans-serif; PADDING-LEFT: 0px; MARGIN: 0px; WIDOWS: 1; LETTER-SPACING: normal; PADDING-RIGHT: 0px; TEXT-INDENT: 0px; -webkit-text-stroke-width: 0px">底部:IF(EMA(CLOSE,5)/EMA(EMA(CLOSE,9),16)<=0.85 AND CLOSE/REF(CLOSE,1)>0.905 AND CLOSE/REF(CLOSE,1)<1.05 AND VOL/CAPITAL*100<5,50,0);
Var3:=(-100)*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34))+100;
Var4:=(-100)*(HHV(HIGH,50)-CLOSE)/(HHV(HIGH,50)-LLV(LOW,50))+100;
Var5:=(-100)*(HHV(HIGH,70)-CLOSE)/(HHV(HIGH,70)-LLV(LOW,70))+100;
Var6:=((CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100+10)*5;
Var7:=((CLOSE-MA(CLOSE,50))/MA(CLOSE,50)*100+10)*5;
Var8:=((CLOSE-MA(CLOSE,70))/MA(CLOSE,70)*100+10)*5;
Var9:=(Var3+Var4+Var5+Var6+Var7+Var8)/6;
趋势线:EMA(Var9,3);
VarB:=ABS(Var6-Var8);
VarC:=(Var9+VarB)/2;
VarD:=(-1)*(EMA(100*(1-WINNER(CLOSE)),1)-50)+50;
VarE:=VarD+VarC;
VarF:=IF(底部>0 AND VarE<0,200,0);
Var10:=IF(VarC<0 AND CLOSE=LLV(CLOSE,5) AND CLOSE/REF(CLOSE,1)>0.905 AND CLOSE/REF(CLOSE,1)<1.05 AND VOL/CAPITAL*100<5,-50,0);
抄底:IF(VarE<0 AND Var10=-50,100,0);
Var12:=REF(CLOSE,2)*0.865;
Var13:=REF(CLOSE,13)*0.772;
Var14:=MIN(Var12,Var13);
Var15:=100*VOL/CAPITAL;
Var16:=IF((CLOSE-Var14)/CLOSE<0.03 AND SUM(Var15,5)/5<1.8,1,0);
Var17:=IF(Var16>0 AND (Var10<0 OR 底部>0),100,0);
Var18:=(VarF>0 AND 抄底>0 AND SUM(VOL/CAPITAL*100,5)/5<1 OR Var16>0) AND (Var10<0 OR 底部>0);
Var19:=VarF>0 AND 抄底>0 AND SUM(VOL/CAPITAL*100,5)/5<1 OR Var16>0 AND REF(CLOSE,1)/REF(CLOSE,2)>0.902;
Var1A:=Var18 OR Var19;
Var1B:=Var17 OR Var1A;
Var1D:=MA(CLOSE,80)-MA(CLOSE,10)/3;
Var1E:=IF(Var1B>0,87,0);
Var1F:=IF(Var17>0,91,0);
Var20:=IF(Var17>0 AND CLOSE<Var1D,97,0);
出击:MAX(MAX(Var20,Var1E),Var1F),COLORWHITE;
Var22:=MA(CLOSE,80)-MA(CLOSE,13)/3;
Var23:=MA((CLOSE-Var22)/Var22,1);
Var24:=EMA(Var23,12)*0.7;
Var25:=EMA(Var23,3);
基线:IF(LLV(Var25-Var24,12)>0,0,-30),COLORFFFF00;
Var27:=REF(CLOSE,1);
Var28:=SMA(MAX(CLOSE-Var27,0),6,1)/SMA(ABS(CLOSE-Var27),6,1)*100;
STICKLINE(IF(CROSS(76,Var28),1,0),0,80,10,1),colorred;
DRAWTEXT(IF(CROSS(76,Var28),1,0),80,'快跑'),colorred;
DRAWICON(FILTER(Var9>REF(Var9,2)AND Var9<10 AND C>MA(C,3)OR 趋势线>REF (趋势线,1) AND 趋势线<5,7),H,1);
DRAWICON(FILTER(Var9<REF(Var9,1)AND Var9>78 AND NOT(CROSS(76,Var28)),10),93,2);

附:【飞狐逆向波自动测幅主图公式源码说明】

逆向波自动测幅 主图 源码 说明

通过对前一ZIG逆向波的黄金分割幅度判定可能的反转位(并非网上的高低点测幅),参数见小图

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(ZX<REF(ZX,1),CCH,CCY),LINETHICK0;
DD:=IF(ZX<REF(ZX,1),CCY,CCH),LINETHICK0;

W1:=CROSS(CCH-0.02,ZX);
W2:=CROSS(ZX,CCY+0.02);
FD:=F/100;
YS:=IF(ZX<REF(ZX,1),FD,-FD);
W:=IF(ZX<REF(ZX,1),W1,W2);
H1:if(ZX<REF(ZX,1),REF(CC-(CC-DD)*0.5,BARSLAST(W)),0),LINETHICK0;
H2:if(ZX<REF(ZX,1),REF(CC-(CC-DD)*0.618,BARSLAST(W)),0),LINETHICK0;
H3:if(ZX<REF(ZX,1),REF(CC-(CC-DD)*1.618,BARSLAST(W)),0),LINETHICK0;
H4:if(ZX<REF(ZX,1),REF(CC-(CC-DD)*1.272,BARSLAST(W)),0),LINETHICK0;
H5:if(ZX<REF(ZX,1),REF(CC-(CC-DD)*1.5,BARSLAST(W)),0),LINETHICK0;
H6:if(ZX<REF(ZX,1),REF(CC-(CC-DD)*1.382,BARSLAST(W)),0),LINETHICK0;
H7:if(ZX<REF(ZX,1),REF(CC-(CC-DD)*2,BARSLAST(W)),0),LINETHICK0;
H8:if(ZX<REF(ZX,1),REF(CC-(CC-DD)*2.5,BARSLAST(W)),0),LINETHICK0;
H9:if(ZX<REF(ZX,1),REF(CC-(CC-DD)*2.618,BARSLAST(W)),0),LINETHICK0;
H10:if(ZX<REF(ZX,1),REF(CC-(CC-DD)*4.236,BARSLAST(W)),0),LINETHICK0;
H11:if(ZX<REF(ZX,1),REF(CC-(CC-DD)*0.382,BARSLAST(W)),0),LINETHICK0;
H12:if(ZX<REF(ZX,1),REF(CC-(CC-DD)*0.764,BARSLAST(W)),0),LINETHICK0;
H13:if(ZX<REF(ZX,1),REF(CC-(CC-DD)*0.809,BARSLAST(W)),0),LINETHICK0;
H14:if(ZX<REF(ZX,1),REF(CC-(CC-DD)*3.326,BARSLAST(W)),0),LINETHICK0;
H15:if(ZX<REF(ZX,1),REF(CC-(CC-DD)*3.618,BARSLAST(W)),0),LINETHICK0;
H16:if(ZX<REF(ZX,1),REF(CC-(CC-DD)*3,BARSLAST(W)),0),LINETHICK0;
H17:if(ZX<REF(ZX,1),REF(cc-(CC-DD)*1,BARSLAST(W)),0),LINETHICK0;
H18:if(ZX<REF(ZX,1),REF(CC-(CC-DD)*4,BARSLAST(W)),0),LINETHICK0;
H19:if(ZX<REF(ZX,1),REF(CC-(CC-DD)*0.191,BARSLAST(W)),0),LINETHICK0;
H1h: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;
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 H1<HHD,H2,H2,5,0),colorA0A0A0;
STICKLINE(H2>LLD AND H2<HHD,H3,H3,5,0),colorA0A0A0;
STICKLINE(H3>LLD AND H3<HHD,H4,H4,5,0),colorA0A0A0;
STICKLINE(H4>LLD AND H4<HHD,H5,H5,5,0),colorA0A0A0;
STICKLINE(H5>LLD AND H5<HHD,H6,H6,5,0),colorA0A0A0;
STICKLINE(H6>LLD AND H6<HHD,H7,H7,5,0),colorA0A0A0;
STICKLINE(H7>LLD AND H7<HHD,H8,H8,5,0),colorA0A0A0;
STICKLINE(H8>LLD AND H8<HHD,H9,H9,5,0),colorA0A0A0;
STICKLINE(H9>LLD AND H9<HHD,H10,H10,5,0),colorA0A0A0;
STICKLINE(H10>LLD AND H10<HHD,H11,H11,5,0),colorA0A0A0;
STICKLINE(H11>LLD AND H11<HHD,H12,H12,5,0),colorA0A0A0;
STICKLINE(H12>LLD AND H12<HHD,H13,H13,5,0),colorA0A0A0;
STICKLINE(H13>LLD AND H13<HHD,H14,H14,5,0),colorA0A0A0;
STICKLINE(H14>LLD AND H14<HHD,H15,H15,5,0),colorA0A0A0;
STICKLINE(H15>LLD AND H15<HHD,H16,H16,5,0),colorA0A0A0;
STICKLINE(H16>LLD AND H16<HHD,H17,H17,5,0),colorA0A0A0;
STICKLINE(H17>LLD AND H17<HHD,H18,H18,5,0),colorA0A0A0;
STICKLINE(H18>LLD AND H18<HHD,H19,H19,5,0),colorA0A0A0;
STICKLINE(CC>=LLD AND CC<=HHD,H1h,H1h,5,0),colorA0A0A0;
STICKLINE(H1h>LLD AND H1h<HHD,H2h,H2h,5,0),colorA0A0A0;
STICKLINE(H2h>LLD AND H2h<HHD,H3h,H3h,5,0),colorA0A0A0;
STICKLINE(H3h>LLD AND H3h<HHD,H4h,H4h,5,0),colorA0A0A0;
STICKLINE(H4h>LLD AND H4h<HHD,H5h,H5h,5,0),colorA0A0A0;
STICKLINE(H5h>LLD AND H5h<HHD,H6h,H6h,5,0),colorA0A0A0;
STICKLINE(H6h>LLD AND H6h<HHD,H7h,H7h,5,0),colorA0A0A0;
STICKLINE(H7h>LLD AND H7h<HHD,H8h,H8h,5,0),colorA0A0A0;
STICKLINE(H8h>LLD AND H8h<HHD,H9h,H9h,5,0),colorA0A0A0;
STICKLINE(H9h>LLD AND H9h<HHD,H10h,H10h,5,0),colorA0A0A0;
STICKLINE(H10h>LLD AND H10h<HHD,H11h,H11h,5,0),colorA0A0A0;
STICKLINE(H11h>LLD AND H11h<HHD,H12h,H12h,5,0),colorA0A0A0;
STICKLINE(H12h>LLD AND H12h<HHD,H13h,H13h,5,0),colorA0A0A0;
STICKLINE(H13h>LLD AND H13h<HHD,H14h,H14h,5,0),colorA0A0A0;
STICKLINE(H14h>LLD AND H14h<HHD,H15h,H15h,5,0),colorA0A0A0;
STICKLINE(H15h>LLD AND H15h<HHD,H16h,H16h,5,0),colorA0A0A0;
STICKLINE(H16h>LLD AND H16h<HHD,H17h,H17h,5,0),colorA0A0A0;
STICKLINE(H17h>LLD AND H17h<HHD,H18h,H18h,5,0),colorA0A0A0;
STICKLINE(H18h>LLD AND H18h<HHD,H19h,H19h,5,0),colorA0A0A0;
DRAWTEXT(W AND CC>=LLD AND CC<=HHD,H1,''+NUMTOSTR(F*0.5/10,3)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(W AND H1>LLD AND H1<HHD,H2,''+NUMTOSTR(F*0.618/10,3)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(W AND H2>LLD AND H2<HHD,H3,''+NUMTOSTR(F*1.618/10,3)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(W AND H3>LLD AND H3<HHD,H4,''+NUMTOSTR(F*1.272/10,3)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(W AND H4>LLD AND H4<HHD,H5,''+NUMTOSTR(F*1.5/10,3)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(W AND H5>LLD AND H5<HHD,H6,''+NUMTOSTR(F*1.382/10,3)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(W AND H6>LLD AND H6<HHD,H7,''+NUMTOSTR(F*2/10,3)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(W AND H7>LLD AND H7<HHD,H8,''+NUMTOSTR(F*2.5/10,3)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(W AND H8>LLD AND H8<HHD,H9,''+NUMTOSTR(F*2.618/10,3)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(W AND H9>LLD AND H9<HHD,H10,''+NUMTOSTR(F*4.236/10,3)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(W AND H10>LLD AND H10<HHD,H11,''+NUMTOSTR(F*0.382/10,3)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(W AND H11>LLD AND H11<HHD,H12,''+NUMTOSTR(F*0.764/10,3)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(W AND H12>LLD AND H12<HHD,H13,''+NUMTOSTR(F*0.809/10,3)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(W AND H13>LLD AND H13<HHD,H14,''+NUMTOSTR(F*3.236/10,3)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(W AND H14>LLD AND H14<HHD,H15,''+NUMTOSTR(F*3.618/10,3)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(W AND H15>LLD AND H15<HHD,H16,''+NUMTOSTR(F*3/10,3)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(W AND H16>LLD AND H16<HHD,H17,''+NUMTOSTR(F*1/10,3)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(W AND H17>LLD AND H17<HHD,H18,''+NUMTOSTR(F*4/10,3)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(W AND H18>LLD AND H18<HHD,H19,''+NUMTOSTR(F*0.191/10,3)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(W AND CC>=LLD AND CC<=HHD,H1h,''+NUMTOSTR(F*0.5/10,3)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(W AND H1h>LLD AND H1h<HHD,H2h,''+NUMTOSTR(F*0.618/10,3)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(W AND H2h>LLD AND H2h<HHD,H3h,''+NUMTOSTR(F*1.618/10,3)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(W AND H3h>LLD AND H3h<HHD,H4h,''+NUMTOSTR(F*1.272/10,3)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(W AND H4h>LLD AND H4h<HHD,H5h,''+NUMTOSTR(F*1.5/10,3)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(W AND H5h>LLD AND H5h<HHD,H6h,''+NUMTOSTR(F*1.382/10,3)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(W AND H6h>LLD AND H6h<HHD,H7h,''+NUMTOSTR(F*2/10,3)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(W AND H7h>LLD AND H7h<HHD,H8h,''+NUMTOSTR(F*2.5/10,3)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(W AND H8h>LLD AND H8h<HHD,H9h,''+NUMTOSTR(F*2.618/10,3)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(W AND H9h>LLD AND H9h<HHD,H10h,''+NUMTOSTR(F*4.236/10,3)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(W AND H10h>LLD AND H10h<HHD,H11h,''+NUMTOSTR(F*0.382/10,3)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(W AND H11h>LLD AND H11h<HHD,H12h,''+NUMTOSTR(F*0.764/10,3)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(W AND H12h>LLD AND H12h<HHD,H13h,''+NUMTOSTR(F*0.809/10,3)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(W AND H13h>LLD AND H13h<HHD,H14h,''+NUMTOSTR(F*3.236/10,3)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(W AND H14h>LLD AND H14h<HHD,H15h,''+NUMTOSTR(F*3.618/10,3)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(W AND H15h>LLD AND H15h<HHD,H16h,''+NUMTOSTR(F*3/10,3)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(W AND H16h>LLD AND H16h<HHD,H17h,''+NUMTOSTR(F*1/10,3)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(W AND H17h>LLD AND H17h<HHD,H18h,''+NUMTOSTR(F*4/10,3)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(W AND H18h>LLD AND H18h<HHD,H19h,''+NUMTOSTR(F*0.191/10,3)+'%'),PXDN5,colorA0A0A0;
AK1:=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);


更多飞狐指标公式相关资讯请关注南方财富网

股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。