通达信邱一平量能饱和度范例实用3篇

网友 分享 时间:

【参考阅览】此篇精品资料“通达信邱一平量能饱和度范例实用3篇”由阿拉网友整理分享,帮您减少加班熬夜,轻松写作尽在阿拉范文,希望对您有所帮助,喜欢就复制下载支持吧!

通达信邱一平量能饱和度1

{能量饱和度:}

DRAWRECTREL(2,0,250,1000,RGB(255,0,0));

DRAWTEXTREL(15,50,'(一)根据量大成头的原理,'),COLORGREEN{COLORWHITE};

DRAWTEXTREL(10,200,''),COLORYELLOW;

DRAWTEXTREL(10,350,'当量能饱和度出现饱和,而当前股价正巧位于一处高价区时,暗示该价位成为该时期峰顶的机率将会大幅增加。'),COLORGREEN;

DRAWTEXTREL(10,460,''),COLORGREEN;

DRAWTEXTREL(10,560,'(二)根据爆发力原理,'),COLORGREEN;

DRAWTEXTREL(10,660,''),COLORGREEN;

DRAWTEXTREL(10,760,'当量能饱和度在一处股价的低价区出现饱和时,该价位便很可能成为一处起涨点。'),COLORGREEN;

A:=EMA(AMOUNT/C/1000000,7);

MID:=EMA(A,N);

UPPER:=MID+p/100*STD(A,N);{,colorgreen};

LOWER:=MID-p/100*STD(A,N);

量能:(A-LOWER)/(UPPER-LOWER),STICK,COLOR9999fc;

上限:1,POINTDOT,colorgreen;

下限:0,POINTDOT;

STICKLINE(量能>1,1,量能,8,0),colorred;

STICKLINE(量能<0,0,量能,2,0),colorgreen;

通达信邱一平量能饱和度2

input:N(20,1,100);

SAT:IF((AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N))*100>100,100,(AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N))*100);

STICKLINE(((CLOSE>0)ANDBARSTATUS=2),20,121,40,1),colorFFFFFF;

STICKLINE(((SAT<=5)ANDBARSTATUS=2),21,(20+SAT),35,0),colorFFFFFF;

STICKLINE((((SAT>5)AND(SAT<=20))ANDBARSTATUS=2),21,(20+SAT),35,0),colorCCFF88;

STICKLINE((((SAT>20)AND(SAT<=40))ANDBARSTATUS=2),21,(20+SAT),35,0),colorFF00FF;

STICKLINE(((SAT>40)ANDBARSTATUS=2),21,(20+SAT),35,0),color0000FF;

IFBARSTATUS=2and(SAT)THENBEGINDRAWTEXTREL(700,800,'量能饱和度:'+NUMTOSTRN(SAT,0)),LINETHICK6,COLORccffcc;end;

DRAWTEXTREL(0,0,'(一)根据量大成头的原理,当量能饱和度出现饱和,而当前股价正巧位于一处高价区时,暗示该价位成为该时期峰顶的机率将会大幅增加。'),COLORYELLOW;

DRAWTEXTREL(0,100,'(二)根据爆发力原理,当量能饱和度在一处股价的低价区出现饱和时,该价位便很可能成为一处起涨点。'),COLORYELLOW;

通达信邱一平量能饱和度3

源码

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~80:STICKLINE((饱和度>5AND饱和度

量能80~97:STICKLINE((饱和度>80AND饱和度

量能≥97:STICKLINE(饱和度>=97,5,饱和度,4,0),COLORYELLOW;

{IFBARSTATUS=2AND(饱和度)THENBEGINDRAWTEXTREL(0,100,"饱和度:"+NUMTOSTRN(饱和度,2)),LINETHICK6,COLORCCFFCC;END;

DIFF:(EMA(CLOSE,9)-EMA(CLOSE,17))*50,COLORRED;};

48 2286656
");