量能画线副图公式
最后涨停量能柱向右画线
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,2,0),COLORRED;
STICKLINE(DIF<DEA,0,VOL,2,0),COLORYELLOW;
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;
TJ:=C>REF(C,1)*1.095 AND C=H;
T:=REF(BARSLAST(TJ),1)+1;
DRAWLINE(CURRBARSCOUNT=CONST(T)+1,VOL,CURRBARSCOUNT=CONST(T),REF(VOL,1),1),COLORYELLOW,LINETHICK2;
STICKLINE(J>D,VOL/2,VOL,2,0),COLORRED;
STICKLINE(J<D,VOL/2,VOL,2,0),COLORYELLOW;
74533235.jpg
|