
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
...
Walander,
Just checking if I understand correctly :
It should show a range that was:
Am I correct?mladen
Hey,
I was wondering if I could request a average range indicator that can be based on any custom range based on time.
Hence you can find any daily range for any timezone. Or any range of time size back a custom amount of periods.
So an example of the indicators goal would be able to calculate the range range of say, "8:00" to "17:00" for x periods back.Or the average range of the US EST close day for x periods.
Cheers,That could be a variation assuming other people who probably want variable time sizes on a continuous range basis.
My goal is.
8:00 to 13:00 = Range 1
Next Day
8:00 to 13:00 = Range 2
Next Day
8:00 to 13:00 = Range 3
Avg Range = Range 1 + Range 2 + Range 3 / Range
Customizable Start and End times or continuous time frame ranges
Thanks mladen.
...
Walander
I am working on it
This is just a "scratch" version : it is bloody slow
(too many loops within loops - have to rewrite it in order to make it a normal indicator), so as soon as i make one that runs as it should will post it here
regards
mladen
That could be a variation assuming other people who probably want variable time sizes on a continuous range basis.
My goal is.
8:00 to 13:00 = Range 1
Next Day
8:00 to 13:00 = Range 2
Next Day
8:00 to 13:00 = Range 3
Avg Range = Range 1 + Range 2 + Range 3 / Range
Customizable Start and End times or continuous time frame ranges
Thanks mladen.Mladen,
I am amazed at your program design skills. I tried doing this, and I think I had about 100+ more lines of code, let alone calculating it properly. I will try it out! Thanks!
...
Try this one if it is what you had in mind (no problem with the speed any more
)
Parameters : ______________________________ The way it works : ______________________________PS: do not use this indicator but use the one from post #17. This one has a bug when working on certain brokers which bug is corrected in the later one. Kept it here as a reminder to myself not to rush without thorough testing
regards
mladen
You're right.
I did have a heart attack doing this, because of the syntax that metatrader has.
It makes it nearly impossible to do this effeciently, which is very annoying.
Also, one more error. Say if im trying to have London Close Day Average Range on +1 Broker. The hours are from Start 01:00 end 01:00
This is where I truly got a heart attack, I don't know anyway around this.
...
Will cook some solution for that too
You're right.
I did have a heart attack doing this, because of the syntax that metatrader has.
It makes it nearly impossible to do this effeciently, which is very annoying.
Also, one more error. Say if im trying to have London Close Day Average Range on +1 Broker. The hours are from Start 01:00 end 01:00
This is where I truly got a heart attack, I don't know anyway around this....
I must admit that this indicator caused me a serious hart attack
:)
_______________________________
The reason is simple : I was testing the indicator on one broker, and everything went smooth. And then I jumped to another broker, and what did I get : rubbish, an absolute rubbish. As a proof a picture of it (upper is how it should look like and a lower is the one that caused me a hart attack) Took me some time to understand what happened : Sunday data. But it could be any day which does not have data that satisfies the time filter.
To cut the story short, here is the corrected one. What it does is that when there is no data for some days (like those Sundays when it effectively could not find any data that satisfied the time filter) it skips it and goes to previous day (and so on, and so on...)
_______________________________
Hope you did not get the similar hart attack as I did
:)
regards
mladen
Mladen, I am amazed at your program design skills. I tried doing this, and I think I had about 100+ more lines of code, let alone calculating it properly. I will try it out! Thanks!
Yours I'm sure will be elegant, mine will be filled over 100 conditional statements
...
Walander,
I think this is the one
_________________________
Added timeShiftparameter regardsmladen