I am looking to draw mean horizontal lines on regular intervals between specific days. For example, there are two intervals, from the 25th date of the month to the 10th day of next month, 11th to 24th date of the month.
Part 1 ) Taking the example of the 25th date of the month to the 10th day of next month, I would be calculating the mean line for the date range by using Open and low of the first trading day and High and close of the last trading day between 19th and 24th of the same month.
Part 2) Similarly, we will calculate the date range of 11th and 24th of the month.
I would like this to automatically add mean lines for all the days on my chart.