Can anyone provide info/link to a sample SR detection algorithm? I understand many people define support and resistance differently, so I'd prefer code (or algorithm description) that determines SR levels based on previous price peaks and troughs ... but anything close to that would be great. I'm just looking for something to use as a starting point.
Thanks in advance for your help.
Thanks in advance for your help.