量能饱和 (副图 源码)

[复制链接]
查看25 | 回复0 | 2022-7-11 13:00:17 | 显示全部楼层 |阅读模式
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;

201062610223225343.png

201062610223225343.png

201062610225045283.rar

3.25 KB, 下载次数: 0

售价: 1 金钱  [记录]  [购买]

201062610225045283.rar

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则