通达信智慧顶底副图 源码

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

智慧顶底】(通达信副图 源码)

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

CS:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
YJD: (EMA(CS,3)-50)*2;
YJD,COLORSTICK;
YJF:MA(YJD,5),COLORYELLOW;
VAR18:=(HIGH+LOW+CLOSE)/3;
VAR19:=(VAR18-MA(VAR18,14))/(0.015*AVEDEV(VAR18,14));
VAR1A:=(VAR18-MA(VAR18,70))/(0.015*AVEDEV(VAR18,70));
VAR1B:=IF(VAR19>=150 AND VAR19<200 AND VAR1A>=150 AND VAR1A<200,-10,0);
VAR1C:=IF(VAR19<=-150 AND VAR19>-200 AND VAR1A<=-150 AND VAR1A>-200,10,0);
VAR1D:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
VAR1E:=100-ABS(VAR1D);
风险2:IF(BARSCOUNT(CLOSE)<13,60,IF(VAR1E<88 AND VAR1D>0,40,60)),COLORCCFFCC,LINETHICK2;
出击2:IF(BARSCOUNT(CLOSE)<13,-60,0-IF(VAR1E<92 AND VAR1D<0,40,60)),COLORF00FF0,LINETHICK2;
风险1:IF(BARSCOUNT(CLOSE)<70,80,IF(VAR1A>=200 AND VAR19>=150,-15,VAR1B)+80),LINETHICK2,COLORCCFF66;
出击1:IF(BARSCOUNT(CLOSE)<70,-80,IF(VAR1A<=-200 AND VAR19<=-150,15,VAR1C)-80),COLORRED,LINETHICK2,;
DRAWTEXT(ISLASTBAR,-80,' 高安全区'),COLORWHITE;
DRAWTEXT(ISLASTBAR,-60,' 安全区'),COLORWHITE;
DRAWTEXT(ISLASTBAR,60,' 风险区'),COLORWHITE;
DRAWTEXT(ISLASTBAR,80,' 高风险区'),COLORWHITE; 


AC73248772.jpg

AC73248772.jpg

回复

使用道具 举报

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

本版积分规则