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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 「指标」MACD建仓买点副图/选股预警 源码 通达信 贴图


    [-----复制链接-----]

22万

主题

22万

帖子

14

精华

积分
11042
楼主
2023-12-31 23:09:38
【资料名称】:MACD建仓买点副图/选股预警 源码 通达信 贴图介绍
【资料描述】:

MACD建仓买点副图/选股预警 源码 通达信 贴图

MACD建仓买点副图/选股预警 源码 通达信 贴图

M:=7;

M1:=3;

DIFF:= EMA(CLOSE,12)-EMA(CLOSE,26);

DIF:EMA(CLOSE,12)-EMA(CLOSE,26),COLORRED;

LC:=REF(CLOSE,1);

RSI5:=((SMA(MAX((CLOSE-LC),0),5,1)/SMA(ABS((CLOSE-LC)),5,1))*100);

DEA:EMA(DIF,9),COLORBLUE;

MACD:2*(DIF-DEA),COLORSTICK;

TR1:=SUM(MAX(MAX((HIGH-LOW),ABS((HIGH-REF(CLOSE,

1)))),ABS((LOW-REF(CLOSE,1)))),10);

HD:=(HIGH-REF(HIGH,1));

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;

LD:=(REF(LOW,1)-LOW);

DMP:=SUM(IF(((HD>0) AND (HD>LD)),HD,0),10);

DMM:=SUM(IF(((LD>0) AND (LD>HD)),LD,0),10);

FH3:=FH1 AND FH2 AND EMA(C,13)>REF(EMA(C,13),1);

FH4:=FH1 AND FH2 AND ABS((DIF-DEA)/C)<0.018;

FH5:=FH1 AND FH2 AND MACD<0.10;

PDI:=((DMP*100)/TR1);

MDI:=((DMM*100)/TR1);

VV:=CLOSE>OPEN AND MA(CLOSE,5)>MA(CLOSE,10) AND MA(CLOSE,10)>MA(CLOSE,

30) AND DIFF>DEA AND MACD>REF(MACD,1) AND DIFF>0 AND DEA>0 AND MA(VOL,

5)>MA(VOL,34) AND MA(CLOSE,30)>=REF(MA(CLOSE,30),1);

ADX:=MA(((ABS((MDI-PDI))/(MDI+PDI))*100),5);

AV:=(RSI5+ADX);

佛手:IF(VV,1,0),NODRAW;

DRAWICON(佛手,0.06,11);

二次翻红:(FH3 OR FH4 OR FH5),COLORRED,NODRAW;

DXR:=(((ADX+REF(ADX,5))/2)+RSI5);

WR10:=((100*(HHV(HIGH,10)-CLOSE))/(HHV(HIGH,10)-LLV(LOW,10)));

低买:CROSS(DIF,DEA) AND DIF<0,COLORFF00FF,NODRAW;

加油:CROSS(DIF,DEA) AND DIF>0,COLORYELLOW,NODRAW;

NEWVOL:=(RSI5-WR10);

最佳买入:=(AV+NEWVOL);

DRAWICON(二次翻红,-0.05,1);

DRAWTEXT(二次翻红,-0.15,'翻红'),COLORRED;

买入选股:IF(CROSS(最佳买入,0),3,0),STICK,COLOR00FFFF,LINETHICK2;

VARA1:=SMA(买入选股,3,1);

DRAWTEXT(CROSS(DIF,DEA) AND DIF<0,DEA-0.02,'低买'),COLORFF00FF;

DRAWTEXT(CROSS(DIF,DEA) AND DIF>0,DEA-0.05,'加油'),COLORYELLOW;

XG:二次翻红 OR 低买 OR 加油,NODRAW;

VARA2:=SMA(VARA1,3,1),COLOR0000FF;

VARA3:=SMA(VARA2,3,1),COLOR00FFFF;

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));

建仓买点:IF(CROSS(VARA2,VARA3) AND (VARA2<40),3,0* 10000),COLOR0000FF,LINETHICK1;

今压:REF(阻价,1),LINETHICK0,COLORAA11BB,NODRAW;

今撑:REF(支价,1),LINETHICK0,COLOR009900,NODRAW;

STICKLINE(建仓买点,0,1.0,6,0),COLORFF80FF;

STICKLINE(建仓买点,0.5,2.0,2,0),COLOR3000FF;

明压:阻价,LINETHICK0,NODRAW;

明撑:支价,LINETHICK0,NODRAW;


 










gd61747


【下载地址隐藏】:                    点:回复可见地址
游客,如果您要查看本帖隐藏内容请回复






上一篇:「指标」换手率副图指标 温和放量和换手率异动变色提示 源码 通达信
下一篇:「指标」机会风险系数副图指标 源码 通达信 源码
回复

举报

QQ|

GMT+8, 2024-11-24 08:28

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