Pinescript for 1:1 (risk to reward ration)

Job ID: 34238645

Budget: ₹600 – ₹1,500 INR

I have a pine script where i have created an entry signal but i am not able to create the R:R from the entry.
Related categories: Python Pine Script