软件名称:[B]大智慧MACD修改副图[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/
软件语言:简体中文
授权方式:免费版
软件大小:4.00 KB
官方主页:Home Page
更新时间:2011-04-28 07:40:27
软件简介:
input:
short(45,10,1000),long(90,10,1000),m(20,5,1000);
m5:=ema(indexc,5);
m20:=ema(indexc,20);
mhyear:=ema(indexc,120);
myear:=ema(indexc,240);
DIFF:=EMA(CLOSE,short)-EMA(CLOSE,long);
DEA:=EMA(DIFF,m);
MACD:2*(DIFF-DEA),coloryellow;
STICKLINE(MACD<REF(MACD,1) AND MACD>0 and indexc>m20,0,MACD,4,1),COLORyellow;
STICKLINE(MACD>=REF(MACD,1) AND MACD>0 and indexc>m20 and m5>m20,0,MACD,4,1),COLORred;
STICKLINE(MACD>=REF(MACD,1) AND MACD>0 and (indexc<m20 or m5<m20),0,MACD,4,1),COLORgreen;
STICKLINE(MACD<=REF(MACD,1) AND MACD>0 and indexc<m20,0,MACD,4,1),COLORgreen;
STICKLINE(MACD>REF(MACD,1) AND MACD<0 and mhyear>myear and (m5<m20 OR C<M20),0,MACD,4,1),COLORgreen;
STICKLINE(MACD>REF(MACD,1) AND MACD<0 and mhyear>myear and (m5>=m20 AND C>M20),0,MACD,4,1),COLORYELLOW;
STICKLINE(MACD>REF(MACD,1) AND MACD<0 and mhyear<myear,0,MACD,4,1),COLORgreen;
STICKLINE(MACD<REF(MACD,1) AND MACD<0 and indexc>myear and indexc>m20 and m5>m20,0,MACD,4,1),COLORGREEN;
STICKLINE(MACD<REF(MACD,1) AND MACD<0 and indexc>myear and (indexc<m20 or m5<m20),0,MACD,4,1),COLORgreen;
STICKLINE(MACD<REF(MACD,1) AND MACD<0 and indexc<myear,0,MACD,4,1),COLORgreen;
0,colorwhite;
出现第一根红色柱壮线做个选股预警公式:
M5:=EMA(INDEXC,5);
M20:=EMA(INDEXC,20);
DIFF:=EMA(CLOSE,45)-EMA(CLOSE,90);
DEA:=EMA(DIFF,20);
MACD:=2*(DIFF-DEA);
AA:=MACD>=REF(MACD,1) AND MACD>0 AND INDEXC>M20 AND M5>M20;
XG:CROSS(AA,0.5);
[url=http://www.70822.com/soft/sort013/sort03/down-33208.html]大智慧MACD修改副图[/url]