设为首页加入收藏

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

飞狐交易师利多方舟公式源码是什么?

2016-5-13 13:37:28 股票入门 http://rumen.southmoney.com

飞狐交易师利多方舟公式源码是什么?附:飞狐黄金折返点位指标公式  南方财富网小编为您提供


【飞狐交易师利多方舟公式源码】

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">DRAWGBK(DATE>900101,COLORRGB(95,95,95),COLORRGB(0,0,0),1);
a:=BARPOS; a1:=SYSPARAM(1); a2:=SYSPARAM(2); a3:=SYSPARAM(3);
tt:=BARPOS=SYSPARAM(2);
hh:=SYSPARAM(4); ll:=SYSPARAM(5);
换手率:=100*v/capital,colorfffFff;
RH:=H-L;
R:=DYNAINFO(13)*100;
DRAWTEXT(TT,hh,                  当日振幅:+NUMTOSTR(R,2)+%   +NUMTOSTR(RH,2)+元 +  当前换手率:+NUMTOSTR(换手率,2)+%  ),ColorFFFFFF,pxdn10,align4;
DRAWTEXT(TT,hh,代码:+STKLABEL),ColorFFFFFF,pxdn10,align4;
DRAWTEXT(TT,hh,  所属板块:+SELFSTRING(所属板块)),colorffffff,pxdn40,align4;
DRAWTEXT(TT,hh,  机构评级:+selfstring(评级)),coloryellow,pxdn70,align4;
反压线:HHV(FORCAST(C,10),18),coloree8fff,linethick1;
Ab:MA(C,5),ColorFFFfff,linethick1;
Ac:MA(C,10),Color00Ffff,linethick1;
Ae:MA(C,21),Colorff00ff,linethick1;
A4:MA(C,30),Color00ff00,linethick1;
A5:MA(C,60),Color208fff,linethick1;
A6:MA(C,90),Color00ff00,linethick0;
A7:MA(C,120),Color00Ffff,linethick0;
A8:MA(C,240),Color00ff00,linethick0;
指导线: EMA((EMA(C,4)+EMA(C,6)+EMA(C,12)+EMA(C,24))/4,2),linethick0,ColorFFffFF;
界: MA(CLOSE,21),linethick0,Color00FFFF;
上限: 界+3*STD(C,20),linethick0,Color00FFFF;
卖: 界+2*STD(C,20),linethick0,ColorFF00FF;
买: 界-2*STD(C,20),linethick0,ColorF0FF00;
下限: 界-2.9*STD(close,20),linethick0,Color00FF00;
DRAWICON(((c>界 and 指导线>界 and cross(界,l))),l,8),ALIGN0,pxdn0;
DRAWTEXT(((c>界 and 指导线>界 and cross(指导线,界))),l,买点),ALIGN0,pxdn20;
DRAWTEXT(((c>界 and 指导线>界 and cross(指导线,界))),l,⊕),ALIGN0,pxdn5,Colorffffff;
DRAWICON(cross(H,上限),h,10),ALIGN0,pxup0;
DRAWICON(cross(上限,H),h,9),ALIGN0,pxup0;
DRAWICON((h>上限 and cross(h,上限)),h,12),ALIGN0,pxup0;
DRAWTEXT(cross(H,上限),H, ̄),ALIGN0,pxup0,Color00ffff;
DRAWICON((h>卖 and cross(上限,H)),h,9),ALIGN0,pxup0;
DRAWTEXT(cross(上限,H),H, ̄),ALIGN0,pxup0,Colorff00ff;
DRAWTEXT(cross(下限,L),l,限),ALIGN0,pxdn5,Color00ff00;
DRAWTEXT(cross(下限,L),l, ̄),ALIGN0,pxdn5,Color00ff00;
DRAWTEXT(cross(买,L),l,△),ALIGN0,pxdn5,Colorffff00;
DRAWTEXT(cross(买,L),l, ̄),ALIGN0,pxdn5,Colorffff00;
DRAWTEXT(cross(买,C),L,▲),ALIGN0,pxdn5,Colorffff00;
DRAWTEXT(cross(买,C),L, ̄),ALIGN0,pxdn5,Colorffff00;
年:MA(CLOSE,26),color00ff00,LINETHICK0;
STICKLINE(C>=年 AND C>=O,C,O,7,0),COLOR0000aa;
STICKLINE(C>=年 AND C>=O,C,O,5,0),COLOR0000cc;
STICKLINE(C>=年 AND C>=O,C,O,3,0),COLOR0000ee;
STICKLINE(C>=年 AND C>=O,C,O,1,0),COLORRED;
STICKLINE(C>=年 AND C>=O,H,L,0,0),COLORRED;
STICKLINE(C>=年 AND C<O,C,O,7,0),COLOR0000aa;
STICKLINE(C>=年 AND C<O,C,O,5,0),COLOR0000cc;
STICKLINE(C>=年 AND C<O,C,O,3,0),COLOR0000ee;
STICKLINE(C>=年 AND C<O,C,O,1,0),COLORRED;
STICKLINE(C>=年 AND C<O,O,H,0,0),COLORRED;
STICKLINE(C>=年 AND C<O,C,L,0,0),COLORRED;
STICKLINE(C<年 AND C>O,C,O,7,0),COLORaaaa00;
STICKLINE(C<年 AND C>O,C,O,5,0),COLORcccc00;
STICKLINE(C<年 AND C>O,C,O,3,0),COLOReeee00;
STICKLINE(C<年 AND C>O,C,O,1,0),COLORffff00;
STICKLINE(C<年 AND C<=O,C,O,7,0),COLORaaaa00;
STICKLINE(C<年 AND C<=O,C,O,5,0),COLORcccc00;
STICKLINE(C<年 AND C<=O,C,O,3,0),COLOReeee00;
STICKLINE(C<年 AND C<=O,C,O,1,0),COLORffff00;
STICKLINE(C<年 AND C<=O,H,L,0,0),COLORffff00;
STICKLINE(C<年 AND C>O,C,H,0,0),COLORffff00;
STICKLINE(C<年 AND C>O,O,L,0,0),COLORffff00;

VAR1:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));
VAR2:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));
VAR3:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34));
DRAWTEXT(CROSS(VAR2,MA(VAR3,6)),L ,B),color208fFF,ALIGN0,pxdn5;
DRAWtext(CROSS(h,年) and CROSS(VAR2,MA(VAR3,6)),l,B),coloryellow,ALIGN0,pxdn5;
DRAWtext(CROSS(年,l) and c<=年,h,S),colorgreen,ALIGN0,pxup25;
dp:=if(c=INDEXC,0,1);
gj:=AMOUNT/v/100;
明日阻力:=l+(gj-l)+(c-l);
明日支撑:=l+(c-gj);
今日阻力:=REF(明日阻力 , 1);
今日支撑:=REF(明日支撑 , 1);{
STICKLINE(a1 and dp=1 and c>=今日阻力,今日阻力,今日阻力,30,0),Color0000FF;
STICKLINE(a1 and dp=1 and c<今日阻力,今日阻力,今日阻力,30,0),Color00FF00;
STICKLINE(a1 and dp=1 and c>=今日支撑,今日支撑,今日支撑,30,0),ColorFF00FF;
STICKLINE(a1 and dp=1 and c<今日支撑,今日支撑,今日支撑,30,0),ColorFF0000;}
DRAWTEXT(TT,hh,  今日支撑=:+NUMTOSTR(今日支撑 ,2 )),ColorFF00FF,pxdn100,align4;
DRAWTEXT(TT,hh,  明日支撑=:+NUMTOSTR(明日支撑 ,2 )),Color00FFFF,pxup127,align3;
DRAWTEXT(TT,hh,  今日阻力=:+NUMTOSTR(今日阻力 ,2 )),ColorFFFF00,pxdn127,align4;
DRAWTEXT(TT,hh,  明日阻力=:+NUMTOSTR(明日阻力 ,2 )),Color00FF00,pxup100,align3;
DD:=FINANCE( 1);
SS:=FINANCE( 7);
FF:=FINANCE(18);
GG:=FINANCE(33);
zz:=FINANCE(53);
JJ:=FINANCE(40);
MM:=JJ/SS;
HH:=DYNAINFO(39);
DRAWTEXT(barpos=SYSPARAM(2),H,总股本:(+NUMTOSTR(DD,0)+万股) + 流通A股:(+NUMTOSTR(SS,0)+万股)+ 市盈率:+NUMTOSTR(HH,2)+%+  每股收益:+NUMTOSTR(GG,3)+ 主营业务增长率:+NUMTOSTR(zz,2)+%+ 经营现金流量+NUMTOSTR(MM,2)),COLORbbffff,,ALIGN5,pxdn5;

附:【飞狐黄金折返点位指标公式】

N:=SYSPARAM(3)-SYSPARAM(1);

A:=BACKSET(ISLASTBAR,HHVBARS(H,N)+1);

B:=COUNT(A,N)=1;

前高:IF(N>0,REF(H,BARSLAST(B)),0),COLORWHITE;

A2:=BACKSET(ISLASTBAR,LLVBARS(L,N)+1);

B2:=A2>REF(A2,1);

前低:REF(L,BARSLAST(B2)),COLORWHITE;

hh:= 前高;

ll:= 前低;

HL:=hh-ll;

wH := BARSlast(H=hh);

wL :=BARSlast(L=ll);

KK := wH-wL;

{a1 :=if(kk<0,hh- HL*0.236,ll+HL*0.236);}

a2 :=if(kk<0,hh- HL*0.382,ll+HL*0.382);

a3 :=if(kk<0,hh- HL*0.618,ll+HL*0.618);

F3:A2,COLORGREEN,LINETHICK;

F5:A3,COLORYELLOW,LINETHICK;

mHL:= hh-HL*0.5;

A := islastbar;

DRAWTEXT(A and K<>3 ,HH, '  最高价:'+NUMTOSTR(HH,3)),ALIGN2,colorgreen;

DRAWTEXT(A and K<>3 ,LL, '  最低价:'+NUMTOSTR(ll,3)),ALIGN2,,colorgreen;

{DRAWTEXT(A and K<>3 ,mHL,'  50%:'+NUMTOSTR(mHL,3)),ALIGN2,colorred;}

{DRAWTEXT(A  and K=1, a1, '  0.236:'+NUMTOSTR(a1,3)),ALIGN2,colorgreen;}

DRAWTEXT(A  and K=1, a2, '  ☆F3☆:'+NUMTOSTR(a2,3)),ALIGN2,colorgreen;

DRAWTEXT(A  and K=1, a3, '  ☆F5☆:'+NUMTOSTR(a3,3)),ALIGN2,colorred;

 

DRAWTEXT(A and K<>3,HH, '  ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄'),ALIGN2,colorred,linethick7;

DRAWTEXT(A and K<>3,LL, '  ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄'),ALIGN2,colorred,linethick7;

{DRAWTEXT(A and K<>3,mHL,'  ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄'),ALIGN2,colorwhite,linethick7;}

{DRAWTEXT(A  and K=1,a1,'  ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄'),ALIGN2,colorblue,linethick7;}

DRAWTEXT(A and K=1 , a2, ' ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄'),ALIGN2,colorblue,linethick7;

DRAWTEXT(A  and K=1, a3, ' ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄'),ALIGN2,colorYELLOW,linethick7;

MA3X3:MA(CLOSE,3),SHIFT3,colorgreen,linethick1;

STICKLINE(C>=O,C,O,8,0),COLOR0000AA;

STICKLINE(C>=O,C,O,6,0),COLOR0000bb ;

STICKLINE(C>=O,C,O,4,0),COLOR0000cc ;

STICKLINE(C>=O,C,O,2,0),COLOR0000ee;

STICKLINE(C>=O,H,L,0,0),COLOR0000ff;

STICKLINE(C<=O,C,O,8,0),Color7B7b00;

STICKLINE(C<=O,C,O,6,0),Color909000;

STICKLINE(C<=O,C,O,4,0),ColorA8a800;

STICKLINE(C<=O,C,O,2,0),COLORcece00;

STICKLINE(C<=O,H,L,0,0),COLORffff00;

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

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