软件名称:[B]MACD股30分[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:5.00 KB
官方主页:Home Page
更新时间:2016-12-28 02:20:35
软件简介:
DIFF : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);
DEA : EMA(DIFF,M);
MACD : 2*(DIFF-DEA);
Zero : 0;
幅度:=INTPART((C-REF(C,1))/REF(C,1)*1000);
涨幅:=INTPART((C-REF(C,1))/REF(C,1)*1000);
跌幅:=-INTPART((C-REF(C,1))/REF(C,1)*1000);
//以下大涨大跌
大涨:=(C-REF(C,1))/REF(C,1)*1000<99.7 AND (C-REF(C,1))/REF(C,1)*1000>=7 ;
DRAWTEXT(大涨 AND DIFF<=0.5 AND DIFF>=-0.5, diff*1.4,涨幅),colorlired;//±10之间在外侧显示,±10之外在内测显示
DRAWTEXT(大涨 AND DIFF>0.5, diff*0.95,涨幅),colorlired;
DRAWTEXT(大涨 AND DIFF<-0.5, diff*0.95,涨幅),colorlired;
大跌:=(C-REF(C,1))/REF(C,1)*1000>-99.7 AND (C-REF(C,1))/REF(C,1)*1000<=-7 ;
DRAWTEXT(大跌 AND DIFF<=0.5 AND DIFF>=-0.5, diff*1.4,幅度),colorcyan;//不能用-幅度,会挤压到一起
DRAWTEXT(大跌 AND DIFF>0.5, diff*0.95,幅度),colorcyan;
DRAWTEXT(大跌 AND DIFF<-0.5, diff*0.95,幅度),colorcyan;
//以下为涨跌停;
涨停:=(C-REF(C,1))/REF(C,1)*100>=9.97;
跌停:=(C-REF(C,1))/REF(C,1)*100<=-9.97;
DRAWTEXT(涨停, diff*1.8,'停'),colorlired;
DRAWTEXT(跌停, diff*1.8,'停'),colorcyan;
//以下MACD面积
MACDB:=2*(DIFF-DEA),COLORSTICK;
BV:=SUM(MACDB,0);
BA:=IF(MAX(BV,REF(BV,2))<REF(BV,1) OR MIN(BV,REF(BV,2))>REF(BV,1),1,0);
BC:=BARSLAST(BA)+1;
SMACD:=BV-REF(BV,BC);
VAR3:=IF(MACDB>0,HHV(ABS(MACDB),BC),LLV(MACDB,BC));
VAR4:=(MACDB)/20;
面积1:=ROUND(SMACD*100),NODRAW;
面积:SMACD*100,NODRAW;
DRAWNUMBER(REF(VAR4,1)>0 AND VAR4<=0 AND REF(面积1,1)>=20,REF(VAR3,1)*0.9,REF(面积1,1)),colorred;
//加面积>20显示
DRAWNUMBER(REF(VAR4,1)<0 AND VAR4>=0 AND REF(面积1,1)<=-20
AND REF(面积1,1)>-9000,REF(VAR3,1)*0.9,REF(ABS(面积1),1)),Color00ff00;
DRAWNUMBER(REF(VAR4,1)<0 AND VAR4>=0 AND REF(面积1,1)<-9000
,REF(VAR3,1)*0.9,REF(ABS(面积1),1)),colorcyan;
DRAWNUMBER(ISLASTBAR AND VAR4<0,REF(VAR3,1)*0.9,ABS(面积1)),Color004A00;
//ISLASTBAR表示是否是最后一个周期
DRAWNUMBER(ISLASTBAR AND VAR4>0,REF(VAR3,1)*0.9,面积1),colorred;
M1:=REF(MACDB,1);
STICKLINE(MACDB>0 AND MACDB<=M1,0,MACDB,0,0),coloryellow;
STICKLINE(MACDB<0 AND MACDB>=M1,0,MACDB,0,0),colorwhite;
IF(DIFF>=REF(DIFF,1),DIFF,DRAWNULL),colorgreen,LINETHICK2;
[url=http://www.70822.com/soft/sort013/sort036/down-106516.html]MACD股30分[/url]