Correct a Pine Code -- 2

Job ID: 31532068

Budget: ₹800 – ₹1,000 INR

I want the study and strategy pine codes corrected to include Stop Loss and Take Profit logic. There should be a possibility to either use the SL and TP functionality or turn it off.
Related categories: Pine Script