公式指标论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

通达信量能饱和 副图源码

2012-10-28 08:20| 发布者: admin| 查看: 48| 评论: 0

量能饱和 副图源码

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;

通达信量能饱和 副图源码


鲜花

握手

雷人

路过

鸡蛋
返回顶部