The indicator analyzes the last two waves and based on this determines the goal where the price should come.
This is certainly not the Grail, do not flatter yourself, but if you accurately determine the waves, then in most cases the price comes to the goal.
At the moment, the waves are determined by fractals, which in turn are determined by the position of candles before and after the fractal.
You can set this candle ratio in the parameters:
- before = 7; //how many candles are there before the fractal
- after = 2; //how many candles after the fractal
Example of work:
I will be glad to receive suggestions on how to finalize the idea.