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