通达信决战到天亮指标公式
通达信DMI压箱底用法指标公式
MID:= MA(CLOSE,7);
UPPER:= MID + 30*stD(CLOSE,7);
LOWER:= MID - 30*STD(CLOSE,7);
MA3:=MA(C,3);
A1:=(UPPER-MA3)/(MA3-LOWER);
空头:IF(A1>100,100,A1),COLORGREEN;
B1:=(MA3-LOWER)/(UPPER-MA3);
多头:IF(B1>100,100,B1),COLORRED;
地线:0.938,COLORWHITE;
天线:1.062,COLORYELLOW;
QQ:IF(B1>100,100,B1)/15,COLORRED;
YY:IF(B1>100,100,B1)/10,COLORRED;
B:-1*(HHV(H,6)-C)/(HHV(HIGH,6)-LLV(L,6))+1,COLORFFFF80;
FF:IF(B=1,0.8,0),COLOR008080;
CC:IF(B=0,0.5,1),COLOR00FF00;
DRAWTEXT(crOSS(B,0.99),0.5,'涨停'),COLOR0000FF;
DRAWTEXT(CROSS(0.001,B),0.5,'跌停'),COLORFFFF00;
买:IF(CROSS(B,0.01),0.9,0),COLORFF00FF;
卖:IF(CROSS(0.99,B),0.5,1),,COLOR008080;
{指标网-股票公式网站 www.GUpang.com}
DRAWTEXT(CROSS(B,0.01),0.2,'买'),COLOR0099FF;
DRAWTEXT(CROSS(0.99,B),0.7,'卖'),COLORFFCC00;
追涨停:IF(C>REF(C,1)*1.0985,0.6,0),COLORFF0000;
杀跌停:IF(C<REF(C,1)*0.902,0.5,1),COLOR00FF00;
DRAWTEXT(C>REF(C,1)*1.0985,0.3.5,'追涨'),COLOR0000FF;
DRAWTEXT(C<REF(C,1)*0.902,0.6,'杀跌'),COLORFFFF00;
A7:=C-REF(C,1);
A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(Abs(A7),6),6);
SHORT:=7; LONG:=19;
RMA:=EMA(CLOSE,SHORT);
NMA:=EMA(CLOSE,LONG);
UP:=DRAWLINE(L=LLV(L,BArslAST(CROSS(NMA,RMA))+1),LLV(L,BARSLAST(CROSS(NMA,RMA))+1),H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1),HHV(H,BARSLAST(CROSS(RMA,NMA))+1),0);
DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1),HHV(H,BARSLAST(CROSS(RMA,NMA))+1),L=LLV(L,BARSLAST(CROSS(NMA,RMA))+1),LLV(L,BARSLAST(CROSS(NMA,RMA))+1),0);
买进:(LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2))) AND REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1);
通达信八线合一定牛熊主图指标公式