@l-andorrà Thanks for this feedback, I thought that maybe the case looking at all of the options to do this. It seems a simple request to compare all in profit to 1st non-profit but now not the case.
@bigfoot Live tested this and magic number does the job and closes the trades as normaleven when turning the terminal off and on agin after the weekend. Solved thanks for your help guys! 😊