通达信量能饱和 副图源码

2017-05-02 16:13:00来源:本站整理浏览:234

量能饱和 副图源码

N:=20;
 SAT:=IF((AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N))*100>100,100,(AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N))*100);
饱和度:=SAT,COLORYELLOW;
 STICKLINE(SAT <=20,0,SAT,6,0),COLORFFFFFF;
 STICKLINE(SAT >20 AND SAT <=50,0,SAT,6,0),COLOR99DD00;
 STICKLINE(SAT >20 AND SAT <=50,0,SAT*0.8,6,0),COLOR88DD22;
 STICKLINE(SAT >20 AND SAT <=50,0,SAT*0.6,6,0),COLOR66AA11;
 STICKLINE(SAT >20 AND SAT <=50,0,SAT*0.4,6,0),COLOR449900;
 STICKLINE(SAT >20 AND SAT <=50,0,SAT*0.2,6,0),COLOR338800;
 STICKLINE(SAT >50 AND SAT <= 80,0,SAT,6,0),COLORFF00FF;
 STICKLINE(SAT >50 AND SAT <= 80,0,SAT*0.8,6,0),COLORFF33FF;
 STICKLINE(SAT >50 AND SAT <= 80,0,SAT*0.6,6,0),COLORFF66FF;
 STICKLINE(SAT >50 AND SAT <= 80,0,SAT*0.4,6,0),COLORFF99FF;
 STICKLINE(SAT >50 AND SAT <= 80,0,SAT*0.2,6,0),COLORFFCCFF;
 STICKLINE(SAT > 80,0,SAT,6,0),COLOR0055FF;
 STICKLINE( SAT > 80,0 ,SAT*1.0,6 ,0 ),COLOR0000FF;
 STICKLINE( SAT > 80,0 ,SAT*0.8,6 ,0 ),COLOR0066FF;
 STICKLINE( SAT > 80,0 ,SAT*0.6,6 ,0 ),COLOR0099FF;
 STICKLINE( SAT > 80,0 ,SAT*0.4,6 ,0 ),COLOR00CCFF;
 STICKLINE( SAT > 80,0 ,SAT*0.2,6 ,0 ),COLOR00FFFF;
攻击线:EMA(饱和度,20),COLORRED,LINETHICK2;
强:80,COLOR55FF99,LINETHICK2;
弱:20,COLORFF5535,LINETHICK2;

通达信量能饱和 副图源码

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式