How to encode an angular trend
I want to connect " Tall " panels as shown in the image. "A" ("high" of the candlestick / bar) must be connected to point "B" (the condition for 'B' is that it must be any level below -20 degrees, and the distance between these two must be at least 10 bars). Also, I need to track the future data (Realtime Quotes) of 'C' at the same angle that 'A' and B have. I was having a hard time finding a way to code the direction of the angle for the pandas dataframe, which is stock price data. How to encode such angles? and how to track data from an angle like 'C' ,as shown in the picture, no data after the point'B' (i.e., real-time quotes) Trending stock price data
source to share
Instead of using Trendline Angle for your model, consider using Percent Change. This can be easily dealt with, compared to the angle that forces you to do trigonometry.
Using the percentage change from point 1
to is point 2
almost like calculating the angle from point 1
to point 2
. I would recommend using Percent variables as a way to transition to such requirements.