设为首页加入收藏

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

大智慧K线上运用MACD+BOLL公式源码 大智慧指标公式大全

2015-11-2 9:03:42 股票入门 http://rumen.southmoney.com

大智慧K线上运用MACD+BOLL公式源码 大智慧指标公式大全 南方财富网小编为您带来最新的大智慧指标公式

WRAP: break-word; WHITE-SPACE: normal; COLOR: rgb(51,51,51); WORD-SPACING: 0px; PADDING-TOP: 0px; -webkit-text-stroke-width: 0px">DRAWGBKlast(c>0,strip(RGB(0,0,0),RGB(0,0,50),0));
{MACD+K线+BOLL}
CC:=FORCAST(C,3); OO:=FORCAST(O,3); HH:=FORCAST(H,3); LL:=FORCAST(L,3);
SHORT:=12; LONG:=26; M:=9;
{1.MACD}
DIFF:=EMA(CC,SHORT) - EMA(CC,LONG);
DEA:=EMA(DIFF,M);
MACD:WMA((DIFF-DEA),3)*4;
partline(MACD,MACD>=ref(MACD,1),rgb(255,0,0),MACD<ref(MACD,1),rgb(0,255,0)),linethick2,layer0;
{STICKLINE(MACD>0 AND MACD>REF(MACD,1),MACD,0,0,0),Color0000FF,LAYER0;
STICKLINE(MACD>0 AND MACD<REF(MACD,1),MACD,0,0,0),Color00FF00,LAYER0;
STICKLINE(MACD<0 AND MACD>REF(MACD,1),MACD,0,0,0),Color0000FF,LAYER0;
STICKLINE(MACD<0 AND MACD<REF(MACD,1),MACD,0,0,0),Color00FF00,LAYER0;}
{2.MACD的线}
{差可能是正,是负-----相当与DIFF}
DC:=WMA(CC,SHORT/2)-WMA(CC,LONG/2); {收盘价的DIFF}
DK:=WMA(OO,SHORT/2)-WMA(OO,LONG/2); {开盘价的DIFF}
DH:=(WMA(HH,SHORT/2)-WMA(HH,LONG/2))*1.25; {最高价的DIFF}
DL:=(WMA(LL,SHORT/2)-WMA(LL,LONG/2))*1.25; {最低价的DIFF}
{MACD:收阳K线 -------收盘的DIFF>开盘的DIFF--------}
STICKLINE(DC>=DK,DH,DC,1,0),COLOR0099FF,LAYER4;
STICKLINE(DC>=DK,DL,DK,1,0),COLOR0099FF,LAYER4;
STICKLINE(DC>=DK,DC,DK,7,0),COLOR0F33AA,LAYER0;
STICKLINE(DC>=DK,DC,DK,5,0),COLOR0F55AA,LAYER0;
STICKLINE(DC>=DK,DC,DK,3,0),COLOR0F77CC,LAYER0;
STICKLINE(DC>=DK,DC,DK,1,0),COLOR0F99DD,LAYER0;

[1] [2] [3] [4] 下一页

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