买入盈利:a0-买入止损/买入止损*100,nodraw;
if(a1x =0,买入止损,drawnull),colorred,linethick2;
if(a1x =0,a1,drawnull),colorred,linethick2;
if(h =ref(a0,g1)*1.1,ref(a0,g1)*1.1,drawnull),colorgreen,pointdot;
if(h =ref(a0,g1)*1.2,ref(a0,g1)*1.2,drawnull),colorgreen,pointdot;
if(h =ref(a0,g1)*1.3,ref(a0,g1)*1.3,drawnull),colorgreen,circledot;
if(h =ref(a0,g1)*1.4,ref(a0,g1)*1.4,drawnull),colorgreen,pointdot;
if(h =ref(a0,g1)*1.5,ref(a0,g1)*1.5,drawnull),colorgreen,pointdot;
if(h =ref(a0,g1)*1.6,ref(a0,g1)*1.6,drawnull),colorgreen,pointdot;
if(h =ref(a0,g1)*1.7,ref(a0,g1)*1.7,drawnull),colorgreen,pointdot;