同花顺千钧能量趋势副图公式
源码
RV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
RG:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;
J0:=(HIGH+LOW)/2;QJ:=EMA(J0,3);J1:=IF(CLOSE QJ,VOL,0);J2:=IF(CLOSE QJ,VOL,0);
量能:IF(CAPITAL 1,MA(VOL,74),MA(SUM(J1-J2,22),3)),color00DDDD,LINETHICK;
趋势:IF(CAPITAL 1,WMA(量能,360),WMA(量能,21)),color008800,LINETHICK;
var3:=(量能-趋势);var4:=SMA(RV,3,1);
var5:=SMA(var4,3,1);
STICKLINE(var3 0,100,50,10,0),color990099;
STICKLINE(var3 0,0,50,10,0),color008800;
DRAWICON(CROSS(var4,var5) AND var5 30,2,4);
DRAWICON(CROSS(var5,var4) AND var5 30,97,5);
FILLRGN(var4,var5,var4 var5,COLORFF8800);
FILLRGN(var5,var4,var4 var5,COLOR0000BB);
KK:EMA(SMA(RG,3,1),2),COLORFFFFFF;DD:SMA(KK,3,1),COLOR00FFFF;
//DRAWTEXTEX(CLOSE,1,10,10,STKLABEL+' '+STKNAME+''),Color00DDFF;
DRAWTEXT(CROSS(var4,var5) AND CROSS(KK,DD),10,'共振点'),COLOR00FFFF;
VERTLINE(CROSS(var4,var5) AND CROSS(KK,DD),2),COLOR00FFFF;