Need Help with Expert Advisor-Newbie

My friend coded this EA of parabolic SAR, If take profit or stop loss is hit and parabolic sar signal is there, this EA opens trade again, is there any way to limit only one trade per signal. I will really appreciate any help. I have attached the EA.