title: Highest high and lowest low between a time frame and drawing a rectangle for visual for an X amount of days
body: <p>My objective is to create a rectangle object on a chart that measures from the highest high and lowest low between a specified time frame and for an <strong><code>X</code></strong> amount of days?</p>
  
  <p><img src="https://i.stack.imgur.com/zBMNG.png" alt="a sample ScreenView"></p>
  
  <p>I know how to create an object to a chart but I'm not sure how I can make it repeat for an <strong><code>X</code></strong> amount of days back. How can I achieve this? I was thinking maybe a For loop would be a good approach?I could use some guidance. </p>