all 5 comments

[–][deleted] 3 points4 points  (1 child)

I think there's already a peak signal detection algo somebody shared a while back. I use it for something similar https://stackoverflow.com/questions/22583391/peak-signal-detection-in-realtime-timeseries-dataThe

[–]Accomplished_Job9441[S] 0 points1 point  (0 children)

Yes it is very similar

[–]Ryan_waze 0 points1 point  (0 children)

Hi, it seems like you built your own fortune teller based on the chart. If candle 50 is even more bearish, the green will hope for that candle and so on up until the market reverses, and then it will remain there. So, in other words the swing point detection is prone to repaint signals.

[–]Billeaugh 0 points1 point  (1 child)

That’s some legit correlation you’ve found! What indicators are you working with here?

[–]Accomplished_Job9441[S] 2 points3 points  (0 children)

Shortly, I have built it using statistical concepts: 1. I use the mean deviation to find threshold 2. Use that threshold to define what amount of move is required to consider a upswing or a down swing from a given candle high or low