通达信另类布林2主图指标公式,通达信超乖离主图指标公式
admin888
|通达信另类布林2主图指标公式,通达信超乖离主图指标公式
通达信另类布林2主图指标公式
H1:=ema(CLOSE,5);
H2:=Ema(H1,12);
UPR:H2+3*stD(H2,10),COLOR008364,LINETHICK2;
DWN:H2-3*STD(H2,10),COLOR008364,LINETHICK2;
VAR1:=(CLOSE*2+HIGH+LOW)/4;
VAR2:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;
VAR3:=EMA(VAR2,3);
VAR4:=EMA(VAR3,6);
L1:= EMA(VAR2,3);
L2:= EMA(VAR3,4);
L3:= EMA(VAR4,5);
STICKLINE(L1>=L2,(OPEN),(CLOSE),2,0), COLORRED;
STICKLINE(L1>=L2,(HIGH),(LOW),0,0), COLORRED;
STICKLINE(L1
STICKLINE(L1
VAR5:=REF(L1,1)>L1 AND L1>L2;
VAR6:=L1>L2 AND CLOSE
VAR7:=REF(L1,1)
STICKLINE(VAR5,(OPEN),(CLOSE),2,0), COLORBLUE;
STICKLINE(VAR5,(HIGH),(LOW),0,0), COLORBLUE;
STICKLINE(VAR7,(OPEN),(CLOSE),2,0), COLORMAGENTA;
}STICKLINE(VAR7,(HIGH),(LOW),0,0), COLORMAGENTA;
VARE:=SAR(5,1,5);
VARF:=MA(CLOSE,20);
VAR10:=IF(CLOSE>450,8,IF(CLOSE>=20 AND CLOSE<150,0.2,IF(CLOSE<20 AND CLOSE>=10,0.07,IF(CLOSE<10,0.03,0.07))));
STICKLINE(CLOSE>VARE,VARF,VARF+VAR10,2,0),COLOR0066FF;
STICKLINE(CLOSE
STICKLINE(crOSS(CLOSE,VARE),VARF,VARF-VAR10,2,0);
STICKLINE(CROSS(VARE,CLOSE),VARF,VARF+VAR10,2,0);
STICKLINE(RANGE(DAY,6,9) OR RANGE(DAY,27,30),VARF+0.01,VARF-0.01,2,0),COLOR00FFFF;
MA20:=MA(C,20);
MA120:=MA(C,120);
MA250:=MA(C,250);
乖离线:=((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,4,0),COLORYELLOW;
DRAWTEXT(CROSS(C,MA120) AND CROSS(C,MA250) AND CROSS(C,MA20),L-0.13,'并线开花'),COLORYELLOW;
STICKLINE(TT2,L,L-0.09,4,0),COLORYELLOW;
DRAWTEXT(TT2,L-0.13,'买点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,L-0.09,4,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;
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跳马');
通达信超乖离主图指标公式
stICKLINE(CONST(ma(CLOSE,10)) >CONST(MA(CLOSE,5)) AND DYNAINFO(7)
黑:=0;
提示:=1;
五:MA(CLOSE,5),LINETHICK0,COLORMAGENTA,NODRAW;
十:MA(CLOSE,10),LINETHICK0,COLORMAGENTA,NODRAW;
MA4:MA(CLOSE,20),LINETHICK1,COLORFF00FF;
{DRAWBAND(MA(CLOSE,5),RGB(55,55,55),MA(CLOSE,8),RGB(55,55,55));
}DRAWBAND(MA(CLOSE,5),RGB(66,11,11),MA(CLOSE,10),RGB(00,66,66));
DRAWKLINE(H,O,L,C);
离A:MA(CLOSE,7)*1.05,COLOR555555;
离C:MA(CLOSE,7)*0.955,COLOR555555;
β0:=(H-L)/2+L;
α:=β0,LINETHICK0;
β:=REF(β0,1),LINETHICK0,COLORGREEN;
γ:=REF(β0,2),LINETHICK0,COLORMAGENTA;
高:=PLOYLINE(1,CONST(HHV(H,20))),COLOR880088,LINETHICK1;
低:=PLOYLINE(1,CONST(LLV(L,20))),COLOR888800,LINETHICK1;
止:=PLOYLINE(1,CONST(HHV(H,20)*0.95)),COLOR888888,LINETHICK1;
IF(CONST(α>β) AND DYNAINFO(7)>0,DYNAINFO(7),DRAWNULL),COLOR0000AA,LINETHICK1;
IF(CONST(α<=β)AND DYNAINFO(7)>0 ,DYNAINFO(7),DRAWNULL),COLOR00AA00,LINETHICK1;
AA:=CLOSE/REF(C,1)>=1.09;
BA:=CLOSE/REF(C,1)>=1.09;
STICKLINE(AA,O,C,2.5,1),COLORYELLOW;
MA1:MA(CLOSE,5),COLORWHITE;
MA2:MA(CLOSE,10),COLORYELLOW;
MA3:=MA(CLOSE,22),COLORWHITE;
{MA5:MA(CLOSE,120),COLORGREEN;
}{MA6:MA(CLOSE,250),COLOR990000;
}{IF(MA2>REF(MA2,2) ,MA2,DRAWNULL),COLORRED,LINETHICK1;
}SARH:=CLOSE>SAR(4,2,20);
N1:=12;
N2:=26;
N3:=9;
difF:=(ema(CLOSE,N1) - EMA(CLOSE,N2));
DEA:=EMA(DIFF,N3);
macd:=(2 * (DIFF - DEA));
MacD2:=MACD;
TYP:=(HIGH+LOW+CLOSE)/3;
cci:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
{STICKLINE(C
STICKLINE(C
}STICKLINE(BA AND C
头上边:=MAX(O,C),NODRAW;
头下边:=MIN(O,C),NODRAW;
垂头:=Abs(O-C),NODRAW;
{垂头}长针:=(头下边-L),NODRAW;
{长针}垂:=长针/垂头>2 AND (H-头上边)<=长针 AND L
DRAWTEXT(垂 AND L<=LLV(L,3),L/1.01,'地针'),COLORGREEN,LINETHICK4;
{////MACD反身向上////}MACD红缩:=REF(MACD,1)>MACD AND MACD>0;
{DRAWTEXT(REF(EVERY(MACD红缩,3),1)AND MACD>REF(MACD,1) ,L,'启动'),COLORWHITE;
}{////MACD反身向上2////}{MACD红缩2:=REF(MACD,1)>MACD AND MACD>0;
DRAWTEXT(REF(EVERY(MACD红缩2,2),1)AND MACD>REF(MACD,1) AND C>MA(C,22) AND EVERY(DIFF>0,3) ,L/1.02,'起动'),COLORWHITE;
}DRAWTEXT(H>MA(CLOSE,5)*1.07 AND 提示,H*1.01,'高!'),COLORGREEN,LINETHICK2;
DRAWTEXT(L
SC1:=MACD<0;
SC2:=crOSS(MA2,MA1);
SC3:=MA(V,5)
SC:=SC1 AND SC2 ;
DRAWTEXT(SC AND CURRBARSCOUNT<20,HHV(C,10),'三死叉'),COLORYELLOW;
JC1:=MACD.MACD>0;
JC2:=CROSS(MA1,MA2);
JC3:=MA(V,5)>MA(V,10);
JC:=JC1 AND JC2 AND JC2 ;
DRAWTEXT(JC AND CURRBARSCOUNT<20 ,LLV(C,6),'后金叉'),COLORYELLOW;
{DRAWTEXT(CROSS(C,离B) AND CURRBARSCOUNT<90 ,HHV(H,3),'超乖离'),COLORYELLOW;
}DRAWTEXT(CROSS(H,离A) AND CURRBARSCOUNT<10 ,HHV(H,3),'超乖离'),COLORYELLOW;
DRAWTEXT(CROSS(离C,L) AND CURRBARSCOUNT<10 ,LLV(L,3),'负乖离'),COLORWHITE;
DRAWTEXT(五<十 AND CURRBARSCOUNT<2 ,H*1.02,'空头势'),COLORRED;
DRAWTEXT(五<十 AND CURRBARSCOUNT<2 ,H*1.01,'不持股'),COLORRED;
牛市通网是一个牛股推荐网与低风险投资知识网,可以在线联系客服领取牛股。牛市通网从权威的投资专家、金融分析师等投资信息中挑选优质的文章进行发布。牛市通网主要为投资者提供股票知识、股票观点、股票分析和明智金融投资讨论等信息。