通达信量能饱和公式

2016-06-07 09:16:00来源:本站整理浏览:220

通达信量能饱和公式

源码

N1:=4;N2:=8;N3:=16;M:=6;N:=34;

HH:=MAX(HIGH,REF(CLOSE,1));
LL:=MIN(LOW,REF(CLOSE,1));
AA:=SUM(CLOSE-LL,N1)/SUM(HH-LL,N1);
BB:=SUM(CLOSE-LL,N2)/SUM(HH-LL,N2);
CC:=SUM(CLOSE-LL,N3)/SUM(HH-LL,N3);
B:(AA/N1+BB/N2+CC/N3)*N1*N2*N3/(N1*N2+N2*N3+N1*N3)*100,COLORRED,LINETHICK2;
S:EMA(B,M),COLORCYAN,LINETHICK2;
{DRAWGBKLAST(V>1,STRIP(RGB(0,0,0),RGB(90,90,90),0));}
SAT:=(AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N));
饱和度:IF(SAT>1,1,SAT)*100;
量能≤5:STICKLINE(饱和度<=5,5,饱和度+20,4,0),COLORWHITE;
量能5~80:STICKLINE((饱和度>5 AND 饱和度< 80),5,饱和度+8,4,0),COLOR5290FF;
量能80~97:STICKLINE((饱和度>80 AND 饱和度< 97),5,饱和度,4,0),COLORRED;
量能≥97:STICKLINE(饱和度>=97,5,饱和度,4,0),COLORYELLOW;
{IF BARSTATUS=2 AND (饱和度) THEN BEGIN DRAWTEXTREL(0,100,'饱和度:'+NUMTOSTRN(饱和度,2)),LINETHICK6,COLORCCFFCC;END;
DIFF : (EMA(CLOSE,9) - EMA(CLOSE,17))*50,COLORRED;};

 


 


 

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式