need algo to close my all positions, when my mtm target or stop-loss hit

Job ID: 35658433

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

need algo to close my all positions, when my mtm target or stop-loss hit,
eg. suppose i set my mtm stoploss of 1000 for today
and my mtm take profit at 2000
then when my mtm reach my target or stoploss
all my open positions should closed
on my broker.
i have uptox and fyres as a stock broker
Related categories: Python Pine Script Trading