Page 145 of 158

Re: Coding Help

Posted: Tue Mar 21, 2023 11:25 am
by FoxFoxicle
andrei-1 wrote: Tue Mar 21, 2023 10:18 am And thank you.
Thank you for your patience my friend.

I tried calibrating the indi and checked the historical levels of the ADR and compare it to other ADR indicators.

Here's the settings I used.
Timeframe: 1 Day
ATR Period: 20
ATR Factor: 1.0

Here's the result.

There are some difference in calculation. Do you think it's just normal or my other indicator is wrong?

The ADR period I used on the other ADR indicator is "ADR 20" also.

Re: Coding Help

Posted: Tue Mar 21, 2023 11:54 am
by andrei-1
FoxFoxicle wrote: Tue Mar 21, 2023 11:25 am
I thought we were talking about ATR. Do you still need ADR? I thought it was the same thing. I made you an ATR. It seems that you already have ADR. :Rofl:

Re: Coding Help

Posted: Tue Mar 21, 2023 11:59 am
by FoxFoxicle
andrei-1 wrote: Tue Mar 21, 2023 11:54 am I thought we were talking about ATR. Do you still need ADR? I thought it was the same thing. I made you an ATR. It seems that you already have ADR. :Rofl:
No my friend. I already have the ADR, but I do not have the AHR.

ADR = Average Daily Range
AHR = Average Hourly Range

Instead of Average "Daily" Range, I need the Average "Hourly" Range.

My ADR indicator cannot get the AHR or Average Hourly Range.

Re: Coding Help

Posted: Tue Mar 21, 2023 12:03 pm
by FoxFoxicle
What I was trying to do is calibrating the ADR you made.

If your ADR indicator is the same with other ADR indicator:
- means it gets the Average Daily Range

Then calibration is successful

It means I can now use it to get the Average Hourly Range

Because I have no other indicator to calibrate the Hourly range so I used the Daily range for calibration.

Re: Coding Help

Posted: Tue Mar 21, 2023 12:13 pm
by andrei-1
Download it again. I forgot to fix it in the Alert. ATR could have sent a letter from ADR. :D

Re: Coding Help

Posted: Tue Mar 21, 2023 12:27 pm
by FoxFoxicle
andrei-1 wrote: Tue Mar 21, 2023 12:13 pm Download it again. I forgot to fix it in the Alert. ATR could have sent a letter from ADR. :D
Thank you my friend.

I hope I can now get the Average Hourly Range.

If ADR 20 gets the AVERAGE RANGE of 20 previous DAILY candles and plots the high/low range

I am thinking of AHR 20 that will get the AVERAGE RANGE of 20 previous H4 or H1 candles and plot the high/low range accordingly.

Re: Coding Help

Posted: Tue Mar 21, 2023 12:36 pm
by andrei-1
FoxFoxicle wrote: Tue Mar 21, 2023 11:59 am AHR = Average Hourly Range
You need a ADR(AmtfR Shift) :mistake:

Re: Coding Help

Posted: Tue Mar 21, 2023 12:44 pm
by FoxFoxicle
andrei-1 wrote: Tue Mar 21, 2023 12:36 pm You need a ADR(AmtfR Shift) :mistake:
I think so my friend.

Example.

AHR = Average Hourly Range

AHR 20 = plots H4 range
Candles to Average or the Time frame: 4 hour
No. of Candles to Average: 20

AHR 20 = plots H1 range
Candles to Average or the Time frame: 1 hour
No. of Candles to Average: 20

The other features in your indicator is already good because I can customize the factor and the alerts.

Re: Coding Help

Posted: Tue Mar 21, 2023 1:11 pm
by FoxFoxicle
I think I understand the problem my friend.

The indicator is only applying ADR to H4 or H1.

The indicator is not averaging the previous H4 or H1 candles.

Re: Coding Help

Posted: Tue Mar 21, 2023 1:39 pm
by andrei-1
Third attempt.