通达信量化检测主图公式 量化定底部决主升 指标源码

MA5:MA(C,5),COLORMAGENTA,LINETHICK2;
MA30:MA(C,30),COLORRED;
HGW1:=MA(C,10);
量化:IF(HGW1>MA30,HGW1,MA30),COLOR999900;
HGW2:=(C-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
HGW3:=SMA(HGW2,3,1);
HGW4:=SMA(HGW3,3,1);
HGW5:=3*HGW3-2*HGW4;
HGW6:=C-REF(C,1);
HGW7:=100*EMA(EMA(HGW6,6),6)/EMA(EMA(ABS(HGW6),6),6);
HGW8:=LLV(HGW7,2)=LLV(HGW7,7) AND COUNT(HGW7< 0,2) AND CROSS(HGW7,MA(HGW7,2));
抄底:=FILTER(HGW8=1,5);
STICKLINE(HGW8,OPEN,C,2,0),COLORYELLOW;
HGW9:=C>REF(C,1) AND C>REF(C,2);
HGW10:=REF(HGW9,1) AND C<=REF(C,1) AND C>=REF(C,2);
HGW11:=REF(HGW10,1) AND C>=REF(C,1) AND C<=REF(C,2);
HGW12:=REF(HGW11,1) AND C<=REF(C,1) AND C>=REF(C,2);
HGW13:=REF(HGW12,1) AND C>=REF(C,1) AND C<=REF(C,2);
HGW14:=REF(HGW13,1) AND C<=REF(C,1) AND C>=REF(C,2);
HGW15:=REF(HGW14,1) AND C>=REF(C,1) AND C<=REF(C,2);
HGW16:=REF(HGW15,1) AND C<=REF(C,1) AND C>=REF(C,2);
HGW17:=REF(HGW16,1) AND C>=REF(C,1) AND C<=REF(C,2);
HGW18:=REF(HGW17,1) AND C<=REF(C,1) AND C>=REF(C,2);
HGW19:=REF(HGW18,1) AND C>=REF(C,1) AND C<=REF(C,2);
HGW20:=REF(HGW19,1) AND C<=REF(C,1) AND C>=REF(C,2);
HGW21:=C< REF(C,1) AND C< REF(C,2);
HGW22:=REF(HGW21,1) AND C>=REF(C,1) AND C<=REF(C,2);
HGW23:=REF(HGW22,1) AND C<=REF(C,1) AND C>=REF(C,2);
HGW24:=REF(HGW23,1) AND C>=REF(C,1) AND C<=REF(C,2);
HGW25:=REF(HGW24,1) AND C<=REF(C,1) AND C>=REF(C,2);
HGW26:=REF(HGW25,1) AND C>=REF(C,1) AND C<=REF(C,2);
HGW27:=REF(HGW26,1) AND C<=REF(C,1) AND C>=REF(C,2);
HGW28:=REF(HGW27,1) AND C>=REF(C,1) AND C<=REF(C,2);
HGW29:=REF(HGW28,1) AND C<=REF(C,1) AND C>=REF(C,2);
HGW30:=REF(HGW29,1) AND C>=REF(C,1) AND C<=REF(C,2);
HGW31:=REF(HGW30,1) AND C<=REF(C,1) AND C>=REF(C,2);
HGW32:=REF(HGW31,1) AND C>=REF(C,1) AND C<=REF(C,2);
STICKLINE(HGW21 OR HGW22 OR HGW23 OR HGW24 OR HGW25 OR HGW26 OR HGW27 OR HGW28 OR HGW29 OR HGW30 OR HGW31 OR HGW32,C,OPEN,3,0),COLORFFCC66;
HGW33:=REF(HGW21 OR HGW22 OR HGW23 OR HGW24 OR HGW25 OR HGW26 OR HGW27 OR HGW28 OR HGW29 OR HGW30 OR HGW31 OR HGW32,1) AND HGW9;
HGW34:=REF(HGW9 OR HGW10 OR HGW11 OR HGW12 OR HGW13 OR HGW14 OR HGW15 OR HGW16 OR HGW17 OR HGW18 OR HGW19 OR HGW20,1) AND HGW21;
IF(MA5>REF(MA5,1),MA5,DRAWNULL),COLOR0000FF,LINETHICK2;
IF(MA5< REF(MA5,1),MA5,DRAWNULL),COLOR00FF00,LINETHICK2;
HGW35:=VOL*(OPEN+C)/2;
MA1:MA(C,0),COLOR00FF00;
HGW36:=REF(HHV(HIGH,150),3);
HGW37:=REF(LLV(LOW,150),3);
HGW38:=HGW36-(HGW36-HGW37)*0.191;
HGW39:=HGW36-(HGW36-HGW37)*0.382;
HGW40:=HGW36-(HGW36-HGW37)*0.5;
HGW41:=HGW36-(HGW36-HGW37)*0.618;
HGW42:=HGW36-(HGW36-HGW37)*0.809;
危险:=REFDATE(HGW36,DATE);
机会:=REFDATE(HGW37,DATE);
HGW43:=CURRBARSCOUNT=3;
HGW44:=CURRBARSCOUNT=1;
HGW45:=(OPEN+HIGH+LOW+C)/4;
检测点:=EMA(HGW45,17);
DRAWNUMBER(ISLASTBAR AND 检测点,检测点*1.005,检测点);
HGW46:=CROSS(C,检测点);
IF(检测点>REF(检测点,1),检测点,DRAWNULL),COLORYELLOW,LINETHICK2;
IF(检测点< REF(检测点,1),检测点,DRAWNULL),COLORGREEN,LINETHICK2;
抄底条件:=FILTER(HGW8=1,5) AND HGW33 AND HGW46 AND (C-REF(C,1))/REF(C,1)< 0.06;
STICKLINE(抄底条件,C,OPEN,2,0),COLORYELLOW;
DRAWTEXT(抄底条件,LOW*0.98,'抄底'),COLORYELLOW;
DRAWICON(抄底条件,LOW,1),COLORYELLOW;
HGW47:=EMA(C,12)-EMA(C,26);
HGW48:=EMA(HGW47,9);
HGW49:=2*(HGW47-HGW48);
主升条件:=CROSS(HGW47,HGW48) AND HGW47< 0 AND HGW46;
DRAWTEXT(主升条件,LOW*0.998,'主升'),COLORYELLOW;
DRAWICON(主升条件,检测点,9);


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

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

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

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