大智慧分时高低通道指标公式

[复制链接]
查看117 | 回复0 | 2021-8-21 13:53:16 | 显示全部楼层 |阅读模式

DRAWTEXTABS(680,2,'上涨家数:'+NUMTOSTRN(DYNAINFO(69),0)),COLOR0000FF;
DRAWTEXTABS(765,2,'下跌家数:'+NUMTOSTRN(DYNAINFO(70),0)),COLOR00FF00;
DRAWTEXTABS(850,2,'平盘家数:'+NUMTOSTRN(DYNAINFO(71),0)),COLORFFFFFF;
昨收:=DYNAINFO(3);
S1:=sma(c,3,1);
S2:=sma(c,5,1);
dk:=10*(S1-S2);
kk:=IF(DATATYPE=8,0.95,1);
STICKLINE(dk>0,昨收*kk,昨收*kk+dk,0,1),COLORRED;
STICKLINE(dk<0,昨收*kk,昨收*kk+dk,0,1),COLORCYAN;
{股旁网-股票公式网站 www.GUpang.com}
M:=0; N:=30;
强压力:IF(SUM(C*VOL,M)/SUM(VOL,M)>0,IF(SUM(C*VOL,M)/SUM(VOL,M)*(1+(N/1000))>=DYNAINFO(3)*1.1,DYNAINFO(3)*1.1,SUM(C*VOL,M)/SUM(VOL,M)*(1+(N/1000))),IF(C*(1+(N/1000))>=DYNAINFO(3)*1.1,DYNAINFO(3)*1.1,C*(1+(N/1000)))),color00ff00;
压力线:IF(SUM(C*VOL,M)/SUM(VOL,M)>0,IF(SUM(C*VOL,M)/SUM(VOL,M)*(1+(N/2000))>=DYNAINFO(3)*1.1,DYNAINFO(3)*1.1,SUM(C*VOL,M)/SUM(VOL,M)*(1+(N/2000))),IF(C*(1+(N/2000))>=DYNAINFO(3)*1.1,DYNAINFO(3)*1.1,C*(1+(N/2000)))),colorffcc00;
平衡线:IF(SUM(C*VOL,M)/SUM(VOL,M)>0,SUM(C*VOL,M)/SUM(VOL,M),C),color00ffff;
支撑线:IF(SUM(C*VOL,M)/SUM(VOL,M)>0,IF(SUM(C*VOL,M)/SUM(VOL,M)*(1-(N/2000))>=DYNAINFO(3)*1.1,DYNAINFO(3)*1.1,SUM(C*VOL,M)/SUM(VOL,M)*(1-(N/2000))),IF(C*(1-(N/2000))>=DYNAINFO(3)*1.1,DYNAINFO(3)*1.1,C*(1-(N/2000)))),Color66FF99;
强支撑:IF(SUM(C*VOL,M)/SUM(VOL,M)>0,IF(SUM(C*VOL,M)/SUM(VOL,M)*(1-(N/1000))>=DYNAINFO(3)*1.1,DYNAINFO(3)*1.1,SUM(C*VOL,M)/SUM(VOL,M)*(1-(N/1000))),IF(C*(1-(N/1000))>=DYNAINFO(3)*1.1,DYNAINFO(3)*1.1,C*(1-(N/1000)))),COLOR6666ff;
PARTLINE(CLOSE,BETWEEN(CLOSE,支撑线,压力线),RGB(255,255,255),BETWEEN(CLOSE,压力线,强压力),RGB(255,0,255),CLOSE>=强压力,RGB(255,0,0)),linethick2;
PARTLINE(CLOSE,BETWEEN(CLOSE,支撑线,强支撑),RGB(0,255,255),CLOSE<=强支撑,RGB(0,255,0)),linethick2;
{以下为分时突破}
XG:=HHV(H,480);
STICKLINE(FILTER(CROSS(C,REF(XG,1)),10),C*0.99,C,8,0),COLORgreen;
DRAWTEXT(FILTER(CROSS(C,REF(XG,1)),10),C*0.99,'↖上突'),COLORYELLOW;
T:=BARSCOUNT(C);
TP:= FILTER( C>=HHV(H,T) AND V>MA(V,0)*2 AND DYNAINFO(17)>1 AND TIME0>39600,240) ;
DRAWTEXT(TP,L,'↖突破'),COLORmagenta;
VERTLINE(tp,1),COLORwhite,LINETHICK2;
HHV(h,T),DOTLINE,Color00FFFF;

202108211249.jpg

202108211249.jpg

 

回复

使用道具 举报

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

本版积分规则