飞狐准确买卖主图公式源码是什么?
2016-4-29 13:58:19 股票入门 http://rumen.southmoney.com
飞狐准确买卖主图公式源码是什么?附:飞狐关于均线乖离双周期显示副图公式源码 南方财富网小编为您提供
【飞狐准确买卖主图公式源码】
EMA30:EMA(C,30),COLORWHITE;
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">EMA60:EMA(C,60),COLORYELLOW;
EMA120:EMA(C,120),COLORFF00FF;
EMA240:EMA(C,240),COLORFFCC66;
VAR2:=(2*CLOSE+HIGH+LOW)/4;
VAR3:=IF(YEAR>=2099 AND MONTH>2,0,1);
VAR4:=LLV(LOW,5);
VAR5:=HHV(HIGH,4);
散户:=EMA((VAR2-VAR4)/(VAR5-VAR4)*100,4)*VAR3;
庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*VAR3;
DRAWTEXT(CROSS(散户,庄家) AND 散户<30,L-0.05,'低吸'),COLORWHITE;
DRAWTEXT(CROSS(庄家,散户) AND 散户>70,H+0.05,'高减'),COLORYELLOW;
DRAWICON(CROSS(散户,庄家) AND 散户<30,L-0.05,1);
DRAWICON(CROSS(庄家,散户) AND 散户>70,H+0.05,2);
VAR9:=CLOSE-REF(CLOSE,5);
VARA:=EMA(EMA(VAR9,5),5)/EMA(EMA(ABS(VAR9),5),5);
VARC:=EMA(EMA(VAR9,20),20)/EMA(EMA(ABS(VAR9),20),20);
卖出:=IF(VARA>0 AND CROSS(VARC,VARA),90,100);
附:【飞狐关于均线乖离双周期显示副图公式源码】
为了使均线乖离在一个图显示二个周期的乖离情况,便于短长结合分析,而做此指标,当参数N为1时,显示的短周期乖离,调整参数N为2或0时,则显示的长周期均线乖离.而均线的长短则由自己决定.
这里的均线选择仅供参考.
均价:=(C+if(H=C,C,H)+if(L=C,C,L)+O)/4;
AAA:=(WMA(均价,2.5)+WMA(均价,5)+wMA(均价,10)+WMA(均价,20))/4;
lxx:=(REF(AAa,2)+REF(AAa,1)+REF(AAa,0))/3,COLORYELLOW;
AA:=(WMA(均价,5)+WMA(均价,10)+WMA(均价,20)+WMA(均价,30)+WMA(均价,60)+WMA(均价,120))/6;
轴心线:=(REF(AA,10)+REF(AA,5)+REF(AA,0))/3,COLORYELLOW,PRECISION2;
lx:=IF(n=1,lxx,轴心线);
go:=O-lx;
gh:=h-lx;
gl:=l-lx;
gc:=c-lx;
GK:(go+gh+gl+gc)/4,COLORWHITE;
mGK:wMA(GK,3),COLORYELLOW;
mGK3:wMA(MGK,3),COLORMAGENTA;
信号:IF(CROSS(MA(GK,2),0),MA(C,2),0),LINETHICK;
STICKLINE(GC>=GO,GL,GH,0.1,0),COLORRED;
STICKLINE(GC>GO,GO,GC,6,0),COLORRED;
STICKLINE(GC>GO,GO,GC,2,0),COLORCC66FF;
STICKLINE(GC<GO,GO,GC,6,0),COLORAAAA00;
STICKLINE(GC<GO,GO,GC,2,0),COLORFFCCAA;
STICKLINE(GC<GO,GL,GH,0.1,0),COLORCYAN;
变线:0,COLORWHITE;
更多飞狐公式源码相关资讯请关注南方财富网
股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。