Quote from logan04x:
Hi all, I'm working on a hobby software project to detect the trends and patterns inside a chart. This will keep me busy over the weekends and also educate me in technical analysis. And I had one question in this regard.
Currently I spot up or downtrend inside a chart by looking at the highs and lows. This works but it finds way to many lines, which causes noise. I want to know what are the ways by which I can filter out the noise from the real trend lines.
I have relied on the following heuristics for now:
1. Number of points on the line (should be >= 3)
2. Distance between the points
Can the experts give some more ideas on what indicators and factors should I look at to filter the noise from the rest of the lines.
I'm attaching a screenshot of my tool. As you can see that it finds many lines but I need to find the stronger ones out.
I too am a software engineer keen on UI who came into trading about 10 years ago and you remind me of myself back then. I wrote a lot of charting UI expecting to learn from it and after a while it became obvious that if my model for creating a trend line, for example, had any meaning beyond just looking pretty then it must have some kind of predictive power.
For example, if the line I plot off my data points indicate perfectly that there is a strong trend and the trend is up then what meaning does this have unless I can buy now and sell later for a profit? I did eventually learn a lot but it would have been a lot faster if I didn't feel like I had to out-do every chart programmer with a better, cleaner, more intuitive version of every chart I looked at and write my own version - like I could plot the points of a trend line in a way no one else thought of, my own special tweak that resulted in perfect predictions, ha!
In retrospect I would have been better off had I split my time between using off-the-shelf charting software like a "normal" person learning to trade and spent my programming time exclusively running simulations proving or disproving those trends and patterns using various strategies and getting a sense of the benefits and pitfalls of simulators.
Hmm, reading this I'm thinking I may be simply revealing what a lunatic I am. But if it has meaning I'm glad to help, lunatic to lunatic.

. I'm actually using Python for this one (though I'm a C++ programmer at heart). The reason I choose Python is because it has all the goods of an easy to use language and a very powerful set of libraries. For drawing the charts I'm using matplotlib (here is an example of how easily you can plot candle sticks with it -