In Pi backtest - results if first signal is Long and second is short then does it means we need to sq off long position on second signal and take another short position or wait for next signal?

It depends on your target / profit percentage, and how much risk you what to take. also depends on your strategy you are using.