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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[大智慧] MACD与斐波那契周期(副图)


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2024-3-16 17:59:36
MACD与斐波那契周期(副图)介绍

MACD与斐波那契周期(副图)

DIFF : EMA(CLOSE,12) - EMA(CLOSE,26);
DEA : EMA(DIFF,9);
MACD : 2*(DIFF-DEA), COLORSTICK;

S1:=last(BARSLAST(CROSS(DEA,DIFF)) and DIFF<DEA);
S2:=last(BARSLAST(CROSS(DIFF,DEA)) and DIFF>DEA);
drawtext(S1=1,DIFF,STR(S1)),color0000ff,LINETHICK1,align1,valign0;
drawtext(S1=3,DIFF,STR(S1)),color0000ff,LINETHICK1,align1,valign0;
drawtext(S1=5,DIFF,STR(S1)),color0000ff,LINETHICK1,align1,valign0;
drawtext(S1=8,DIFF,STR(S1)),color0000ff,LINETHICK1,align1,valign0;
drawtext(S1=13,DIFF,STR(S1)),color0000ff,LINETHICK1,align1,valign0;
drawtext(S1=21,DIFF,STR(S1)),color0000ff,LINETHICK1,align1,valign0;
drawtext(S1=26,DIFF,STR(S1)),color0000ff,LINETHICK1,align1,valign0;
drawtext(S1=29,DIFF,STR(S1)),color0000ff,LINETHICK1,align1,valign0;
drawtext(S1=34,DIFF,STR(S1)),color0000ff,LINETHICK1,align1,valign0;
drawtext(S1=55,DIFF,STR(S1)),color0000ff,LINETHICK1,align1,valign0;
drawtext(S1=68,DIFF,STR(S1)),color0000ff,LINETHICK1,align1,valign0;


drawtext(S2=1,DIFF *1.,STR(S2)),color00ff00,LINETHICK1,align1,valign2;
drawtext(S2=3,DIFF *1.,STR(S2)),color00ff00,LINETHICK1,align1,valign2;
drawtext(S2=5,DIFF *1.,STR(S2)),color00ff00,LINETHICK1,align1,valign2;
drawtext(S2=8,DIFF *1.,STR(S2)),color00ff00,LINETHICK1,align1,valign2;
drawtext(S2=13,DIFF *1.,STR(S2)),color00ff00,LINETHICK1,align1,valign2;
drawtext(S2=21,DIFF *1.,STR(S2)),color00ff00,LINETHICK1,align1,valign2;
drawtext(S2=26,DIFF *1.,STR(S2)),color00ff00,LINETHICK1,align1,valign2;
drawtext(S2=29,DIFF *1.,STR(S2)),color00ff00,LINETHICK1,align1,valign2;
drawtext(S2=34,DIFF *1.,STR(S2)),color00ff00,LINETHICK1,align1,valign2;
drawtext(S2=55,DIFF *1.,STR(S2)),color00ff00,LINETHICK1,align1,valign2;
drawtext(S2=68,DIFF *1.,STR(S2)),color00ff00,LINETHICK1,align1,valign2;


 






gd32976

回复

举报

QQ|

GMT+8, 2024-11-16 17:49

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