分析家公式网,提供指标公式,股票软件 用户登录  |  用户 注册

软件名称:[B]康庄之多空MACD,在多空指标的基础上,弄了一个macd[/B]
软件类型:国产软件
运行环境:Win10/Win9X/Win8/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:6.00 KB
官方主页:Home Page
更新时间:2023-02-21 00:04:33
软件简介:

 康庄之多空MACD

在多空指标的基础上,弄了一个macd,仅供参考。

IF(CODETYPE>0)
{
IF( CODETYPE>2 AND CODETYPE <> 6)
{
a="该指标只用于个股和沪深指数。";
RETURN 0;
}
ELSE
{
a=VOL/SHGZG*100;
}
}
ELSE
{
a=MONEY/DPLTSZ*100;
}
换手1:=IF(C>O OR C>PRE OR V>REF(V,1),a,-a);
换手:=(换手1-LLV(换手1,7))/(HHV(换手1,7)-LLV(换手1,7));
C5:=IF(H=C OR L=C OR H=O OR L=O,C*C/REF(C,1),C);
C55:=IF(C<REF(C,1) OR O>C OR V< REF(V,1),-C5,C5);
BB:=(C55-LLV(C55,7))/(HHV(C55,7)-LLV(C55,7))*换手*C;
主导动能:=bb/EMA(bb,7)-1,COLORSTICK;
DIFF:EMA(EMA(主导动能,7)-EMA(主导动能,17),5),coloryellow;
DEA:EMA(DIFF,7),colorgreen;
MACD:=2*(DIFF-DEA);
STICKLINE(MACD>=0,MACD,0,1,0),COLORF00FF0;
STICKLINE(MACD<0,MACD,0,1,0),colorwhite;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,1,0 ),colorgreen;
zero:0,colorwhite,LINETHICK2;
买卖界线:=0.918*EMA(DEA,62),colorliblue,LinetDIFFick2;
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
X1:=IF(DIFF<0,DIFF,0),COLOR0000FF,LINETDIFFICK1;
X2:=IF(DIFF<0,0,DIFF),colormagenta,LINETDIFFICK1;
X3:=IF(DIFF<DEA,DIFF,DEA),COLOR00ff00,linetDIFFick1;
X4:=IF(DIFF>DEA,DIFF,DEA),linetDIFFick1,COLORffbb11;
低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;
//STICKLINE(低位金叉,DEA*0.86,DEA*0.66,6,0),coloryellow;
//DRAWTEXT(低位金叉,DEA*0.26,' 低位金叉'),coloryellow;
//JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=5,21)=1;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DEA,A1+1) AND CROSS(DIFF,DEA);
STICKLINE(底背离,DEA*1.09,DEA*0.86,6,0),Color00FF00;
DRAWLINE(A1=0,DEA,底背离,DEA,0),colorred,linetDIFFick1;
DRAWTEXT(底背离,DEA*1.09,' 底背离'),Color6600FF;
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF);
DRAWLINE(A2=0,DEA,顶背离,DEA,0),colorgreen,linetDIFFick1;
DRAWTEXT(顶背离,DEA*1.2,' 顶背离'),Color00FF00;
零上金叉:=CROSS(DIFF,DEA) AND DIFF>0.101 AND COUNT(JCCOUNT=2,21)=1;
DRAWTEXT(零上金叉,DEA*0.32,' 零上金叉'),colorlired;
低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.18;
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=1,13)=1;
STICKLINE(二次金叉,0,0.06,6,0),COLORFF00FF;
DRAWICON(二次金叉,DEA*0.9,1) ;
DRAWTEXT(二次金叉,DEA*0.42,' 二次金叉'),coloryellow;
A1:=BARSLAST(CROSS(DIFF,dea));
A2:=BARSLAST(CROSS(DEA,DIFF));
a3:=BARSLAST(CROSS(DIFF,DEA),1);
a4:=BARSLAST(CROSS(DEA,DIFF),1);
底背离:= LLV(CLOSE,a2)<REF(LLV(CLOSE,a4-a3),a3) AND LLV(DIFF,a2)>REF(LLV(DIFF,a4-a3),a3) AND CROSS(DIFF,DEA);
STICKLINE(底背离,0,0.03,6,0),COLOR00FF00;
DRAWLINE(REF(CROSS(DIFF,DEA),1),DEA,底背离,DEA,0),colorred,LINETDIFFICK2;
顶背离:= EMA(CLOSE,a1)>REF(EMA(CLOSE,a3-a4),a4) AND EMA(DIFF,a1)<REF(EMA(DIFF,a3-a4),a4) AND CROSS(DEA,DIFF);
DRAWLINE(REF(CROSS(DEA,DIFF),1),DEA,顶背离,DEA,0),colorgreen,LINETDIFFICK2;
DRAWTEXT(低位金叉 AND 二次金叉 AND 底背离,0.85,'三全项'),COLOR0000FF,LINETDIFFICK2;
SELECT 底背离;
三次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=1,21)=1;
STICKLINE(三次金叉,0,0.06,6,0),COLORFF00FF;
DRAWICON(三次金叉,DEA*0.9,1) ;
DRAWTEXT(三次金叉,DEA*0.22,' 三次金叉'),coloryellow;
四次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=3,62)=1;
STICKLINE(四次金叉,0,0.06,6,0),COLORFF00FF;
DRAWICON(四次金叉,DEA*0.9,1) ;
DRAWTEXT(四次金叉,DEA*0.12,' 四次金叉'),coloryellow;
 

[url=http://www.70822.com/soft/sort013/sort036/down-166391.html]康庄之多空MACD,在多空指标的基础上,弄了一个macd[/url]

关于本站 | 网站帮助 | 广告合作 | 声明 | 友情连接 | 网站地图 |
分析家公式网声明:本站所有股票公式软件资料均网上公开收集,如侵权请联系删帖。站内所有广告,均与本站无关!
Copyright © 2003-2024 70822.Com. All Rights Reserved .
页面执行时间:50.78125 毫秒