Code: Select all
setstopshare;
PT = (close[barssinceentry]/100*Target)*bigpointvalue;
setprofittarget(PT);
will close a position with 1 % Profit from Entryprice, but
Code: Select all
setstopshare;
PT = (entryprice/100*Target)*bigpointvalue;
setprofittarget(PT);