how do i set my gain and stop target as a percentage?
In Backtest Trading Systems dialog you can set "Maximum loss", that is stop loss. You can also set "Maximum drawdown". For more details have a look here (https://stockalyze.com/help/manual/topics/backtest.html).