通达信并经开花主图指标公式
安装后如下图,友情提示(指标只是辅助,不作建议) 所有程序均为免费分享。
不会安装点击 安装指南 步骤操作。
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
MA20:=MA(CLOSE,20);
FL:HHV(MA20,10);
FS:MA20-(FL-MA20);
MA120:MA(CLOSE,120),LINETHICK2,COLORFF00FF;
MA250:MA(CLOSE,250),LINETHICK3,COLORFFFF00;
乖离线:=((C-REF(MA20,1))/20+MA20)*1.20;
TT1:=CROSS(MA20,MA120) AND CROSS(MA20,MA250) AND V>REF(V,1);
TT2:=MA20>REF(MA20,2) AND V>REF(V,1) AND CROSS(C,MA20);
STICKLINE(TT1,L,L-0.09,4,0),COLORYELLOW;
DRAWTEXT(TT1,L-0.13,'金叉'),COLORYELLOW;
STICKLINE(CROSS(C,MA120) AND CROSS(C,MA250) AND CROSS(C,MA20),L,L-0.09,3,0),COLORYELLOW;
DRAWTEXT(CROSS(C,MA120) AND CROSS(C,MA250) AND CROSS(C,MA20),L-0.25,'并线开花'),COLORYELLOW;
STICKLINE(TT2,L-0.02,L-0.09,3,0),COLORYELLOW;
DRAWTEXT(TT2,L-0.18,'买点1'),COLORYELLOW;
STICKLINE(CROSS(C,乖离线),H,H+0.09,4,0),COLOR00FF00;
DRAWTEXT(CROSS(C,乖离线) ,H+0.13,'卖点'),COLOR00FF00;
STICKLINE(MA250>=REF(MA250,1) AND MA20>=REF(MA20,1) AND CROSS(C,MA250),L,L-0.09,4,0),COLORFFCC66;
DRAWTEXT(MA250>=REF(MA250,1) AND MA20>=REF(MA20,1) AND CROSS(C,MA250),L-0.13,'牛象'),COLORFFCC66;
STICKLINE(MA120>=REF(MA120,1) AND CROSS(C,MA20) AND CROSS(C,MA120) AND V>REF(V,1),L-0.04,L-0.09,3,0),COLORFF00FF;
DRAWTEXT(MA120>=REF(MA120,1) AND CROSS(C,MA20) AND CROSS(C,MA120) AND V>REF(V,1),L-0.13,'买点2'),COLORFF00FF;
{程序化指标官方网址 WWW.HONGHAIE.COM}
RSV:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100);
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=((3 * K) - (2 * D));
RSV24:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100);
K24:=SMA(RSV24,3,1);
D24:=SMA(K24,3,1);
J24:=((3 * K24) - (2 * D24));
U2L:=IF((CLOSE >= MA(CLOSE,20)),80,50);
L2L:=IF((CLOSE >= MA(CLOSE,20)),50,20);
RH1:=IF(((J < U2L) AND (REF(J,1) >= U2L)),HHV(REF(HIGH,1),(BARSLAST(((J >= U2L) AND (REF(J,1) < U2L))) - 1)),REF(HHV(REF(HIGH,1),(BARSLAST(((J >= U2L) AND (REF(J,1) < U2L))) - 1)),BARSLAST(((J < U2L) AND REF(J,1)))));
RH4:=IF((HIGH > RH1),LOW,REF(LOW,BARSLAST((HIGH > RH1))));
RH42:=IF((HIGH > RH1),J,REF(J,BARSLAST((HIGH > RH1))));
RH5:=IF((((HIGH > RH4) AND (J < RH42)) AND (J < J24)),HIGH,REF(HIGH,BARSLAST((((HIGH > RH4) AND (J < RH42)) AND (J < J24)))));
DRAWTEXT(FILTER(((((((((OPEN > MA120) AND (MA20 < MA120)) AND (LOW <= MA120)) AND ((MA20 - REF(MA20,1)) > 0)) AND (CLOSE > OPEN)) AND ((MA120 - REF(MA120,1)) > 0)) AND (HIGH < RH5)) AND (CLOSE >= MA120)),15),LOW,'★120跳马');
RSV2:=(CLOSE-LLV(LOW,120))/(HHV(HIGH,120)-LLV(LOW,120))*100;
K2:=SMA(RSV2,12,1);
D2:=SMA(K2,12,1);
E2:=EMA(D2,6);
AA1:=E2>REF(E2,1);
XG:=REF(AA1,1)=0 AND AA1;
DRAWICON(XG,L*0.95,11);
AA:=VOL>=2*REF(VOL,1);
STICKLINE(AA AND C>O,(C-O)/2+O,O,2.8,0),COLORLIMAGENTA;
STICKLINE(AA AND C<O,C,O,2.5,0),COLORLICYAN;
STICKLINE(C>REF(C,1)*1.098,C,C-(C-O)/2,2.8,0),COLOR00AAAA;
STICKLINE(C>REF(C,1)*1.098,C,C-(C-O)/2,1.5,0),COLOR00BBBB;
STICKLINE(C>REF(C,1)*1.098,C,C-(C-O)/2,1.5,0),COLOR00CCCC;
STICKLINE(C>REF(C,1)*1.098,C,C-(C-O)/2,1,0),COLOR00DDDD;
STICKLINE(C>REF(C,1)*1.098,C,C-(C-O)/2,0.5,0),COLOR00EEEE;
STICKLINE(C>REF(C,1)*1.098,H,C-(C-O)/2,0,0),COLOR00FFFF;
DRAWTEXT_FIX(1,0.02,0,0,'☆微信公众号:(程序化指标) ☆'),COLORRED;
AAA1:=STRCAT('沪深总上涨家数:',CON2STR(DYNAINFO(60),0));
AAA2:=STRCAT('沪深总下跌家数:',CON2STR(DYNAINFO(61),0));
DRAWTEXT_FIX(ISLASTBAR,0,0,0,AAA1),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0,0.06,0,AAA2),COLORGREEN;
总上涨家数:="SH999999$ADVANCE"+"SZ399001$ADVANCE";
总下跌家数:="SH999999$DECLINE"+"SZ399001$DECLINE";
涨跌比:总上涨家数/总下跌家数,COLORCYAN,NODRAW;
总涨跌比:=DYNAINFO(60)/(DYNAINFO(60)+DYNAINFO(61))*100;
DRAWTEXT_FIX(ISLASTBAR,0,0.12,0,STRCAT('总涨跌比: ',CON2STR(总涨跌比,2))),COLORCYAN;
M:=MOD(DAY,7);
W:=IF(M<=WEEKDAY+1,INTPART((DAY)/7)+1,INTPART((DAY-WEEKDAY)/7)+2);
版权声明
所有指标均为免费分享。
文章内容来自互联网,本网站无任何收费项目也不推荐股票广告投放请自行识别风险。