通达信【攻击力度】副图排序选股 伏击庄股不费力 指标源码
HGW1:=IF(PERIOD=5,TOTALFZNUM,1);
HGW2:=IF(PERIOD=4,31,HGW1);
HGW3:=IF(PERIOD=3,30,HGW2);
HGW4:=IF(PERIOD=1,5,IF(PERIOD=2,15,HGW3));
HGW5:=MOD(FROMOPEN,HGW4);
HGW6:=IF(HGW5<0.5,HGW4,HGW5);
HGW8:=(CURRBARSCOUNT=1 AND DYNAINFO(8)>1);
HGW9:=IF(HGW8,VOL*(HGW4+3)/(HGW6+3),DRAWNULL);
攻击力一:DYNAINFO(23)/DYNAINFO(22),COLORRED,LINETHICK1;
攻击力二:DYNAINFO(17),COLORYELLOW,LINETHICK1;
攻击力三:HGW9/REF(V,1),COLORMAGENTA,LINETHICK1;
DRAWTEXT_FIX(C>O,0.01,0.1,0,' 概念板块:'),COLORRED;
DRAWTEXT_FIX(C>O,0.01,0.2,0,' 行业板块:'),COLORRED;
DRAWTEXT_FIX(C>O,0.01,0.3,0,' 地域板块:'),COLORRED;
DRAWTEXT_FIX(C>O,0.01,0.4,0,' 风格板块:'),COLORRED;
DRAWTEXT_FIX(C>O,0.01,0.5,0,' 指数板块:'),COLORRED;
DRAWTEXT_FIX(O<C,0.09,0.1,0,CONST((GNBLOCK))),COLORYELLOW;
DRAWTEXT_FIX(O<C,0.09,0.2,0,CONST((HYBLOCK))),COLORYELLOW;
DRAWTEXT_FIX(O<C,0.09,0.3,0,CONST((DYBLOCK))),COLORYELLOW;
DRAWTEXT_FIX(O<C,0.09,0.4,0,CONST((FGBLOCK))),COLORYELLOW;
DRAWTEXT_FIX(O<C,0.09,0.5,0,CONST((ZSBLOCK))),COLORYELLOW;
DRAWTEXT_FIX(C>O,0.09,0.7,0,' 信号精选办法:准备介入的时候观察左上角红色【攻击力一】的数值,优先考虑攻击
力一数值大于1.5或以上的信号,数值越大越好;'),COLORRED;
DRAWTEXT_FIX(C>O,0.09,0.8,0,' 其次观察左上角【攻击力二】和【攻击力三】的数值,考虑【攻击力
二】和【攻击力三】数值大于2或以上的信号,数值越大越好 '),COLORRED;
DRAWTEXT_FIX(C>O,0.09,0.9,0,' 总之,【攻击力一】数值大于1.5是首选,最主要的;【攻击力二】
和【攻击力三】是辅助,如果大于2就最好,没有就忽略。'),COLORRED;