Hello, any idea on how to write in a code reference to trendline as produced by “prorealtrend”?
Many thanks
Francesco
WingParticipant
Veteran
One idea I used for my indicator “Trend Line Bands” is to find high/low points in RSI. The bars corresponding to these high/low points can then be used to draw trend lines between. You could take some code from here and do it: https://www.prorealcode.com/prorealtime-indicators/wings-trend-line-bands-support-resistance/
Trendlines of any kind usually use highs and lows, you can spot them with many different ways: oversold/overbought information of oscillator like Wing stated, higher highs / lower lows with zigzag or fractals or even a basic donchian channels, fibonacci retracement from higher highs/lows, etc..