Hi Steve, Thanks for your response. pasted below is my code for a strategy. I'm having an issue with the exit condition. it's very erratic. Not exiting as per condition. Also pasted is the image of what the code should do. Appreciate and thanks in anticipation. //@version=5 // **********************...