help me in coding the pivot strategy for zerodha pi

Buy: When price crosses above any of the pivot lines (r1,r2,r3)
sell: When price crosses below any of the pivot lines(s1,s2,s3)

pls give me code for zerodha pi scanner script.

you can call: 7025438834 (after market hours) or [email protected]