通达信横行天下主图指标 战无不胜横着走 用法详解 源码

VAR1:=LOW>(REF(HIGH,1)+0.001);
VAR2:=BARSLAST(VAR1);
VAR3:=COUNT(L>REF(H,VAR2+1),VAR2+1)=VAR2+1;
VAR4:=CROSS(BACKSET(VAR3>0 AND ISLASTBAR,VAR2+1),0.5);
VAR5:=BARSLAST(VAR4);
VAR6:=IF(CURRBARSCOUNT<=CONST(VAR5+1),CONST(LLV(L,VAR5+1)),DRAWNULL);
VAR7:=IF(CURRBARSCOUNT<=CONST(VAR5+1),REF(H,VAR5+1),DRAWNULL);
VAR8:=MA(VOL,10);
VAR9:=(VOL-VAR8)/VAR8*100;
VAR10:=VAR9-REF(VAR9,1);
VAR11:=CLOSE>REF(CLOSE,1) AND CLOSE<OPEN;
VAR12:=(OPEN-REF(CLOSE,1))/REF(CLOSE,1)*100;
VAR13:=VOL>REF(VOL,1)*1.69 AND VOL>REF(HHV(VOL,20),1);
VAR14:=(HIGH-LOW)/REF(CLOSE,1)*100;
VAR15:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
VAR16:=CLOSE/REF(CLOSE,1)>1.06;
VAR17:=EVERY(VAR16,3) OR EVERY(VAR16,2);
VAR18:=REF(VAR17,1) AND VAR13;
VAR19:=VAR17 AND VAR13;
VAR20:=VAR17 AND VAR10>REF(HHV(VAR10,20),1);
VAR21:=REF(EVERY(VAR16,2),1) AND VAR14>15 AND VAR15>0.5 AND VAR13;
VAR22:=VAR12>=6 AND VAR11 AND REF(EVERY(VAR16,2),1) AND VAR13;
VAR23:=VAR19 OR VAR18 OR VAR20 OR VAR21 OR VAR22;
VAR24:=FILTER(VAR23,2);
VAR25:=BARSLAST(VAR24);
VAR26:=BARSLAST(CROSS(CLOSE,REF(CLOSE,VAR25)));
VAR27:=VAR26>0 AND COUNT(MAX(C,O)>REF(C,VAR25),VAR26)=VAR26 AND VAR26<20 AND C/REF(C,1)>1.085;
VAR28:=FILTER(VAR27>0,10);
VAR29:=FILTER(VAR25>1 AND COUNT(MAX(C,O)>REF(C,VAR25),VAR25)=VAR25 AND VAR25<20 AND C/REF(C,1)>1.085,10);
VAR30:=VAR28 OR VAR29;
VAR31:=VOL/REF(MA(VOL,5),1);
VAR32:=AMOUNT>=REF(AMOUNT,1)*1.9 AND (IF(C<O,C>REF(C,1),1));
VAR38:=AMOUNT=HHV(AMOUNT,120),COLORRED;
VAR39:=VAR38 AND VAR32 AND VAR31>2 AND (BARSCOUNT(C)+1)>120;
MA5:MA(CLOSE,5),COLORWHITE;
MA10:MA(CLOSE,10),COLORYELLOW;
MA20:MA(CLOSE,20),COLORMAGENTA;
MA60:MA(CLOSE,60),COLORGREEN;
MA120:MA(CLOSE,120),COLORGRAY;
强弱:EMA(COST(85),10),COLORRED,DOTLINE;
分界:EMA(COST(99),10),COLORGREEN,DOTLINE;
量王1:DRAWLINE(VAR39,H,REF(VAR39,1),REF(H,1),1),COLOR0066BB;
量王2:DRAWLINE(VAR39,L,REF(VAR39,1),REF(L,1),1),COLORGREEN;
加仓:VAR30>0,COLORYELLOW,NODRAW;
做多:CROSS(MA(CLOSE,1),分界) AND 分界/REF(分界,1)>1.001,COLORRED,NODRAW;
STICKLINE(VAR39,CLOSE,OPEN,0.1,0),COLORGREEN;
DRAWBAND(强弱,RGB(80,00,20),分界,RGB(60,60,18));
STICKLINE(CURRBARSCOUNT<=CONST(VAR5+1),VAR6,VAR7,5,0),COLORGRAY;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
DRAWICON(加仓,LOW*0.99,23);
DRAWICON(做多,LOW*0.99,42);



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

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

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