通达信用K线直接显示买卖趋势主图源码

【由于通达信函数与大智慧的区别这个不能与大智慧完全一样.但是用起来影响不大.其他说明请看大智慧的内容.他们的核心还是相同的:-----------------
公式源码:----------------------------------------------------------
{二九宽带}
上18H:WMA(SMA(HHV(HIGH,18),9/2,1),3),COLOR00FF00,DOTLINE;
下18L:WMA(SMA(LLV(LOW,18),9/2,1),3),COLOR009900,DOTLINE;
通道:(上18H+下18L)/2,COLOR0598FF,DOTLINE;
DRAWBAND(上18H,RGB(60,0,60),通道,RGB(60,0,60));
DRAWBAND(通道,RGB(0,60,0),下18L,RGB(0,60,0));
WMA(SMA(HHV(HIGH,18),9/2,1),3),COLOR00FF00,DOTLINE;
WMA(SMA(LLV(LOW,18),9/2,1),3),COLOR009900,DOTLINE;
(上18H+下18L)/2,COLOR0598FF,DOTLINE;

{ACZC}
AC:=(C+REF(C,1)-HHV(H,2)-LLV(L,2));
MX:=MAX(AC,MAX(ABS(AC-HHV(H,2)),ABS(AC-LLV(L,2))));
WX4:WMA(MX,4),COLORFF4567;
ZC:=(2.5*C+H+L+O*0.5)/5;
ZC4:WMA(ZC,4),COLOR00FF00,LINETHICK2;
IF(ZC4>REF(ZC4,1),ZC4,DRAWNULL),COLORRED,LINETHICK3;
{MACD}
DIF:=EMA(CLOSE,7) - EMA(CLOSE,13);
DEA:=EMA(DIF,3);
DRAWTEXT(CROSS(DIF,DEA),L*0.99,'DIF'),COLOR0077FF,LINETHICK1;
DRAWTEXT(CROSS(DEA,DIF),H*1.02,'DEA'),COLOR00FF00,LINETHICK1;
{高抛}
SJ:=WMA((ZC-LLV(L,5))/(HHV(H,5)-LLV(L,5))*100,2);
ZJ:=WMA(0.618*REF(SJ,1)+0.382*SJ,2);
DRAWTEXT(CROSS(ZJ,SJ) AND SJ>70,H+0.1,'←高抛'),COLOR00FFFF,LINETHICK2;
 

{趋势涨K线}
AA:=(WX4-ZC4)<=0 ;
BB:=(WX4-ZC4)>0;
CC:=(ZC4-REF(ZC4,1))>0 AND (REF(ZC4,1)-REF(ZC4,2))>0;
{趋势跌K线}
STICKLINE(BB ,HIGH ,LOW,0,0 ),COLORGREEN;
STICKLINE(BB ,CLOSE ,OPEN,3,0 ),COLOR00DD00;
STICKLINE(BB ,CLOSE ,OPEN,2,0 ),COLOR00EE00;
STICKLINE(BB ,CLOSE ,OPEN,1,0 ),COLOR00FF00;
STICKLINE(BB ,CLOSE ,OPEN,0,0) ,COLOR00FF00;

STICKLINE(AA OR CC ,HIGH ,LOW,0,0 ),COLOR0000FF;
STICKLINE(AA OR CC ,CLOSE,OPEN,3,0) ,COLOR0000DD;
STICKLINE(AA OR CC ,CLOSE,OPEN,2,0) ,COLOR0000EE;
STICKLINE(AA OR CC ,CLOSE,OPEN,1,0) ,COLOR0000FF;
STICKLINE(AA OR CC ,CLOSE,OPEN,0,0) ,COLOR0000FF;

{原本涨跌}
STICKLINE(CLOSE>OPEN OR CLOSE=OPEN AND CLOSE>REF(CLOSE,1),H,H*1.001,2,0),COLORRED;
STICKLINE(CLOSE<OPEN OR CLOSE=OPEN AND CLOSE<=REF(CLOSE,1),L,L*0.999,2,0),COLORCYAN;
 




来函数检测结果如下:
该公式没有未来函数

解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

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

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