Quote from Hook N. Sinker:
I use trendlines as a guide. They work well. I am having trouble coding trendlines into my trading program.
Well, you're probably 10 steps ahead of me. Im still learning how to program in Wealthlab.
Have you thought about programming a time and/or price delay into your trendline generator? I've found the natural tendancy of the market is to pullback after a decent move, thus violating the original trendline.
Incorporating a time delay or lag before generating the trendline would be effectivily similar to Grobs trendline recalbriation of point three - skipping the first point three entirely and connecting to only the second point 3.
If you're not familar with Grob, don't worry, you'll have no idea what I just said. Its worth checking out.
The net effect of adding a time delay or waiting until after a major pullback then reversal is a more viable and sustainable slope to the trendline that can better predict the movement while avoidng several short term violations.