您的位置:查股网 > 查股公式 > 用K线直接显示买卖趋势 主图源码[查股公式]
股票行情消息查询:

用K线直接显示买卖趋势 主图源码[查股公式]

2022/5/31 18:33:33

{二九宽带}
上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;

相关文章列表
天天查股公式列表

股票公式分类

天天查股:股票行情消息 实时DDX在线 资金流向 千股千评 业绩报告 十大股东 最新消息 超赢数据 大小非解禁 停牌复牌 股票分红查询 股票评级报告
广告客服:315126368   843010021
天天查股网免费查股,本站内容与数据仅供参考,不构成投资建议,据此操作,风险自担,股市有风险,投资需谨慎。 沪ICP备15043930号-29