通达信买卖+警示副图 源码

[复制链接]
查看102 | 回复0 | 2022-7-24 08:58:18 | 显示全部楼层 |阅读模式

买卖+警示(通达信副图 源码)

{牛牛指标网提供:www.tdx001.com}

0;20;50;80;100;
VAR1:100-100*(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,5)-LLV(LOW,5))COLORRED,LINETHICK2;
VAR2:SMA(VAR1,5,1),COLOR00FF00;
DRAWBAND(VAR1,RGB(200,0,200),VAR2,RGB(0,150,0));
DRAWTEXT(ISLASTBAR,20,' 底部区'),COLORWHITE;
DRAWTEXT(ISLASTBAR,80,' 风险区'),COLORWHITE;
DRAWTEXT(ISLASTBAR,105,' 顶部警示'),COLORWHITE;
DRAWTEXT(ISLASTBAR,-5,' 底部警示'),COLORWHITE;
STICKLINE(VAR1>=80,102,110,4,0),COLOR00FFFF;
STICKLINE(VAR1<20,-2,-10,4,0),COLORRED;
STICKLINE(CROSS(VAR1,VAR2),20,40,0.25,0),COLORRED;
STICKLINE(CROSS(VAR2,VAR1),60,80,0.25,0),COLORGREEN;
DRAWICON(CROSS(VAR1,VAR2),40,23);
DRAWICON(CROSS(VAR2,VAR1),60,18);
STICKLINE(CROSS(VAR1,20),0,15,0.25,0),COLORFF00FF;
DRAWICON(CROSS(VAR1,20),13,13);
STICKLINE(CROSS(80,VAR1),100,85,0.25,0),COLORGREEN;
DRAWICON(CROSS(80,VAR1),83,14);

0D75723883.jpg

0D75723883.jpg

 

回复

使用道具 举报

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

本版积分规则