飞狐dmi副图指标
原理解析:
输出龙:如果(收盘价/1日前的收盘价-1)*100>=5ANDC>开盘价*1.04,返回20,否则返回0,COLORFF00FF,POINTDOT
LTSJ赋值:上次龙距今天数
输出回头:如果LTSJ=3 OR 统计5日中满足收盘价=4 OR 统计6日中满足收盘价=5
TDDF赋值:(5日内最高价的最高值/最低价-1)*100>大单频率 OR (7日内最高价的最高值/最低价-1)*100>大单频率
输出超跌:如果LXXDANDTDDFANDC收盘价的30日简单移动平均 AND 收盘价的20日简单移动平均>收盘价的30日简单移动平均
输出优选:如果超跌ANDWR=5 AND C>O*1.04,20,0),COLORFF00FF,POINTDOT;
LTSJ:=BARSLAST(龙);
回头:IF(LTSJ=3 OR COUNT(C=4 OR COUNT(C=5;
TDDF:=(HHV(H,5)/L-1)*100>DDF OR (HHV(H,7)/LOW-1)*100>DDF;
超跌:IF(LXXD AND TDDF AND CMA(CLOSE,30) AND MA(CLOSE,20)>MA(CLOSE,30);
优选:IF(超跌 AND WR<0 AND DXDT AND 回头,50,0),COLOR00FF00,LINETHICK2;
{以下设置副图显示方式}STICKLINE(龙,0,20,4,0),COLORFF00FF;
STICKLINE(回头,0,10,2,0),COLORFF6600;
STICKLINE(WR<0,WR,0,2,0),COLORYELLOW;
STICKLINE(WR<-10,WR,-10,3,0),COLORWHITE;
DRAWTEXT(优选,45,低◆买),COLOR00FF00;
DRAWICON(优选,5,1);