在别人基础上改编的离心力选股指标和验证副图
离心力-选股
{M,1,10,6}
{N,1,20,10}
VAR2:=(C-MA(C,M))/MA(C,M)*100;
VAR3:=(C-MA(C,M*2))/MA(C,M*2)*100;
VAR4:=(C-MA(C,M*4))/MA(C,M*4)*100;
VAR5:=(VAR2+2*VAR3+3*VAR4)/6;
VAR6:=MA(VAR5,3);
离心力:=VAR6*5;
XG:=离心力>REF(离心力,1) AND REF(离心力,1)<REF(离心力,2) AND 离心力<-N;
离心力-验证副图
{M,1,10,6}
{N,1,20,10}
VAR2:=(C-MA(C,M))/MA(C,M)*100;
VAR3:=(C-MA(C,M*2))/MA(C,M*2)*100;
VAR4:=(C-MA(C,M*4))/MA(C,M*4)*100;
VAR5:=(VAR2+2*VAR3+3*VAR4)/6;
VAR6:=MA(VAR5,3);
离心力:VAR6*5,COLORGREEN;
IF(离心力>REF(离心力,1),离心力,DRAWNULL),COLORRED;
XG:=离心力>REF(离心力,1) AND REF(离心力,1)<REF(离心力,2) AND 离心力<-N;
STICKLINE(XG,离心力,15,1,0);