通达信绝对通道主图指标公式

VV:=(C+L+H)/3;
DSA:=SMA(XMA(VV,15),2,1)LINETHICK3;
顶部1:DSA*1.0888,COLORMAGENTA,LINETHICK1;
顶部2:DSA*1.158,COLORBROWN,LINETHICK1;
顶部3:DSA*1.218,COLORRED,LINETHICK1;
底部1:DSA*0.9518,COLORLICYAN,LINETHICK4;
底部2:DSA*0.888,COLORLIMAGENTA,LINETHICK1;
底部3:DSA*0.8,COLORGREEN,LINETHICK2;
HX:=HHV(HIGH,3);
LX:=LLV(LOW,3);
H1:=IF(HX<REF(HX,1) AND HX<REF(HX,2)AND HX<REF(HX,4)AND LX<REF(LX,1)AND LX<REF(LX,3)AND LX<REF(LX,5)AND OPEN>CLOSE AND (HHV(OPEN,0)-CLOSE)>0,REF(HX,4),0);
L1:=IF(LX>REF(LX,1)AND LX>REF(LX,3)AND LX>REF(LX,5)AND HX>REF(HX,1)AND HX>REF(HX,2)AND HX>REF(HX,4)AND OPEN<CLOSE AND (CLOSE-LLV(OPEN,0))>0,REF(LX,4),0);
H2:=VALUEWHEN(H1>0,H1)COLORWHITE,LINETHICK2;
L2:=VALUEWHEN(L1>0,L1)COLORYELLOW,LINETHICK2;
P1:=18;
NH:=1;
CC:=(2*C+H+L)/4;
KS:=BARSCOUNT(C)+2;
M:=IF(KS<P1,KS,P1);
GL:=Abs((M*CC-SUM(CC,M))/SUM(CC,M))+NH/453;
DTZQ:=INTPART(NH/GL+0.5),NODRAW;
AFW1:=EMA((2*EMA(C,2*DTZQ)-EMA(C,1*DTZQ)),DTZQ)COLORGREEN;
AFW2:=EMA((2*EMA(C,1*DTZQ)-EMA(C,2*DTZQ)),DTZQ);
AJX:(AFW1+AFW2)/2,COLORRED,LINETHICK2;
ASK:=AJX-((C-AJX)*C-AJX)/AJX,DOTLINE,COLORRED;
AKS:=EMA(ASK,1*DTZQ),DOTLINE,COLORWHITE;
WX:=REF(C,BArslAST(AKS=LLV(AKS,1*DTZQ) AND AKS<0)),COLORABCABC,LINETHICK2;
JAX:EMA(AJX-((C-AJX)*C)/AJX,DTZQ),COLORWHITE,LINETHICK2;
TLAMSENR:=MAX(MAX((HIGH-LOW),ABS((REF(CLOSE,1)-HIGH))),ABS((REF(CLOSE,1)-LOW)));
ATR:=MA(TLAMSENR,13);
VAR1AL:=(REF(CLOSE,1)-REF(ATR,1));
平台线:=(HHV(VAR1AL,12)),DOTLINE,COLOR0080FF;
{彩色k线柱}
{3D天蓝}
STICKLINE(O>C AND CLOSE< REF(CLOSE,1),CLOSE ,OPEN,2.7,0 ),COLORFF7700;
STICKLINE(O>C AND CLOSE< REF(CLOSE,1),CLOSE ,OPEN,2.3,0 ),COLORFF9900;
STICKLINE(O>C AND CLOSE< REF(CLOSE,1),CLOSE ,OPEN,1.8,0 ),COLORFFBB00;
STICKLINE(O>C AND CLOSE< REF(CLOSE,1),CLOSE ,OPEN,1.3,0 ),COLORFFCC00;
STICKLINE(O>C AND CLOSE< REF(CLOSE,1),CLOSE ,OPEN,0.8,0 ),COLORFFDD00;
STICKLINE(O>C AND CLOSE< REF(CLOSE,1),CLOSE ,OPEN,0.3,0 ),COLORFFEE00;
STICKLINE(O>C AND CLOSE< REF(CLOSE,1),CLOSE ,OPEN,0.1,0 ),COLORFFFF00;
{3D枣红}
STICKLINE(CLOSE>REF(CLOSE,1),CLOSE,OPEN,2.7,0) ,COLOR000055;
STICKLINE(CLOSE>REF(CLOSE,1),CLOSE,OPEN,2.3,0) ,COLOR000066;
STICKLINE(CLOSE>REF(CLOSE,1),CLOSE,OPEN,1.8,0) ,COLOR000077;
STICKLINE(CLOSE>REF(CLOSE,1),CLOSE,OPEN,1.3,0) ,COLOR000099;
STICKLINE(CLOSE>REF(CLOSE,1),CLOSE,OPEN,0.8,0) ,COLOR0000BB;
STICKLINE(CLOSE>REF(CLOSE,1),CLOSE,OPEN,0.3,0) ,COLOR0000DD;
STICKLINE(CLOSE>REF(CLOSE,1),CLOSE,OPEN,0.1,0) ,COLOR0000FF;
VAR9Q:=C= HHV(C,4)AND (REF(C,1)>=REF(C,2) OR REF(C,1)>=REF(C,3))
OR REF(C,1)=HHV(C,4) AND CLOSE>=REF(C,2) OR REF(C,2)=HHV(C,4)
AND REF(C,3)=LLV(C,4) AND C>=REF(C,1) OR REF(C,3)=HHV(C,4)
AND C>=REF(C,1) AND C>=REF(C,2);
STICKLINE(VAR9Q,C,(O+C)/2,2.7,0),COLOR000055;
STICKLINE(VAR9Q,C,(O+C)/2,2.3,0),COLOR000066;
STICKLINE(VAR9Q,C,(O+C)/2,1.8,0),COLOR000077;
STICKLINE(VAR9Q,C,(O+C)/2,1.3,0),COLOR000099;
STICKLINE(VAR9Q,C,(O+C)/2,0.8,0),COLOR0000BB;
STICKLINE(VAR9Q,C,(O+C)/2,0.3,0),COLOR0000DD;
STICKLINE(VAR9Q,C,(O+C)/2,0.1,0),COLOR0000FF;
VARAQ:=C=HHV(C,4) AND REF(C,1)=LLV(C,4);
{3D粉红色}
STICKLINE(VARAQ,C,(O+C)/2,2.7,0),COLORFF11FF;
STICKLINE(VARAQ,C,(O+C)/2,2.3,0),COLORFF33FF;
STICKLINE(VARAQ,C,(O+C)/2,1.8,0),COLORFF55FF;
STICKLINE(VARAQ,C,(O+C)/2,1.3,0),COLORFF77FF;
STICKLINE(VARAQ,C,(O+C)/2,0.9,0),COLORFF99FF;
STICKLINE(VARAQ,C,(O+C)/2,0.3,0),COLORFFBBFF;
STICKLINE(VARAQ,C,(O+C)/2,0.1,0),COLORFFddfF;
VARBQ:=C=LLV(C,4) AND (REF(C,1)<REF(C,2) OR REF(C,1)<REF(C,3))
OR REF(C,1)=LLV(C,4) AND C<REF(C,2) OR REF(C,2)=LLV(C,4)
AND REF(C,1)=HHV(C,4) AND C<REF(C,1) OR REF(C,3)=LLV(C,4)
AND C<REF(C,1) AND C<REF(C,2);
{3D银灰色}
STICKLINE(VARBQ,C,(O+C)/2,2.7,0),COLOR333333;
STICKLINE(VARBQ,C,(O+C)/2,2.3,0),COLOR555555;
STICKLINE(VARBQ,C,(O+C)/2,1.8,0),COLOR777777;
STICKLINE(VARBQ,C,(O+C)/2,1.3,0),COLOR999999;
STICKLINE(VARBQ,C,(O+C)/2,0.8,0),COLORBBBBBB;
STICKLINE(VARBQ,C,(O+C)/2,0.3,0),COLORDDDDDD;
STICKLINE(VARBQ,C,(O+C)/2,0.1,0),COLORFFFFFF;
VARCQ:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4)
AND REF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);
STICKLINE(VARCQ,O,(O+C)/2,2.3,0),COLOR0099FF;
{涨跌停板变色}
ZTZ:=IF(CODELIKE('688') OR (CODELIKE('300') AND DATE>=1200824),(C>=ZTPRICE(REF(CLOSE,1),0.2) AND C=H)
,(C>=ZTPRICE(REF(CLOSE,1),0.1) AND C=H));
STICKLINE(ZTZ,(O+C)/2,H,3,0),COLORFF00FF;
DTZ:=IF(CODELIKE('688') OR (CODELIKE('300') AND DATE>=1200824),(C<=DTPRICE(REF(CLOSE,1),0.2) AND C=L)
,(C<=DTPRICE(REF(CLOSE,1),0.1) AND C=L));
STICKLINE(DTZ,L,(O+C)/2,3,0),COLORBLUE;
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
{DRAWTEXT(crOSS(买线,卖线)AND 箱顶>=REF(箱顶,1),LOW*0.95,'★跟'),COLOR00FFFF;}
STICKLINE(CROSS(买线,卖线),O,C,3.0,0),COLOR117777; {黄金柱}
STICKLINE(CROSS(买线,卖线),O,C,2.5,0),COLOR119999;
STICKLINE(CROSS(买线,卖线),O,C,2.0,0),COLOR11BBBB;
STICKLINE(CROSS(买线,卖线),O,C,1.5,0),COLOR11DDDD;
STICKLINE(CROSS(买线,卖线),O,C,1.0,0),COLOR33FFFF;
STICKLINE(CROSS(买线,卖线),O,C,0.5,0),COLOR55FFFF;
STICKLINE(CROSS(买线,卖线),O,C,0.1,0),COLOR55FFFF;



未来函数检测结果如下:
该公式包含未来函数:XMA
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图