Error 130 means Invalid Stop level while sending order. So, you need to check what SL you are putting in. Please make sure your SL level is correct, and there is a proper gap as per your broker. Like 20 pips or so.
Check it properly and let us know if it is solved.
Similarly make sure you have proper and valid TP and lot size as per your broker.
This will solve your problem.