I would like to create some code for the algo to stop trading for the day when:
1. PnL is greater or equal to $400 Daily Max Profit user input parameter in strategy analyzer
2. PnL is less than $200. Daily Max Loss user input parameter in strategy analyzer
I would also like to use strategy analyzer to back test and optimize the Daily Max Profit and Daily Max Loss.
Can I please have some help with building this logic?
Thank you so much.

Comment