Hello,
I am learning pine script v5 and i am trying to code a "simple" indicator which calculates the lowest high and the highest low among 60 min candles of the last 5 days of trade. Also, I want to define the perimeter of 5 full trade days (for instance, if today is Fri, I want to consider Thu, Wed, Tue, Mon and previous Fri) and among the 60 min candles of these days, calculate the lowest high / highest low, and assign these 2 values to each day, and plot them. In practice, in a 60 min timeframe chart, there will be two solid lines every day (one for lowest highs and one for highest lows), and then having a step the next day. How it is possible to do it in pinescript? I tried to use chatGPT but it is not helping.
Thanks in advance
I am learning pine script v5 and i am trying to code a "simple" indicator which calculates the lowest high and the highest low among 60 min candles of the last 5 days of trade. Also, I want to define the perimeter of 5 full trade days (for instance, if today is Fri, I want to consider Thu, Wed, Tue, Mon and previous Fri) and among the 60 min candles of these days, calculate the lowest high / highest low, and assign these 2 values to each day, and plot them. In practice, in a 60 min timeframe chart, there will be two solid lines every day (one for lowest highs and one for highest lows), and then having a step the next day. How it is possible to do it in pinescript? I tried to use chatGPT but it is not helping.
Thanks in advance
