Hi guys,

I've got a question for you algo experienced people,

I'd like to be able to identify trendlines (or support / resistance line), either horizontal or with an angle,

the only requirement is that it's defined with 4 turning points

Sample 1: see the horizontal blue line

Sample 2: see blue channel line

(finviz.com is a really cool screener, though not based on EU stocks...)

any ideas? the eye is so good on identifing those lines with 4 (or more) turning poings, however I don't know which algorithm / technology to do that on complex charts,
you know, it's not that simple as identifying a turning point (3 bars as a V, a higher low/a lower low/higher low)



moreover, is it possible to attach pictures to messages here?

Cheers