通达信【天罗地网】主图指标 暴跌之后迎暴涨 源码

年线:MA(CLOSE,250),LINETHICK1,COLORWHITE,DOTLINE;
E3:EMA(CLOSE,5),DOTLINE,COLORCYAN;
E5:EMA(CLOSE,8),DOTLINE,COLORCYAN;
E8:EMA(CLOSE,10),DOTLINE,COLORCYAN;
E10:EMA(CLOSE,12),DOTLINE,COLORCYAN;
E12:EMA(CLOSE,15),DOTLINE,COLORCYAN;
E30:EMA(CLOSE,60),DOTLINE,COLORGREEN;
E35:EMA(CLOSE,65),DOTLINE,COLORGREEN;
E40:EMA(CLOSE,70),DOTLINE,COLORGREEN;
E45:EMA(CLOSE,75),DOTLINE,COLORGREEN;
E50:EMA(CLOSE,80),DOTLINE,COLORGREEN;
HGW1:=IF(CLOSE>E3 AND LOW<E3,1,0);
HGW2:=IF(CLOSE>E5 AND LOW<E5,1,0);
HGW3:=IF(CLOSE>E8 AND LOW<E8,1,0);
HGW4:=IF(CLOSE>E10 AND LOW<E10,1,0);
HGW5:=IF(CLOSE>E12 AND LOW<E12,1,0);
HGW6:=IF(CLOSE>E30 AND LOW<E30,1,0);
HGW7:=IF(CLOSE>E35 AND LOW<E35,1,0);
HGW8:=IF(CLOSE>E40 AND LOW<E40,1,0);
HGW9:=IF(CLOSE>E45 AND LOW<E45,1,0);
HGW10:=IF(CLOSE>E50 AND LOW<E50,1,0);
HGW11:=HGW1+HGW2+HGW3+HGW4+HGW5;
HGW12:=HGW6+HGW7+HGW8+HGW9+HGW10;
HGW13:=MIN(MIN(MIN(MIN(E3,E5),E8),E10),E12);
HGW14:=MAX(MAX(MAX(MAX(E30,E35),E40),E45),E50);
HGW15:=(CLOSE/REF(CLOSE,1)-1)*100;
HGW16:=HGW11+HGW12>=8 AND HGW15>0;
HGW17:=EVERY(HGW13>HGW14,5) AND HGW11=5 AND HGW15>0;
HGW18:="RSI.RSI1#WEEK"(9);
HGW19:=CROSS(HGW18>50>REF(HGW18>50,1),0.5);
HGW20:=EMA(CLOSE,12)-EMA(CLOSE,26);
HGW21:=CROSS(HGW20,EMA(HGW20,9));
HGW22:=CROSS(EMA(HGW20,9),HGW20);
HGW23:=CONST(SUMBARS(HGW21,2)-BARSLAST(HGW22))>2;
HGW24:=SUMBARS(HGW21,2)-BARSLAST(HGW22);
HGW25:=CONST(FINDHIGHBARS(HGW20,BARSLAST(HGW22),HGW24,1))+1;
HGW26:=CONST(FINDLOWBARS(HGW20,BARSLAST(HGW21),HGW24,1))+1;
HGW28:=CONST(FINDHIGH(HIGH,BARSLAST(HGW22),HGW24,1));
HGW29:=CONST(FINDLOW(LOW,BARSLAST(HGW21),HGW24,1));
IF(E3>REF(E3,1),E3,DRAWNULL),COLORMAGENTA;
IF(E5>REF(E5,1),E5,DRAWNULL),COLORMAGENTA;
IF(E8>REF(E8,1),E8,DRAWNULL),COLORMAGENTA;
IF(E10>REF(E10,1),E10,DRAWNULL),COLORMAGENTA;
IF(E12>REF(E12,1),E12,DRAWNULL),COLORMAGENTA;
IF(E30>REF(E30,1),E30,DRAWNULL),COLORRED;
IF(E35>REF(E35,1),E35,DRAWNULL),COLORRED;
IF(E40>REF(E40,1),E40,DRAWNULL),COLORRED;
IF(E45>REF(E45,1),E45,DRAWNULL),COLORRED;
IF(E50>REF(E50,1),E50,DRAWNULL),COLORRED;
STICKLINE(HGW16,OPEN,CLOSE,3,0),COLORYELLOW;
STICKLINE(HGW17,OPEN,CLOSE,3,0),COLORMAGENTA;
DRAWTEXT(HGW19,LOW, '阶底'),COLORGREEN;
前高:IF(HGW23,IF(CURRBARSCOUNT<=HGW25,HGW28,DRAWNULL),DRAWNULL),COLORMAGENTA,DOTLINE;
前低:IF(HGW23,IF(CURRBARSCOUNT<=HGW26,HGW29,DRAWNULL),DRAWNULL),COLORGREEN,DOTLINE;



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

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

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