飞狐资金价量线副图公式源码是什么?
2016-6-2 11:26:53 股票入门 http://rumen.southmoney.com
飞狐资金价量线副图公式源码是什么?附:飞狐自用MACD集合大家之长指标公式 南方财富网小编为您提供
【飞狐资金价量线副图公式源码】
此指标的后两句含有波峰波谷函数系飞飞狐函数,前面指标为通用源码。发此指标仅仅是给大家提供一个思路而已,公式中的参数和EMA等可以根据自己的喜好而调整。我不希望大家生吞活剥地下载指标。而图中的十字星线是后二句用来观察波峰波谷的,可以起提示参考作用,其中的参数也可以调整,十字星线是用来测量天量地量的。
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">
V5:EMA(EMA(AMOUNT,5)/(EMA(C,5)*100000),5),COLORWHITE;
V8:EMA(EMA(AMOUNT,8)/(EMA(C,8)*100000),8),COLORMAGENTA;
V13:EMA(EMA(AMOUNT,13)/(EMA(C,13)*100000),13),COLOR00CCCC;
V21:EMA(EMA(AMOUNT,21)/(EMA(C,21)*100000),21),COLORRED;
V34:EMA(EMA(AMOUNT,34)/(EMA(C,34)*100000),34),COLORCYAN;
V55:EMA(EMA(AMOUNT,55)/(EMA(C,55)*100000),55),COLOR00bb00;
QH:PEAK(V5,34,1),CROSSDOT,COLORFF0080;
QL:TROUGH(V5,72,1),CROSSDOT,COLORGRAY;
附:【飞狐自用MACD集合大家之长指标公式】
集合了大家之长,自己用得MACD,顶背离、底背离均画线和文字标注,有变色和低位金叉及二次金叉,飞狐可以用来选股!
DIF1:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA1:=EMA(DIF1,9);
MACD1:=2*(DIF1-DEA1);MACD2:=EMA(MACD1,3);
STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,8,0),COLOR000055;
STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,5,0),COLOR000077;
STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,3,0),COLOR000099;
STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,1,0),COLOR0000FF;
STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,8,0),COLOR555555;
STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,5,0),COLOR777777;
STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,3,0),COLOR999999;
STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,1,0),COLORFFFFFF;
STICKLINE(MACD1<MACD2,0,MACD1,8,0),COLORB20000;
STICKLINE(MACD1<MACD2,0,MACD1,5,0),COLOREC0000;
STICKLINE(MACD1<MACD2,0,MACD1,3,0),COLORFF4600;
STICKLINE(MACD1<MACD2,0,MACD1,1,0),COLORFFAB00;
STICKLINE(MACD1>=0 OR MACD1<=0,0,0,50,1),COLORWHITE;
低位金叉:=CROSS(DIF1,DEA1) AND DIF1<-0.1;
STICKLINE(低位金叉,0,0.08,6,0),COLORYELLOW;
DRAWTEXT(低位金叉,0.16,' 低位金叉'),COLORWHITE;
JCCOUNT:=COUNT(CROSS(DIF1,DEA1),BARSLAST(DEA1>=0));
二次金叉:=CROSS(DIF1,DEA1) AND DEA1<0 AND COUNT(JCCOUNT=2,21)=1;
STICKLINE(二次金叉,0,0.06,6,0),COLORFF00FF;
DRAWICON(二次金叉,DEA1*0.9,1) ;
DRAWTEXT(二次金叉,0.2,' 二次金叉'),COLORYELLOW;
DIF:DIF1,COLOR33FF33;
DEA:DEA1,COLORYELLOW;
MACD:MACD1,LINETHICK,COLORMAGENTA;
强度:PARTLINE(DIF1>=DEA1,DIF1),COLORRED,LINETHICK2;
A1:=BARSLAST(REF(CROSS(DIF1,DEA1),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND DIF1>REF(DIF1,A1+1) AND CROSS(DIF1,DEA1);
STICKLINE(底背离,0,0.03,6,0),COLOR00FF00;
底背:DRAWLINE(A1=0,DEA1,底背离,DEA1,0),COLORRED,LINETHICK3;
DRAWTEXT(底背离,0.12,' 底背离'),COLORFF00FF;
A2:=BARSLAST(REF(CROSS(DEA1,DIF1),1));
顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIF1,A2+1)>DIF1 AND CROSS(DEA1,DIF1);
顶背:DRAWLINE(A2=0,DEA1,顶背离,DEA1,0),COLORGREEN,LINETHICK3;
更多飞狐公式源码相关资讯请关注南方财富网
股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。