Camarilla Pivot point scanner code

How to create a scanner where the camarilla pivot levels(s3 and r3) are narrower tomorrow than today?

@trade4lyf Check out the image below to learn how to create conditions where the camarilla pivot levels(s3 and r3) are narrower tomorrow than today:

The formula for S3 is C – (H – L) x 0.275 and the formula for R3 is C + (H – L) x 0.275.

Note: Yesterday’s OHLC data is used for creating today’s Pivot levels and hence, today’s OHLC data is used for creating tomorrow’s pivot levels.

Also, note that it is an EOD(End of Day) scanner since the OHLC data of today is not unavailable until the market closes.