For side way market

breakout from sideways is it right ?

i attached below image

looks good… there is also breakout scanner you can take reference from it and check…

it Not working for strategies

This condition is incorrect, You are comparing a fraction with the Close price, Here Close will always be a bigger number.

You can try

Also, you can make changes to adjust to your specific requirement.

Thanks