M:=20;
均价:=(2*C+(C+H+L+O)/4+O)/4;
R:=(3*L+2*均价)/5;R1:=(3*H+2*均价)/5;KX:=(R+R1)/2;
跟庄线:WMA(SUM(KX*V,2)/SUM(V,2),M),COLORWHITE,LINETHICK2;
止损:((M/4)*HHV(REF(跟庄线,1),1)-(M/4-1)*跟庄线),COLORGREEN;
止赢:2*跟庄线-止损,COLORYELLOW;
PARTLINE(止赢>止损 AND KX>跟庄线,跟庄线),COLOR6600FF,LINETHICK2;