通达信背离技术副图指标公式源码分享

VAR0:=(EMA(CLOSE,12) - EMA(CLOSE,26));
VAR1:=EMA(VAR0,9);
VAR2:=(2 * (VAR0 - VAR1));
VAR3:=((LLV(LOW,21) = LOW) AND NOT((LLV(VAR1,21) = VAR1)));
VAR4:=((HHV(HIGH,21) = HIGH) AND NOT((HHV(VAR1,21) = VAR1)));
VAR5:=(100 * (CLOSE - MA(CLOSE,21)));
VAR6:=EMA(VAR5,4);
VAR7:=((LLV(LOW,45) = LOW) AND NOT((LLV(VAR6,45) = VAR6)));
VAR8:=((HHV(HIGH,21) = HIGH) AND NOT((HHV(VAR6,21) = VAR6)));
VAR9:=(((HIGH + LOW) + CLOSE) / 3);
VAR10:=((VAR9 - MA(VAR9,14)) / (0.015 * AVEDEV(VAR9,14)));
VAR11:=((LLV(LOW,55) = LOW) AND NOT((LLV(VAR10,55) = VAR10)));
顶背:((HHV(HIGH,55) = HIGH) AND NOT((HHV(VAR10,55) = VAR10)));
VAR12:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);
VAR13:=SMA(VAR12,3,1);
VAR14:=SMA(VAR13,3,1);
VAR15:=((3 * VAR13) - (2 * VAR14));
VAR16:=(VAR15 < 0);
VAR17:=(HIGH - MA(HIGH,7));
VAR18:=(LOW - MA(LOW,7));
VAR19:=(CLOSE - MA(CLOSE,7));
VAR20:=IF((VAR19 >= 0),(VAR17 * 100),(VAR18 * 100));
VAR21:=(((LLV(LOW,144) = LOW) AND NOT((LLV(VAR20,144) = VAR20))) AND VAR16);
顶背离:(((((HHV(HIGH,144) = HIGH) AND NOT((HHV(VAR20,144) = VAR20))) AND (HHV(HIGH,55) = HIGH)) AND NOT((HHV(VAR10,55) = VAR10))) AND VAR8),LINETHICK2,COLORGREEN;
VAR22:=SMA(((3 * SMA((((CLOSE - LLV(LOW,30)) / (HHV(HIGH,30) - LLV(LOW,30))) * 100),5,1)) - (2 * SMA(SMA((((CLOSE - LLV(LOW,30)) / (HHV(HIGH,30) - LLV(LOW,30))) * 100),5,1),3,1))),3,1);
VAR23:=(VAR22 <= 7);
危区RR:=(VAR22 >= 93);
很危险66:=(((VAR22 >= 93) AND (HHV(HIGH,55) = HIGH)) AND NOT((HHV(VAR10,55) = VAR10)));
VAR24:=MA((((LLV(LOW,45) - CLOSE) / (HHV(HIGH,45) - LLV(LOW,45))) * 100),5);
小心卖66:=IF(((CROSS(-92,VAR24) AND (HHV(HIGH,55) = HIGH)) AND NOT((HHV(VAR10,55) = VAR10))),1,0);
VAR25:=(EMA(CLOSE,60) - EMA(CLOSE,300));
VAR26:=EMA(VAR25,300);
VAR27:=(((CLOSE - LLV(LOW,8)) / (HHV(HIGH,8) - LLV(LOW,8))) * 100);
VAR28:=SMA(VAR27,2,1);
VAR29:=SMA(VAR28,2,1);
QQ2:=((VAR22 >= 93) AND (VAR28 < VAR29));
STICKLINE(QQ2,0,1,4,0),COLOR800080;
STICKLINE(VAR23,0,1,4,0),COLOR006400;
STICKLINE(IF(((CROSS(-92,VAR24) AND (HHV(HIGH,55) = HIGH)) AND NOT((HHV(VAR10,55) = VAR10))),1,0),0,0.9,1.5,0),COLORRED;
危区:(VAR22 >= 93),COLORFF8080;
很危险:(((VAR22 >= 93) AND (HHV(HIGH,55) = HIGH)) AND NOT((HHV(VAR10,55) = VAR10))),COLORCYAN;
小心卖:IF(((CROSS(-92,VAR24) AND (HHV(HIGH,55) = HIGH)) AND NOT((HHV(VAR10,55) = VAR10))),1,0),NODRAW,COLORRED;




来函数检测结果如下:
该公式没有未来函数

解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图