Do not double post.
Your other topic has been deleted.
Do not double post.
Your other topic has been deleted.
OK I think I figured out the discrepancy by watching my the indicator in action.
I get additional values because the indicator is flagging on the current bar as it is being formed. So it says "Yes, one bar to the left is a fractal, but then the current bar 0 may continue moving up or down so it is no longer a fractal".
Lets say it is operating on bar 1 (one to the left of the current bar being drawn). It is monitoring bar 2 and bar 0 for fractal formation. Any advice on moving the whole thing left one so it only is checking out bar 3, 2, and 1. This way if it detects a fractal, it is a true fractal because bar 0 and its movements are not being considered.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I am using a custom indicator that draws up and down arrows for fractals.
Below is one the hour timeframe and the indicator is working correctly.
https://i.stack.imgur.com/Y3eUa.png
The problem is when I call the indicator using below code in an EA and monitor those values to detect changes OnTick():
I see the following changes:
Not all of the above resulted in an arrow being drawn, but all of the arrows drawn are one of those lines. I believe it has something to do with OnTick() vs bars only being drawn on the hour. The indicator uses whatever timeframe you pass to it.
How can I figure out when a signal change results in an arrow being drawn? Is there anything to capture from an indicator besides iCustom()?