{涨跌幅计算}
Z字转向:=ZIG(3,Z);
涨幅度:(Z字转向 REF(Z字转向,1))*(C/TROUGH(3,Z,1)-1)*100,COLORRED;
跌幅度:(Z字转向 REF(Z字转向,1))*(C/PEAK(3,Z,1)-1)*100,COLORWHITE;
顶部周期:=BARSLAST(涨幅度);
底部周期:=BARSLAST(跌幅度);
{顶部值:HHV(涨幅度,顶部周期),NODRAW,COLORWHITE;
底部值:LLV(跌幅度,(顶部周期)),NODRAW,COLORWHITE;}
前涨幅:=REF(涨幅度,顶部周期),NODRAW,NODRAW,COLORWHITE;
价跌幅:(C-HHV(C,顶部周期))/C*100,NODRAW,COLORWHITE;{www.9m8.cn 九毛八公式指标网}
价涨幅:(C-LLV(C,(底部周期+1)))/LLV(C,(底部周期+1))*100,NODRAW,COLORWHITE;