Hi,
I would like to draw boxes between the Earning Dates.
X1 = The box starts at the previous earning date
X2 = The box finishes at the following earning date
Y1 = The Top of the box is the Highest High between the 2 earning dates
Y2 = The Bottom of the box is the Lowest Low between the 2 earning dates
I would like this to be continuous for as much data that is available.
or X can be series of dates that I nominate for example
X1 = 2018-01-25
X2 = 2018-06-20
X3 = 2018-12-30
X4 = 2019-03-30
Any idea on how to this can be achieved?
Here is an example of what I am trying to achieve (the colour Blue and Yellow are just alternating)
https://www.tradingview.com/x/58f2lERs/
I am currently calculating the above in Excel and hard-coding this into my pine script (box.new).
Any pointers will be greatly appreciated.
Thank you in advance,
Meatpye