设为首页加入收藏

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

同花顺熔断MACD副图公式源码是什么?

2016-5-10 13:55:39 股票入门 http://rumen.southmoney.com

同花顺熔断MACD副图公式源码是什么?附:同花顺破天机指标公式  南方财富网小编为您提供


【同花顺熔断MACD副图公式源码】

WRAP: break-word; FONT-SIZE: 14px; FONT-VARIANT: normal; TEXT-TRANSFORM: none; WORD-SPACING: 0px; FONT-WEIGHT: normal; COLOR: rgb(51,51,51); PADDING-BOTTOM: 0px; FONT-STYLE: normal; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; WIDOWS: 1; LETTER-SPACING: normal; LINE-HEIGHT: 24px; PADDING-RIGHT: 0px; TEXT-INDENT: 0px; -webkit-text-stroke-width: 0px">//#@Fname=MACD2
//#@comment=MACD指标说明
//#|MACD指数平滑异同移动平均线为两条长、短的平滑平均线。
//#|其买卖原则为:
//#|1.DIFF、DEA均为正,DIFF向上突破DEA,买入信号参考。
//#|2.DIFF、DEA均为负,DIFF向下跌破DEA,卖出信号参考。
//#|3.DEA线与K线发生背离,行情可能出现反转信号。
//#|4.分析MACD柱状线,由红变绿(正变负),卖出信号参考;由绿变红,买入信号参考。
//#|
//#@control=DIFF:收盘价的 Param#1 天(短期)平滑移动平均值减去 Param#2 
//#|天(长期)平滑移动平均;
//#|DEA:DIFF的 Param#3 天平滑移动平均值;
//#|MACD:2倍的(DIFF-DEA)。
//#|
//#@FuncType=
//#@style=MACD:Line1027,技术指标,1,0,1,2,0;DIFF:Line2,技术指标,1,0,1,0,30059;DEA:Line2,技术指标,1,0,1,0,30063;ZERO:Line0,0;
//#@availperiod=2147430400
//#@param=SHORT=12.0000000001,5.0000000001,40.0000000001,1;LONG=26.0000000001,10.0000000001,200.0000000001,1;M=9.0000000001,2.0000000001,40.0000000001,1;
//#@isDrawCurve=1
//#@Fdesc=MACD
//#@defaultperiod=12293
//#@coord=D
//#@ordinate=0,0.000000;0,0.000000;4,0.000000;0,0.000000;0,0.000000;0;0,0.000000
//#@@FUNCSPEC@=source
rd:=IF(VOL,1,0);
DIFF : EMA(CLOSE,12)*rd- EMA(CLOSE,26)*rd;
DEA  : EMA(DIFF,9)*rd;
MACD : 2*(DIFF-DEA)*rd;
Zero : 0;

附:【同花顺破天机指标公式】

 1、散户

2、游子

3、机构

4、主力

红色持有

 

MID1:=(3*CLOSE+LOW+OPEN+HIGH)/6;

牛线:=(20*MID1+19*REF(MID1,1)+18*REF(MID1,2)+17*REF(MID1,3)+16*REF(MID1,4)+15*REF(MID1,5)+14*REF(MID1,6)+13*REF(MID1,7)+12*REF(MID1,8)+11*REF(MID1,9)+10*REF(MID1,10)+9*REF(MID1,11)+8*REF(MID1,12)+7*REF(MID1,13)+6*REF(MID1,14)+5*REF(MID1,15)+4*REF(MID1,16)+3*REF(MID1,17)+2*REF(MID1,18)+REF(MID1,20))/210,colorgreen;

马线:=MA(牛线,3),colorgreen;

GB:=(C-牛线);

换手:=(V*100/CAPITAL)/100;

主:=MA(换手,5);

大:=MA(换手,12);

中:=MA(换手,34);

散:=MA(换手,55);

均:=(主+大+中+散)/4;

GBB:=(主-散);

GB1:=GB+GBB;

STICKLINE(GB1>=0,2.5,4,8,0),COLOR000099,LINETHICK2;

STICKLINE(GB1<0,2.5,4,8,0),COLOR017700,LINETHICK2;

AA:=MAX(MA(C,60),MA(C,120));

BB:=MIN(MA(C,60),MA(C,120));

成交量:=V,colorgreen,LINETHICK0;

Q:=EMA(V,5);

Q1:=EMA(V,50);

OBV:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),-VOL,0)),0);

OBV1:=EMA(OBV,5);

OBV2:=EMA(OBV,50);

W:=(Q-Q1)*0.0000001;

W1:=(OBV1-OBV2)*0.00000001;

W2:=W+W1;

STICKLINE(W2>=0,0.3,1.8,8,0),COLOR000099,LINETHICK2;

STICKLINE(W2<0,0.3,1.8,8,0),COLOR017700,LINETHICK2;

{R:=0;}

E:=MAX(MA(C,45),MA(C,90));

FF:=MIN(MA(C,45),MA(C,90));

C1:=10000*CLOSE/INDEXC;

O1:=10000*OPEN/INDEXO;

H1:=10000*HIGH/INDEXH;

L1:=10000*LOW/INDEXL;

LL:=IF(L1<C1 AND L1<O1,L1,MIN(C1,O1));

HH:=IF(H1>C1 AND H1>O1,H1,MAX(C1,O1));

A:=EMA(C1,5);

B:=EMA(C1,12);

D:=EMA(C1,30);

XX:=EMA(C1,35);

F:=EMA(C1,7);

均量:=(A+B+D)/3;

VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);

OBV11:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);

MAOBV:=MA(OBV11,30);

MTR:=EMA(EMA(EMA(CLOSE,12),12),12);

TRIX:=(MTR-REF(MTR,1))/REF(MTR,1)*100;

MATRIX:=MA(TRIX,9) ;

MIDA:=CLOSE-MIN(REF(CLOSE,1),LOW);

MIDB:=IF(CLOSE<REF(CLOSE,1),CLOSE-MAX(REF(CLOSE,1),HIGH),0);

WAD:=SUM(IF(CLOSE>REF(CLOSE,1),MIDA,MIDB),0);

MAWAD:=MA(WAD,30);

JB:=(OBV11-MAOBV)*0.000001+(A-XX);

机构:=A-XX;

STICKLINE(机构>=0,-1.9,-0.4,8,0),COLOR000099,LINETHICK2;

STICKLINE(机构<0,-1.9,-0.4,8,0),COLOR017700,LINETHICK2;

J:=MAX(MA(C,30),MA(C,60));

K:=MIN(MA(C,30),MA(C,60));

MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;

DKX:=(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+

16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+

13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+

10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+

7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+

4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210;

MADKX:=MA(DKX,6);

MDD:=(DKX-MADKX)*1.2;

V1:=(C*2+H+L)/4*10;

V2:=EMA(V1,6)-EMA(V1,55);

V3:=EMA(V2,6);

V4:=2*(V2-V3)*5.5;

V5:=(V2-V3)*0.06;

V6:=MDD+V5;

STICKLINE(V6>=0,-4.1,-2.6,8,0),COLOR000099,LINETHICK2;

STICKLINE(V6<0,-4.1,-2.6,8,0),COLOR017700,LINETHICK2;

更多同花顺公式源码相关资讯请关注南方财富网

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