I am trying to develop a script that automatically plots various highs and lows for me at the beginning of the day (or when I apply the study): last year and this year high and low, last month and this month high and low, last week and this week high and low , previous day high and low.
I will be using this on intraday charts to give me an idea of resistance levels in forex, so I would need all of the lines to extend to the current period and they would stay static throughout the day, then reset to new highs/lows the next day.
I have found several scripts that do some of what I need, but usually the highs and lows are used to reference each successive period rather than focused on the current period. Can anyone point me to a script that might help me out in starting this? I assume that most of the coding for the high/lows will be the same except for the interval.
I will be using this on intraday charts to give me an idea of resistance levels in forex, so I would need all of the lines to extend to the current period and they would stay static throughout the day, then reset to new highs/lows the next day.
I have found several scripts that do some of what I need, but usually the highs and lows are used to reference each successive period rather than focused on the current period. Can anyone point me to a script that might help me out in starting this? I assume that most of the coding for the high/lows will be the same except for the interval.