Published On Feb 27, 2023
Presenting a unique algorithm implemented in python for finding trend lines on price data. The python code shown builds a powerful trading indicator the slope of the current trend lines. I've used this indicator in the past as an input to predictive models. The algorithm could also be used as a component for recognizing chart patterns such as wedges, triangles, pennants and so on.
The automated support and resistance trend lines are found using a gradient descent approach. It creates a price channel on any length of data. It has only one adjustable parameter, the number of candles in which the trend lines are fit.
Full Code: https://github.com/neurotrader888/Tre...
Patreon: / neurotrader
The content covered on this channel is NOT to be considered as any financial or investment advice. Past results are not necessarily indicative of future results. This content is purely for education/entertainment.