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

2011-02-16 11:38:00来源:本站整理浏览:204

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;

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式