以下是通达信量天尺副图指标源码贴图测顶测底
VAR1:=(HIGH+LOW+CLOSE)/3;
VAR2:=(VAR1-MA(VAR1,14))/(0.015*AVEDEV(VAR1,14));
VAR3:=(VAR1-MA(VAR1,70))/(0.015*AVEDEV(VAR1,70));
VAR4:=IF(VAR2>=150 AND VAR2<200 AND VAR3>=150 AND VAR3<200,100,IF(VAR2<=-150 AND VAR2>-200 AND VAR3<=-150 AND VAR3>-200,-100,0));
VAR5:=IF(VAR2>=150 AND VAR2<200 AND VAR3>=150 AND VAR3<200,100,0);
VAR6:=IF(VAR2<=-150 AND VAR2>-200 AND VAR3<=-150 AND VAR3>-200,-100,0);
IF(VAR2>=200,200,IF(VAR2<=-200,-200,VAR4));
测顶: 0-IF(VAR3>=200,200,VAR5)+400;
测底: 0-IF(VAR3>=200,0,IF(VAR3<=-200,-200,VAR6))-400;
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)