Hi i am using a simple moving average on a 1 minute chart and when you increase the size of the average on bad days you get into a loop
of losses is there a simple code to stop trading after a max loss(350?) is hit and then reset the the next day. Thanks David
Because this feature is a common query, a code snippet has been put into a blog article, you can copy/paste it into your strategy:
https://www.prorealcode.com/blog/learning/max-profit-loss-day-trading-strategy/