股资源-股票学习站-学炒股-股票课程-炒股教程-分析选股指标-入门基础知识

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[大智慧] 会变色的MACD,并且有今天和明天的压力和支撑(变色MACD)


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2024-3-22 17:22:26
会变色的MACD,并且有今天和明天的压力和支撑(变色MACD)介绍

会变色的MACD,并且有今天和明天的压力和支撑(变色MACD)

源码:
DIFF:EMA(CLOSE,12) - EMA(CLOSE,26),COLOR00ff00,LINETHICK2;
DEA : EMA(DIFF,9),COLORffffff;
MACD:2*(DIFF-DEA), COLORSTICK,LINETHICK2,COLOR00ffff;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);
STICKLINE(背离,0,1.1,4,0),COLORred;
DRAWLINE(A1=0,DEA,背离,DEA,0),COLOR00FF00;
DRAWTEXT(背离,1.3,' 背离'),COLOR00FFFF,ALIGN1;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,0.5,0),COLORFF3870,LINETHICK2;
STICKLINE(MACD<REF(MACD,1)AND MACD<0,0,MACD,0.5,0),COLORffFF00,LINETHICK2;
STICKLINE(MACD>REF(MACD,1)AND MACD,0,MACD,0.5,0),COLOR00ffff,LINETHICK2;
STICKLINE(MACD>REF(MACD,1)AND MACD>0,0,MACD,0.5,0),COLORRED,LINETHICK2;
FH1:=REF(MACD,1)<REF(MACD,2) AND REF(MACD,2)<REF(MACD,3) AND REF(MACD,3)<REF(MACD,4);
FH2:=MACD>=0 AND COUNT(MACD>REF(MACD,1),1)=1;
FH3:=FH1 AND FH2 AND EMA(C,13)>REF(EMA(C,13),1);
FH4:=FH1 AND FH2 AND ABS((DIFF-DEA)/C)<0.018;
FH5:=FH1 AND FH2 AND MACD<0.10;
YLZC:=if(close=INDEXC,(INDEXC+INDEXh+INDEXl+INDEXO)/4,AMOUNT/(vol+0.01)/100);
阻价:=if(close=INDEXC,YLZC+INDEXC-INDEXl,YLZC+(close-low));
支价:=if(close=INDEXC,INDEXl+INDEXC-YLZC,low+(close-YLZC));
今压力:REF(阻价,1),LINETHICK0,color00ff00;
今支撑:REF(支价,1),LINETHICK0,colorff00ff;
明压力:阻价,LINETHICK0;
明支撑:支价,LINETHICK0,colorffaaff;
0,COLORffffff;
 




 


 



gd13384

回复

举报

QQ|

GMT+8, 2024-11-18 08:46

快速回复 返回顶部 返回列表