Macd crossover backtesting

my question is on backtest in pi , how are the profit and loss ratios calculated on trades?
i want to backtest a mac d crossover strategy in the daily chart, how do i set up the back testing results where after a signal is generated the profit is calculated after 4 points, in other words i want to exit after 4 points and want to backtest the results based on this .