通达信【野狼捕食】主图指标 专为短线波段交易设计 用法详解 源码

{野狼捕食主图源码如下}

VAR1:=STRCAT(HYBLOCK,' ');
VAR2:=STRCAT(VAR1,DYBLOCK);
VAR3:=STRCAT(VAR2,' ');
VAR4:=CLOSE*VOL;
VAR5:=EXPMA(VAR4,3)/EXPMA(VOL,3);
VAR6:=EXPMA(VAR4,6)/EXPMA(VOL,6);
VAR7:=EXPMA(VAR4,12)/EXPMA(VOL,12);
VAR8:=EXPMA(VAR4,24)/EXPMA(VOL,24);
VAR9:=EMA((VAR5+VAR6+VAR7+VAR8)/4,13);
VAR10:=1.06*VAR9;
VAR11:=VAR9*0.94;
VAR12:=CLOSE>VAR10 AND OPEN>VAR10;
VAR13:=REF(CLOSE,1);
VAR18:=SMA(MAX(CLOSE-VAR13,0),2,1)/SMA(ABS(CLOSE-VAR13),2,1)*100;
VAR19:=VAR18<10 AND VAR10>=REF(VAR10,1);
DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(VAR3,GNBLOCK)),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0.001,0.050,0,GNBLOCK),COLORCYAN;
DRAWTEXT_FIX(ISLASTBAR,0.002,0.1,0,ZDBLOCK);
LHB:SIGNALS_USER(4,1);
DRAWTEXT(LHB,H,'龙虎'),COLORWHITE;
IF((VAR10<=REF(VAR10,1)),VAR10,DRAWNULL),COLORGREEN,DOTLINE,LINETHICK2;
IF((VAR10>=REF(VAR10,1)),VAR10,DRAWNULL),COLORRED,DOTLINE,LINETHICK2;
IF((VAR11<=REF(VAR11,1)),VAR11,DRAWNULL),COLORGREEN,DOTLINE,LINETHICK2;
IF((VAR11>=REF(VAR11,1)),VAR11,DRAWNULL),COLORRED,DOTLINE,LINETHICK2;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
STICKLINE(VAR12 AND C>O,C,O,3.2,0),COLOR000066;
STICKLINE(VAR12 AND C>O,C,O,2.0,0),COLOR000077;
STICKLINE(VAR12 AND C>O,C,O,1.5,0),COLOR000099;
STICKLINE(VAR12 AND C>O,C,O,0.9,0),COLOR0000CC;
STICKLINE(VAR12 AND C>O,C,O,0.5,0),COLOR0000FF;
STICKLINE(VAR12 AND C>O,O,C,0,0),COLORFFFFFF;
STICKLINE(VAR12 AND C<O,L,H,0,0),COLOR009900;
STICKLINE(VAR12 AND C<O,C,O,3.2,0),COLOR009900;
STICKLINE(VAR12 AND C<O,C,O,2.5,0),COLOR00BB00;
STICKLINE(VAR12 AND C<O,C,O,1.5,0),COLOR00DD00;
STICKLINE(VAR12 AND C<O,C,O,0.5,0),COLOR00FF00;
STICKLINE(VAR12 AND C<O,C,O,0,0),COLORFFFFFF;
DRAWTEXT(VAR19,L,'野狼'),COLORYELLOW;




{野狼捕食副图源码如下}


VAR1:=STRCAT(HYBLOCK,' ');
VAR2:=STRCAT(VAR1,DYBLOCK);
VAR3:=STRCAT(VAR2,' ');
VAR4:=CLOSE*VOL;
VAR5:=EXPMA(VAR4,3)/EXPMA(VOL,3);
VAR6:=EXPMA(VAR4,6)/EXPMA(VOL,6);
VAR7:=EXPMA(VAR4,12)/EXPMA(VOL,12);
VAR8:=EXPMA(VAR4,24)/EXPMA(VOL,24);
VAR9:=EMA((VAR5+VAR6+VAR7+VAR8)/4,13);
VAR10:=1.06*VAR9;
VAR11:=VAR9*0.94;
VAR12:=CLOSE>VAR10 AND OPEN>VAR10;
VAR18:=REF(CLOSE,1);
VAR19:=SMA(MAX(C-VAR18,0),2,1)/SMA(ABS(C-VAR18),2,1)*100;
XG:VAR19<10 AND VAR10>=REF(VAR10,1);





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

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

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

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