通达信顶级划线主图指标公式,通达信止损与回补主图指标公式
admin888
|通达信顶级划线主图指标公式,通达信止损与回补主图指标公式
通达信顶级划线主图指标公式
年:=1+(BArslAst(YEAR!=REF(YEAR,1) OR DATETODAY(DATE)=1));
天数:=IF(PERIOD=5,年,DRAWNULL);
高1:=HHV(H,天数);
低1:=LLV(L,天数);
高低:(C-低1)/(高1-低1)*100,,NODRAW,COLORFFFF00;
振幅:(高1-低1)/低1*100,NODRAW,COLORWHITE;
天:CONST(高1),NODRAW,COLORYELLOW;
地:CONST(低1),NODRAW,COLOR00FF00;
强:CONST(高1-(高1-低1)*1/3),NODRAW,COLORFFFF00;
中:CONST(高1-(高1-低1)*1/2),NODRAW,COLORWHITE;
弱:CONST(高1-(高1-低1)*2/3),NODRAW,COLOR0099FF;
STICKLINE(C>0,CONST(高1-(高1-低1)*1/4),CONST(高1-(高1-低1)*1/4),2,0),COLORFF00FF;
STICKLINE(C>0,CONST(高1-(高1-低1)*3/4),CONST(高1-(高1-低1)*3/4),2,0),COLORFF00FF;
STICKLINE(C>0,天,天,10,0),COLORYELLOW;
STICKLINE(C>0,地,地,10,0),COLOR00FF00;
STICKLINE(C>0,强,强,10,0),COLORFFFF00;
STICKLINE(C>0,中,中,10,0),COLORWHITE;
STICKLINE(C>0,弱,弱,10,0),COLOR0099FF;
N:=12;
DP:=(H+L+2*C)/4;
DN:=Abs(CLOSE-REF(CLOSE,N));
VY:=SUM(ABS(CLOSE-REF(CLOSE,1)),N);
ER:=DN/VY;
FSC:=2/(2+1);
SSC:=2/(N+1);
SC:=ER*(FSC-SSC)+SSC;
SCSQ:=SC*SC;
Kma:dma(DP,SCSQ),COLOR00FF00,LINETHICK2;
多空:ema(DP,50),COLORFFFF00,LINETHICK2;
RC:=地;
DK:=(EMA(DP,12)-多空);
STICKLINE(DK>0 AND DK>REF(DK,1),RC,RC+DK,1,0),COLOR006699;
STICKLINE(DK>0 AND DK<=REF(DK,1),RC,RC+DK,1,1),COLORFF00AA;
STICKLINE(DK<0 AND DK>REF(DK,1),RC,RC+DK,1,0),COLOR998800;
STICKLINE(DK<0 AND DK<=REF(DK,1),RC,RC+DK,1,1),COLOR009900;
BUY:=KMA>EMA(KMA,3);
DRAWKLINE(H,O,L,C);
【量H】:=IF((AMOUNT/C)/(HHV(AMOUNT,21)/HHV(C,21))*100>100,100,(AMOUNT/C)/(HHV(AMOUNT,21)/HHV(C,21))*100);
STICKLINE(【量H】=100,L,H,0.4,0),COLORYELLOW;
STICKLINE(【量H】=100 AND C>=O,C,O,4,1),COLORYELLOW;
STICKLINE(【量H】=100 AND C
ZDF:=(C-REF(C,1))/REF(C,1)*100;
STICKLINE(ZDF>9.8,O,C,2,0),COLORRED;
STICKLINE(ZDF<-9.8,O,C,2,0),COLORBLUE;
Q43:CONST(高1-(高1-低1)*1/4),NODRAW;
Q41:CONST(高1-(高1-低1)*3/4),NODRAW;
DK1:=DK+RC;
M20:=MA(DK1,20);
S:=STD(DK1,20);
高:=M20+2*S;
低:=M20-2*S;
【上】: 高,COLORFFFF00;
【下】: 低,COLORFFFF00;
DRAWTEXT(crOSS(高,DK1),高,'★'),COLOR00FF00;
DRAWTEXT(CROSS(DK1,高),高,'▲'),COLORYELLOW;
DRAWTEXT(CROSS(DK1,低),低,'▲'),COLOR00FF00;
DRAWTEXT(CROSS(低,DK1),低,'★'),COLORYELLOW;
IF(多空>MA(DP,50),多空,DRAWNULL),COLOR00FF00,LINETHICK2;
IF(BUY=1,KMA,DRAWNULL),COLORRED,LINETHICK2;
通达信止损与回补主图指标公式
LC:=REF(C,1);
多头止损价:LC*0.9618,,NODRAW,COLOR00FF00;
五日止损价:HHV(C,5)*0.9618,NODRAW,COLORFFAA00;
空头回补价:LC*1.0382,,NODRAW,COLORFF00FF;
五日回补价:LLV(C,5)*1.0382,NODRAW,COLOR00BBFF;
红持股:IF(C=HHV(C,3),C,DRAWNULL),NODRAW,COLOR0000FF;
蓝持币:IF(C=LLV(C,3),C,DRAWNULL),NODRAW,COLORFFCC00;
灰观望:IF(C=C,C,DRAWNULL),NODRAW,COLOR999999;
三日新高买入价:IF(C=C,HHV(REF(C,1),2),DRAWNULL),NODRAW,COLOR0000FF;
三日新低卖出价:IF(C=C,LLV(REF(C,1),2),DRAWNULL),NODRAW,COLORFFCC00;
stICKLINE(C>0,H,L,0,O),COLOR999999;
STICKLINE(C>0,C,O,2,O),COLOR999999;
STICKLINE(C=LLV(C,3),H,L,0,1),COLORFFCC00;
STICKLINE(C=LLV(C,3),C,O,2,1),COLORFFCC00;
STICKLINE(C=HHV(C,3),H,L,0,1),COLOR00FFFF;
STICKLINE(C=HHV(C,3),C,O,2,1),COLOR00FFFF;
STICKLINE(C=HHV(C,3),C,IF(L
COLOR0000FF;
STICKLINE(C
STICKLINE(C
STICKLINE(C>LLV(C,5)*1.0382 AND LC<=LLV(LC,5)*1.0382,C,LLV(C,5)*1.0382,3,0),COLOR00BBFF;
STICKLINE(C>LC*1.0382 AND LC<=REF(C,2)*1.0382,C,LC*1.0382,2,0),COLORFF00FF;
牛市通网是一个牛股推荐网与低风险投资知识网,可以在线联系客服领取牛股。牛市通网从权威的投资专家、金融分析师等投资信息中挑选优质的文章进行发布。牛市通网主要为投资者提供股票知识、股票观点、股票分析和明智金融投资讨论等信息。