通达信非常准的背离副图线不繁琐源码

DIFF:=EMA((C+L)/2,12)-EMA((C+L)/2,20);
零轴分强弱:DIFF+1.8,COLORFFFFFF;
用:=EMA(零轴分强弱-0.08,5);
关键看趋势:=EMA(用,8);
陈:=EMA(IF(LOW<=LLV(L,34),EMA(SMA(ABS(L-REF(L,1)),13,1)/SMA(MAX(L-REF(L,1),0),13,1)*100,13),0),3);
关注启动:STICKLINE(EMA(C,5)>REF(EMA(C,5),1) AND 零轴分强弱>用,关键看趋势-0.5,关键看趋势-1,3,1),COLORFF10FF;
{始涨尾跌:STICKLINE(EMA(C,5)<REF(EMA(C,5),1),关键看趋势-0.5,关键看趋势-1.8,3,1),COLOR1010FF;}
变盘买入:STICKLINE(陈>REF(陈,1) AND 零轴分强弱>用,关键看趋势-0.5,关键看趋势-2,3,1),COLOR10FFFF;
放心持有:STICKLINE(陈>用,关键看趋势-0.5,关键看趋势-1,3,1),COLORFF10FF;
琛:=REF(MA(L,2)*0.96,1);
STICKLINE(琛>REF(琛,1) AND 零轴分强弱>用,关键看趋势-0.5,关键看趋势-2,2,0),COLOR006EFF;
DRAWICON(琛>REF(琛,1) AND 零轴分强弱>用,关键看趋势-1,1);
VAR0:=EMA((((H+C)/2+L+(C+L)/2)/3-EMA(LLV(((H+C)/2+L+(C+L)/2)/3,89),2))/(EMA(HHV(((H+C)/2+L+(C+L)/2)/3,89),2)-EMA(LLV(((H+C)/2+L+(C+L)/2)/3,89),2)),8)*100;
底部:=IF(((C+L)/2)/COST(18)<0.8,1,0) AND (((C+L)/2-LLV((C+L)/2,55))/(HHV((C+L)/2,55)-LLV((C+L)/2,55))*100=0) AND (100*((C+L)/2-LLV((H+C)/2,89))/(LLV((H+C)/2,89))<0);
DRAWTEXT(IF(FILTER(底部,3)=1,1,0)>0 AND 零轴分强弱>用 AND VAR0<68,3,'攻击'),COLORYELLOW;
VAR14:=EMA(((L*0.9)*VOL+(REF(L,1)*0.9)*(CAPITAL-VOL))/CAPITAL,30);
VAR15:=SMA(MAX((C+L)/2-REF((C+L)/2,1),0),10,1)/SMA(ABS((C+L)/2-REF((C+L)/2,1)),10,1)*100;
VAR16:=SMA(MAX((C+L)/2-REF((C+L)/2,1),0),13,1)/SMA(ABS((C+L)/2-REF((C+L)/2,1)),13,1)*100;
VAR17:=SMA(MAX((C+L)/2-REF((C+L)/2,1),0),6,1)/SMA(ABS((C+L)/2-REF((C+L)/2,1)),6,1)*100;
VAR18:=(-200)*(HHV((H+C)/2,55)-(C+L)/2)/(HHV((H+C)/2,55)-LLV(L,55))+100;
VAR19:=SMA((SMA(((C+L)/2-LLV(L,15))/(HHV((H+C)/2,15)-LLV(L,15))*100,4,1)-50)*2,3,1);
VAR20:=SMA(SMA((INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100,4,1),3,1);
VAR21:=(HHV((H+C)/2,30)-(C+L)/2)/((C+L)/2)*100;
VAR22:=VAR17<=24 AND VAR18<-50 AND VAR21>10 AND VAR19<-26 AND VAR20<34 AND VAR14-((C+L)/2)>=-0.21 AND VAR15<50 AND VAR16<55 AND VAR0<68 AND BARSCOUNT((C+L)/2)>50;
分:IF(CROSS(VAR22,0.5) AND VAR0<50,用+5,用),COLORFFFFFF;
VAR23:=DMA((3*H+L+O+2*C)/7,VOL/(SUM(AMOUNT,13)/(AMOUNT/VOL/100)/100));
析:IF(VAR0<30 AND C>VAR23,2,0);
DIFFF:=SMA((((L+C)/2-EMA((L+C)/5,10))*100),13,1);
DRAWTEXT(CROSS(析,0.5) AND DIFFF>用 AND VAR0<68,2.5,'攻击'),COLORRED;
开始:IF((((C+L)/2)/(EMA(EMA((C+L+H+O)/4,3),55)*0.868)<0.928),5,0),STICK,COLORYELLOW;
DRAWTEXT(CROSS(-6.8,3*SMA((((C+L)/2-LLV(L,13))/(HHV((H+C+O)/3,13)-LLV(L,13))*60),2,1)-2*SMA(SMA((((C+L)/2-LLV(L,13))/(HHV((H+C+O)/3,13)-
LLV(L,13))*60),2,1),4,1)) AND VAR0<38,零轴分强弱*1.2,'反弹'),COLORFFBB00;
DRAWTEXT(FILTER(CROSS(0.1,(((EMA(WINNER((C+L)/2)*13,3))/WINNER((C+L)/2))/280)*0.58),3) AND VAR0<35.8,零轴分强弱,'鬼'),COLORYELLOW;
背:=BARSLAST(REF(CROSS(MA(EMA(((L+C)/2-EMA((L+C)/2,5))*100,3),1),MA(MA(EMA(((L+C)/2-EMA((L+C)/2,5))*100,3),1),3)),1));
离:=REF(C,背+1)>C AND REF(MA(EMA(((L+C)/2-EMA((L+C)/2,5))*100,3),1),背+1) AND CROSS(MA(EMA(((L+C)/2-EMA((L+C)/2,5))*100,3),1),MA(MA(EMA(((L+C)/2-EMA((L+C)/2,5))*100,3),1),3));
DRAWTEXT(FILTER(离>0,5),零轴分强弱,'背离?'),COLOR00FFFF;
快线:=(MA(C,3)-MA(C,26))*15;
慢线:=(EMA(快线,5)+EMA(快线,5))/2;
{STICKLINE(快线<-3 OR 快线<慢线,0,-2,0.0,0),COLORFFCC66;}
快慢:IF(快线<-3 OR 快线<慢线,-2,0),STICK,COLORFFCC66;
VAR1:=EMA(((L*0.9)*VOL+(REF(L,1)*0.9)*(CAPITAL-VOL))/CAPITAL,26);
VAR2:=SMA(MAX((C+L)/2-REF((C+L)/2,1),0),3,1)/SMA(ABS((C+L)/2-REF((C+L)/2,1)),3,1)*100;
VAR3:=SMA(MAX((C+L)/2-REF((C+L)/2,1),0),5,1)/SMA(ABS((C+L)/2-REF((C+L)/2,1)),5,1)*100;
VAR4:=SMA(MAX((C+L)/2-REF((C+L)/2,1),0),8,1)/SMA(ABS((C+L)/2-REF((C+L)/2,1)),8,1)*100;
VAR5:=(-200)*(HHV((H+C)/2,89)-(C+L)/2)/(HHV((H+C)/2,89)-LLV(L,89))+100;
VAR6:=SMA((SMA(((C+L)/2-LLV(L,13))/(HHV((H+C)/2,13)-LLV(L,13))*100,8,1)-50)*2,8,1);
VAR7:=SMA(SMA((INDEXC-LLV(INDEXL,3))/(HHV(INDEXH,3)-LLV(INDEXL,3))*100,2,1),2,1);
VAR8:=(HHV((H+C)/2,89)-(C+L)/2)/((C+L)/2)*100;
VAR9:=((H+L+C)/3-MA((H+L+C)/3,14))/(0.015*AVEDEV((H+L+C)/3,14));
VAR10:=(HHV(((C+L)/2+O)/2,15)-((C+L)/2))/HHV(((C+L)/2+O)/2,15)*100>20;
注:IF(VAR10 AND MA((C+L)/2,27)/((C+L)/2)>1.169 AND MA((C+L)/2,17)/((C+L)/2)>1.158 AND MA((C+L)/2,60)>MA((C+L)/2,30) AND VAR9>-210 AND VAR0<30,
用+5,用),COLORYELLOW;


未来函数检测结果如下:
该公式包含未来函数:WINNER
该公式包含未来函数:COST
该公式包含未来函数:CAPITAL
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

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

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