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
Above is code for an indicator that works similar to the fractals concept.
1. The indicator plots a shape above any candle who's high is higher than the following and preceding high. If a candle meets these criteria, the high point is identified as a 'first order pivot high'.
2. I would like to add a secondary function to my code that compares each first order pivot high as follows:
Plot a shape above any first order pivot high that is higher than the following and preceding first order pivot highs. If a candle meets these criteria, the high point is identified as a 'second order pivot high'.
I have managed to do the first stage, but I can't figure out how to implement the secondary stage. Appreciate any advice.