飞狐发财系列之大红段公式源码是什么?
2016-4-22 15:07:18 股票入门 http://rumen.southmoney.com
飞狐发财系列之大红段公式源码是什么?附:趋势量能飞狐副图指标 源码指标 南方财富网小编为您提供
【飞狐发财系列之大红段公式源码】
MA5:MA(CLOSE,5),pointdot,color000000,linethick1;MA21:=EMA(CLOSE,21);
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">MID:MA(CLOSE,21),color000000,linethick0;
H1:=EMA(SLOPE(CLOSE,34)*20+CLOSE,75);H2:=EMA(CLOSE,8);
Var1d:=H2-H1;a:=(3*c+l+o+h)/6;
b:=(20*a+19*ref(a,1)+18*ref(a,2)+17*ref(a,3)+16*ref(a,4)+15*ref(a,5)+14*ref
(a,6)+13*ref(a,7)+12*ref(a,8)+11*ref(a,9)+10*ref(a,10)+9*ref(a,11)+8*ref
(a,12)+7*ref(a,13)+6*ref(a,14)+5*ref(a,15)+4*ref(a,16)+3*ref(a,17)+2*ref
(a,18)+ref(a,20))/210;d:=ma(b,10);
STICKLINE((MA21 > REF(MA21,1)),MA21,MA21,5,6),LINETHICK2,Color00FFFF;
STICKLINE(C>=MID AND C>=O,C,O,5,0),COLORRED;
STICKLINE(C>=MID
AND C>=O,H,L,0,0),COLORRED;
STICKLINE(C>=MID AND
C<O,C,O,5,1),COLORRED;
STICKLINE(C>=MID AND C<O,O,H,0,0),COLORRED;
STICKLINE(C>=MID AND C<O,C,L,0,0),COLORRED;
STICKLINE(C<MID AND
C>O,C,O,5,1),COLORffff00;
STICKLINE(C<MID AND
C<=O,C,O,5,1),COLORffff00;
STICKLINE(C<MID AND
C<=O,H,L,0,1),COLORffff00;
STICKLINE(C<MID AND
C>O,C,H,0,1),COLORffff00;
STICKLINE(C<MID AND
C>O,O,L,0,1),COLORffff00;
牛熊线:EMA(C,250),CIRCLEDOT,color999999;
x:MA(CLOSE,21),pointdot,color000000;
STICKLINE(C>=x AND
C>=O,C,O,5,0),COLORRED;
STICKLINE(C>=x AND C>=O,H,L,0,0),COLORRED;
STICKLINE(C>=x AND C<O,C,O,5,1),COLORRED;
STICKLINE(C>=x AND
C<O,O,H,0,0),COLORRED;
STICKLINE(C>=x AND C<O,C,L,0,0),COLORRED;
STICKLINE(C<x AND C>O,C,O,5,1),COLORffff00;
STICKLINE(C<x AND
C<=O,C,O,5,1),COLORffff00;
STICKLINE(C<x AND
C<=O,H,L,0,1),COLORffff00;
STICKLINE(C<x AND
C>O,C,H,0,1),COLORffff00;
STICKLINE(C<x AND
C>O,O,L,0,1),COLORffff00;
DRAWTEXT(CROSS(MA5,x),(LOW *
0.99),'买'),COLORWHITE;
附:【趋势量能飞狐副图指标 源码指标】
{趋势量能}
80,POINTDOT,COLOREEEE00;
20,POINTDOT,COLOR32CD32;
N:=5; M:=21;
VARF:=3*SMA((C-LLV(L,13))/(HHV(H,13)-LLV(L,13))*100,5,1)-2*SMA(SMA((C-LLV(L,13))/(HHV(H,13)-LLV(L,13))*100,5,1),3,1);
VARG:=(HHV(HIGH,25)-LLV(LOW,25))/EMA((CLOSE-LLV(LOW,25)),5);
趋势:(VARF-(-VARG)),COLORBB11AA,LINETHICK0;
底部:IF(VARG-VARF,VARG,VARF),COLORGRAY;
STICKLINE(VARF<10,4,1,10,1),COLOR8E236B;
STICKLINE(VARF>90,100,103,10,1),COLORCYAN;
STICKLINE(趋势> REF(趋势,1),趋势,REF(趋势,1),7,0),COLOR0000CC;
STICKLINE(趋势<=REF(趋势,1),趋势,REF(趋势,1),7,0),COLORFF7700;
趋势1:=EMA(VARF,8);
趋势均线:=MA(趋势1,7);
趋势天数:BARSLAST(VARF < 趋势1),COLORBLUE,LINETHICK0;
更多飞狐指标公式相关资讯请关注南方财富网
股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。