Exit all positions when target and loss is met

Hello,

Please help to write a code in Python in which I want to exit from positions if the target or stop loss is achieved. I am a beginner in Python but have got training in it.

1 reply