I want a code that shows me support and resistance on the chart

i want a code that shows me support and resistance on the chart(in the form of r1 r2 r3 & s1 s2 s3).

Many trading platforms give pivot points option by default, you can check with your broker.

Pivot points also can be used as support and resistance levels.