Are there any references online with examples of logic for identifying a sequence of higher/lower highs or lows that form a trendline? I've done plenty of code to calculate basic time-price logic but not something as varied in nature as a trendline.
For example, how might one express the purple line on this chart for AAPL http://finviz.com/quote.ashx?t=aapl in basic code form (C/Java/Python/other)?
For example, how might one express the purple line on this chart for AAPL http://finviz.com/quote.ashx?t=aapl in basic code form (C/Java/Python/other)?