andrei-1 wrote: Mon Mar 20, 2023 12:00 am
1. We will find out which day * is today and which is yesterday.
2. We will find out the price of yesterday's closing.
3. We calculate the average ATR for 5 (ATR_lim) days*.
4. Add and subtract from yesterday's* close.
These levels are stable all day*. I put asterisks because we can choose a different period.
I hope I understood you correctly.
Thanks for your input, even though I am not a coder, I will try to understand what you are telling.
But basically, I just want the way like ADR is calculated.
If ADR (20 period) calculates the average range of twenty previous daily candles, then plots the high/low of that average
what I need is the average (example: 20 period) of twenty previous four-hour candles (this is the same logic to h1 and below time frames) and plot the high/low of that average.
I am just curious if the calculation is accurate but the way it is plotted is exactly what I am looking for.
That's why I tried to use the daily settings if it will be the same as other ADR indicators because I will apply it to H4.
The rest of the features is superb and what I am looking for. Thank you very much!