同花顺能量指数副图指标 源码介绍
同花顺能量指数副图指标 源码
P:=AMOUNT/VOL/100;
MH:=MAX(H,REF(C,1));
ML:=MIN(L,REF(C,1));
N:=(P-ML)/(MH-ML);
DT:=IF(H>L,N*AMOUNT,AMOUNT/2);
INDEXP:=INDEXA/INDEXV/100;
INDEXMH:=MAX(INDEXH,REF(INDEXC,1));
INDEXML:=MIN(INDEXL,REF(INDEXC,1));
INDEXN:=(INDEXP-INDEXML)/(INDEXMH-INDEXML);
INDEXDT:=ABS(INDEXN)*INDEXA;
个股量能:EMA(100*(DT-LLV(DT,34))/(HHV(DT,34)-LLV(DT,34)),3),colorred,LINETHICK2;
大盘量能:EMA(100*(INDEXDT-LLV(INDEXDT,34))/(HHV(INDEXDT,34)-LLV(INDEXDT,34)),3),colorgreen,LINETHICK2;
20,POINTDOT,COLORF00FF0;
50,POINTDOT,colorgreen;
80,POINTDOT,colorwhite;
gd47930