能量饱和-精品通达信指标公式源码分享

通达信免费指标 05-26 阅读:95 评论:0

Snipaste_2020-06-08_18-51-46.png

M:=1.2;


N1:=34;


N2:=N1*1.05;


N3:=N1+3;


SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));


量能饱和度:IF(SAT>1,1,SAT)*100,COLORLIBLUE,NODRAW;


中点:=REFDATE(HHV(V,100)/2,DATE);{量能饱和的变色切换}


DRAWTEXT(CURRBARSCOUNT=N3,中点*1.82,量能饱和度),COLORBLUE;


VOLUME:VOL,VOLSTICK;


SHORT:=12;


LONG:=26;


MID:=9;


DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);


DEA:=EMA(DIF,MID);


MACD:=(DIF-DEA)*2,COLORSTICK;


STICKLINE(DIF>DEA,0,VOL,3,0),COLORRED;


STICKLINE(DIF<DEA,0,VOL,3,0),COLORGREEN;


N:=9;


M1:=3;


M2:=3;


RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;


K:=SMA(RSV,M1,1);


D:=SMA(K,M2,1);


J:=3*K-2*D;


STICKLINE(J>D,VOL/2,VOL,3,0),COLORRED;


STICKLINE(J<D,VOL/2,VOL,3,0),COLORGREEN;


版权声明

本文版权归掌上指标所有。
未经许可,不得转载,转载请注明出处!

服务热线

18020657357

微信客服

微信客服