飞狐市场盈亏副图指标
源码
{市场盈亏1}
F1:=4;F2:=5;
VAR2:=VOL*CLOSE;
VAR3:=EMA(VAR2,13)/EMA(VOL,13);
CYS: (EMA(CLOSE,P1)-VAR3)/VAR3*100;
ML: EMA(CYS,P2);
LO: 0, POINTDOT;
{市场盈亏2(市场盈亏5日)}
Var1:=VOL/SUM(VOL,5);
Var2:=DMA(CLOSE,Var1);
市场盈亏(5日): (CLOSE-Var2)/Var2*100;
{市场盈亏3(市场盈亏32日)}
Var1:=DMA(CLOSE,VOL/SUM(VOL,34));
市场盈亏(32日): (CLOSE-Var1)/Var1*100;