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;
- 上一篇公式:指数决策指标 (属于均线判断法 加密无时间限制)
- 下一篇公式:【强弱新解】精品短线指标【大智慧2】源码发布