I am confident that I can help you make a strategy that will help you take advantage of the market's tendencies. With my help, you can create a swing move up or down that lasts for a specific amount of time (a big swing up or down), after which there will be a retracement swing in the fi range of 0.238 - 0.618. At this point, the strategy will start reversing, and as soon as there is a reversal, your auto trendline will be drawn from Point A to Point C. This line will then need to be extended towards the right to indicate when price is likely to reverse.
Once this happens, we need to draw an automatic trendline extending from Point A to Point C so that it can accurately reflect the movement of prices over time. Once this process is complete, it needs to be done automatically so that we don't have to worry about any messes on the chart while backtesting.