设为首页加入收藏

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

股票的公式有哪些?飞狐精品能量公式源码

2016-6-15 10:44:36 股票入门 http://rumen.southmoney.com

股票的公式有哪些飞狐精品能量公式源码 附:飞狐低位反转公式源码 南方财富网小编为您提供


【飞狐精品能量公式源码】

主线:MA(SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),-VOL,0)),0),2),LINETHICK2,PRECISION0,colorFF;
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">短期:MA(SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),-VOL,0)),0),21),PRECISION0,colorFFFF;
中期:MA(SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),-VOL,0)),0),55),PRECISION0,colorFFFF00;
长期:MA(SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),-VOL,0)),0),120),PRECISION0,colorFF22;
DRAWICON(CROSS(主线,短期) AND MA(CLOSE,3)>REF(MA(CLOSE,3),1),短期,4);
FILLRGN(主线>短期,主线,短期),colorFFBCFF;
FILLRGN(主线<短期,主线,短期),colorFF2222;
V1:=HHV(主线,0);
DRAWSL(主线=V1[DATACOUNT],主线,0,0,0),colorFFFF;

附:【飞狐低位反转公式源码】

P:=26;S:=12;M:=9;
DIFF :=EMA(CLOSE,S) - EMA(CLOSE,P);
DEA :=EMA(DIFF,M);
MACD :20*(DIFF-DEA),COLORWHITE;
STICKLINE(MACD>=REF(MACD,1) AND MACD>=0,0,MACD,5,0),COLOR0066FF;
STICKLINE(MACD>=REF(MACD,1) AND MACD<0,0,MACD,5,0),COLORWHITE;
STICKLINE(MACD<REF(MACD,1) AND MACD>=0,0,MACD,5,0),COLOR00FF00;
STICKLINE(MACD<REF(MACD,1) AND MACD<0,0,MACD,5,0),COLORFF6600;
LS:=MACD>REF(MACD,1) AND (REF(MACD,1)<=0 OR REF(MACD,1)<=REF(MACD,2));
二浪:=(LS AND MACD>0 AND COUNT(LS,15)>=2)*MACD,STICK,COLORYELLOW,LINETHICK2;
DLS:=MACD<0 AND MACD>REF(MACD,1) AND REF(MACD,1)<ref(MACD,2);
二底:=DLS AND COUNT(DLS,15)>=2,STICK,COLORFF00FF,LINETHICK2;
金叉:=CROSS(MACD,0),STICK,COLORRED,LINETHICK2;
MACD走强:=金叉 OR 二浪>0 OR 二底;
{低位反转}
ZF:=(C/REF(C,1)-1)*100;
低点:LLV(C,3)=LLV(C,10) OR LLV(L,3)=LLV(L,10),COLOR00FF00,POINTDOT;
STICKLINE(低点,0 ,0.5 ,5 ,1 ),COLOR00FF00;
涨:(V>REF(V,1) AND ZF>=2 AND C>O)*0.5,COLORYELLOW,STICK,linethick2;
反转1:(涨>0 AND 低点)*2,COLOR00FF00,linethick2;
反转2:(COUNT(ZF>0,2)=2 AND 低点)*3,COLORWHITE,linethick2;
优选:(反转1>0 OR 反转2>0) AND MACD走强,COLORFF00FF,POINTDOT;
ZZ:=COUNT(优选,7) AND 涨;
追涨:(ZZ AND COUNT(ZZ,2)=1)*5,COLORRED,linethick2;
DRAWICON(优选,0.5,1);

更多股票公式相关资讯请关注南方财富网

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