Source: https://fxcodebase.com/code/viewtopic.php?f=17&t=66614
Forum: 17 · Topic 66614 · 13 post(s)
Apprentice · Sat Sep 01, 2018 6:32 am

Based on request viewtopic.php?f=27&t=66613&p=120892#p120892
Average Number of Price Changes.lua

Average Number of Price Changes overview.lua
Reymondpolanco · Sat Sep 01, 2018 11:58 am
Check the blue square, why the indicator stay flat if the price do a big move down in a little espace of time.
Can you explain the logic you used ?
I think is a great indicator idea we can improve it and that can help us a lot
Apprentice · Sat Sep 01, 2018 3:13 pm

The tick volume was used for approximation. Low tick volume will be reflected in the final result.
Reymondpolanco · Sun Sep 02, 2018 11:43 am
I think the correct way is this:
Check the attached photo, I get this data directly from the marketscoope, as you can see in the F and G column there is the prices changes in every second.
The idea can be: with this data check how many times the price change it in one minute then when you have 60 minutes make an average of how many changes in every minute.
In the red lined column you see how many changes do the price every minute in each hour at the end an average of changes every hour.
In the blue column you can see the actual period.
So with that data for example i can compare the actual period with an historical period.
The red lined column need to be an average of X last days (with an option to change it)
You can put the indicator like the AUD/JPY attached image.
Apprentice · Sun Sep 02, 2018 3:34 pm
Do you want an indicator that will show you how many changes we have for each of the last 24 hours and the historic average?
I can only do this by using tick data. Other methods are impractical unless you want to have a Trading Station always on.
Reymondpolanco · Sun Sep 02, 2018 3:50 pm
Yes how many changes in each hour
Apprentice · Mon Sep 03, 2018 6:32 am
Average Number of Price Changes overview added.
Reymondpolanco · Mon Sep 03, 2018 12:27 pm
I think the current hour indicator is wrong, check the attached image the hour in my computer is correct but the hour in the indicator is wrong.
Can you reduce the space between the columns, make the text more smaller and put the indicator more small because it take too much space in the chart, can you reduce the size to the small blue box.
Apprentice · Tue Sep 04, 2018 9:13 am
Average Number of Price Changes overview.lua style update.
Reymondpolanco · Wed Sep 05, 2018 9:37 am
The style is ok but the current hour is wrong now it’s say 10:00 AM but the actual hour is 8:00 AM
Apprentice · Fri Sep 07, 2018 3:58 am
EST is used.
Reymondpolanco · Tue Sep 11, 2018 3:06 pm
Can you delete the numbers after the point
Apprentice · Tue Sep 11, 2018 4:51 pm
Try it now.