kieran-mackle / AutoTrader

A Python-based development platform for automated trading systems - from backtesting to optimisation to livetrading.
https://kieran-mackle.github.io/AutoTrader/
GNU General Public License v3.0
937 stars 215 forks source link

Question about divergence indicator #103

Open einarjohnson opened 4 months ago

einarjohnson commented 4 months ago

Hello, I have been trying to use the detect_divergence and/or autodetect_divergence methods in my own project https://autotrader.readthedocs.io/en/latest/indicators.html#detecting-divergence and I was wondering what the best way is to extract the start/end index of a divergence. What I am trying to do is to plot the "blue" line that is shown in the documentation on both the candlestick chart and the indicator itself. image

ThisisAqib commented 3 months ago

@einarjohnson Hey, I am trying to do the same. Have you been able to find a way to extract the start/end index of a divergence?

einarjohnson commented 3 months ago

hey @ThisisAqib , no I never managed to sort this out. I opted for implementing my own version of the indicator instead. very rudimentary/stupid method to be honest, so I would like to incorporate this implementation at some stage.

ThisisAqib commented 3 months ago

Thanks for getting back to me! I appreciate you sharing your experience. Please update me when you find a way to implement it. I'd love to hear how it goes!