公式指标论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

macd指标上标注近期最高值和最低值!!!附公式源码

2018-12-29 01:30| 发布者: admin| 查看: 20| 评论: 0

macd指标上标注近期最高值和最低值!!!附公式源码

INPUT:LONG(26,20,100),SHORT(12,5,40),m(9,2,60);
DIFF : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);
DEA : EMA(DIFF,M);
MACD : 2*(DIFF-DEA), COLORSTICK;
高:=HHVALL(DIFF);
低:=LLVALL(DIFF);
DRAWTEXT(FILTER( 高=DIFF ,高) ,DIFF*1.2,' DIFF高值:'+NUMTOSTRN(高,2)+'→'),LAYER0,ALIGN2 ,color00ffff;
DRAWTEXT(FILTER( 低=DIFF ,低) ,DIFF*0.9,'← '+NUMTOSTRN(低,2)+':DIFF低值'),LAYER0 ,color00ff00;
VERTLINE(高=DIFF,2 ),LAYER7,color001199;
VERTLINE(低=DIFF,2 ),LAYER7,color005500;


鲜花

握手

雷人

路过

鸡蛋
返回顶部