Pinescript development

Job ID: 35026326

Budget: ₹600 – ₹1,500 INR

draw horizontal ray when a specific condition is met.
I need it for 5 min and 30 minutes timeframe in the same chart.

Specific condition is either open = Low or Open = High

a. for current session in need to draw horizontal ray from high and low values of the bar when condition is met. I need it for 5 mins candle
b. I need to have a lookback period as input and depending on the look back period i need to draw the same for all previous session for 30 minutes candle.

all open =hIgh horizontal rays should be red and all open = low horizontal rays should be green.
for 30 minutes candle bar thickness should be set at 2 and for 5 minutes intraday (current session) thick ness should be 1.
Related categories: Windows Desktop Pine Script