How to write the condition in single line

is there a way to write the below condition in a single line ?

image

Tagging @Streak, so they can assist you with this.

Hi @Chirayu08

You can do this with the help of the Period Min/Max function. I have created a scanner for your requirement. Click on the link to view the conditions - Streak | World's first algo trading platform without coding

Refer to the following link to learn about the period min and period max function - Create (Advanced) - Streak Help

Hope this helps.

Yes thanks, I knew it can be done with period min and max functions but didn’t know how to write it. Thanks brother.