通达信多空动力源码副图

[复制链接]
查看132 | 回复0 | 2021-8-20 15:40:34 | 显示全部楼层 |阅读模式

以下是通达信多空动力源码副图(无源码的请下载附件导入)

JJ:=DMA((HIGH+LOW+CLOSE*2)/4,0.9);

QJJ:=VOL/((HIGH-LOW)*2-(ABS(CLOSE-OPEN)));

XVL:=IF(CLOSE>OPEN,QJJ*(HIGH-LOW),IF(CLOSE<OPEN,QJJ*(HIGH-OPEN+CLOSE-LOW),VOL/2))+IF(CLOSE>OPEN,-QJJ*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,-QJJ*(HIGH-LOW),-VOL/2));

HSL:=XVL/20/1.15;

攻击流量:=HSL*0.55+REF(HSL,1)*0.33+REF(HSL,2)*0.22;

STICKLINE(HSL*0.4>=0,HSL*0.4*1.5,0,0,0),COLOR0000FF;

STICKLINE(HSL*0.4<0,HSL*0.4*1.5,0,0,0),COLORFFBE00;

GJJ:=EMA(攻击流量,8);

今日:EMA(攻击流量,3),NODRAW;

STICKLINE(今日>=REF(今日,0) AND 今日>0,0,今日,3,0),COLOR000033;

STICKLINE(今日>=REF(今日,0) AND 今日>0,0,今日,2.4,0),COLOR000055;

STICKLINE(今日>=REF(今日,0) AND 今日>0,0,今日,1.6,0),COLOR000077;

STICKLINE(今日>=REF(今日,0) AND 今日>0,0,今日,0.8,0),COLOR000099;

STICKLINE(今日>=REF(今日,0) AND 今日>0,0,今日,0.4,0),COLOR0000BB;

STICKLINE(今日>=REF(今日,0) AND 今日>0,0,今日,0.2,0),COLOR0000DD;

STICKLINE(今日>=REF(今日,0) AND 今日>0,0,今日,0.05,0),COLOR0000FF;

 

STICKLINE(今日<=REF(今日,0) AND 今日<0,0,今日,3,0),COLORBB3300;

STICKLINE(今日<=REF(今日,0) AND 今日<0,0,今日,2.4,0),COLORFF5500;

STICKLINE(今日<=REF(今日,0) AND 今日<0,0,今日,1.6,0),COLORFF7700;

STICKLINE(今日<=REF(今日,0) AND 今日<0,0,今日,0.8,0),COLORFF9900;

STICKLINE(今日<=REF(今日,0) AND 今日<0,0,今日,0.4,0),COLORFFBB00;

STICKLINE(今日<=REF(今日,0) AND 今日<0,0,今日,0.2,0),COLORFFDD00;

STICKLINE(今日<=REF(今日,0) AND 今日<0,0,今日,0.05,0),COLORFFFF00;

 

昨日:REF(今日,1),NODRAW,COLOR6633FF;

前日:REF(今日,2),NODRAW,COLORFF00FF;

三日前:REF(今日,3),NODRAW,COLOR00DDFF;

ZJLL:=REF(今日,1);

QZJJ:=(今日-ZJLL)/ZJLL*100;

增幅%:IF(今日>0 AND ZJLL<0,ABS(QZJJ),IF(今日<0 AND ZJLL<0 AND 今日<ZJLL,-QZJJ,QZJJ)),NODRAW;

周流量:SUM(今日,5),NODRAW;

BB:=REF(周流量,1);

ZQZJJ:=(周流量-BB)/BB*100;

周增幅%:IF(周流量>0 AND BB<0,ABS(ZQZJJ),IF(周流量<0 AND BB<0 AND 周流量<BB,-ZQZJJ,ZQZJJ)),NODRAW;

多方力度:HSL/1000,NODRAW;

动力线:GJJ,COLOR00FFFF;

趋势线:=MA((CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100 ,2)NODRAW;

超卖区:(趋势线<-20)NODRAW;

DRAWICON(趋势线<-20,0,41);

 

ZDZ:=CONST(HHV(HSL*0.4*1.5,120));

ZXZ:=CONST(LLV(HSL*0.4*1.5,120));

DFX:=(ZDZ-ZXZ)/6;

LWS:=CURRBARSCOUNT;

DRAWTEXT(LWS=110,ZDZ,'说明:'),COLORFFFFFF;

DRAWTEXT(LWS=100,ZDZ,'红柱=多方'),COLOR0000FF;

DRAWTEXT(LWS=90,ZDZ,'蓝柱=空方'),COLORFFFF00;

DRAWTEXT(LWS=80,ZDZ,'影线=方向'),COLOR00FFFF;
 

628555313.png

628555313.png

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则