以下是通达信量能饱和 副图源码

量能饱和 副图源码

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;

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。