Code to exit after certain days in trade

I wanted to how to close a trade after 10 days, it would be great to get some help and

is their any way to exit long at next day opening

@Streak can you.

Do you want to create a short strategy or exit your current holding?

Exit position

With streak, you create trading strategies so both entry and exit rules need to be mentioned.

So you can create a short strategy and then exit your position once the trigger is sent. After which you can stop the strategy manually to avoid the long exit notification for the short entry. This is a workaround.