Build an Algo that cuts my position when a certain amount of loss hits

Job ID: 33361623

Budget: ₹1,500 – ₹12,500 INR

I want an Algo for my zerodha account that would square off my position instantly when a certain amount of Loss is hit in the total P&L.
Related categories: Python Excel Algorithm C++ Programming Coding