Hello, Thanks for your time! In my code, I want to make a variable (greenlineprice) equal to the highest point of the last 6 bars, but only when the conditions are met I used a variable (choice) to serve as a signal to my Switch&Case on when the conditions are met. The problem I have now is, the