Job finished
Specification
I require an MT4 indicator created as a Histogram where it calculates the difference in percentage of each High fractal to the next High fractal. It does this by this: (New Price - Old Price) / Old price x 100. I also want an option for it to do it based on Low Fractals to Low Fractals or Low to High, or High to Low.
When the information is taken in, it should then find the average based on a set period. So say its for 14 periods, then each "(New-Old)/Old x 100" is considered as 1 period, and the indicator should find the average of the previous 14 periods.
I also want an option where the newest data coming in will be calculated based on the High price instead of a finished fractal high. This should be done for every time a candle has closed, then the high of the newest candle will be taken into account. But this to be set as a parameter setting where I can turn it on or off and it will either be by finished fractals or this option I just mentioned.
When doing from Low to High, this would be the nearest Low fractal to the next High fractal directly after. So if there are 2 or 3 Low fractals right after another without a High fractal coming in, it would take the newest Low fractals price until the High fractal comes in.
I want it also to find the average of multiple sets of fractals. So one set would be Low to High fractal and another set would be High to Low fractal. The indicator should find the average between these two sets as well. Or 3 sets if I wish to add High to High or 4 if I also want to add Low to Low. Again, this to be a setting where I can turn off and it looks only for 1 set. I would just like the option for it to find the average between multiple sets too.
Also, in regards to the fractal settings. Normally fractals look for 2 highs to the left and 2 highs to the right and if the middle is the highest, then its a High fractal. I want an option to adjust this value for 3 to 3 or 5 to 5. But make a parameter setting where left is one value and the right is another value. So for Fractal settings, I could put left as 5 and right as 1, and then it will identify High fractals as a high that is highest from 5 to its left side and 1 to its right side.
Finally I want the Histogram to have a percent limit, say 1%, and if the average percentage breaches this 1% then it changes colour. Below 1% it will be red, above it will be green. But option to adjust the colours of the Histogram.