Stocks News

Automatic trend line and pattern detection

February 16, 2025

The following is a little more about the trend line unveiled in the previous blog post and why they are still in the beta test.

For a long time, I wanted to add automatic trend line detection to Swingtradebot. It looked like a pretty difficult task, so the idea remained on my back burner. Two tricky trend lines are as follows.

  • The trend line can be subjective. If the same chart is given, two people cannot draw the same line.
  • How far are you looking at? Other time frames may have very different and effective trend lines.
  • Rising trend Within the Goryeo period (Emphasis) It does not pass the price between the two points. Expand the highest high point or line up …
  • To see the decline within the Goryeo period, it is drawn to the lowest point at the lowest point. It does not pass the price between the two points.Of
  • Big keeps saying so. “This method is very simple but very consistent and very accurate. The slope of the trend line is the inclination and the approximation of the slope that can be obtained through linear regression analysis of price data during the same period. Unlike other ways, it prevents you from drawing a trend line for your purpose. It prevents your wish from imposing a trend.
If you look at the automatic trend line of Finviz in relation to the time frame, it shows that. The following is about AMBA when I wrote this blog post.

This line looks back for about seven months and forms an upward sloping wedge pattern.

In contrast to what Swingtradebot is drawing for the current AMBA.

The trend line of the two charts tell a very different story. Swingtradebot is a much shorter time frame where the top and lower trend lines form a symmetrical triangle pattern.

At first, I thought it would provide a trend line for 50 and 20 days, but I think it will be a bit messy and confused. Also, I’m not sure how long the long -term trend line is. so Now I decided to look back on 20 transactions.

Another thing is that the trend line of the Swingtrade Bot does not reduce or exclude as much as the line of the Finviz. I still have an algorithm that adjusts to improve the line of a specific chart. For example, sometimes the swingtradebot generates the following trend line:

At this point I did not try to strictly follow the Trader VIC instructions. This is because it is not easy to convert his guidelines to a convention computer code. (I started learning machine learning and AI, so I will find a way to exactly match the viced guidelines.) The current algorithm actually starts with a linear regression and performs adjustment. It works quite well in many cases, but there are still some edge cases as we saw above.

If the trend line drawing algorithm is organized, you can add a signal (scan) when the line comes out.:
  • It popped out of the trend line (support or resistance)
  • Broken the trend line

The interesting thing about breaking the trend line is In fact, it violated the trend line of the previous day.. If you look at the chart direction, the brake out / classification is clearly displayed. but If the market closes and the system draws a new line, you won’t see yesterday’s broken trend line. The following is an example of the Google chart. It was decomposed last week through the trend line (and trend channel).

It is still thinking about how I still deal with. Perhaps you can have a togle to add yesterday’s trend line to the chart. Or automatically add a new broken trend line to the chart.

If I am satisfied with the line Program SwingtradeBot detects specific patterns such as program:
Like the trend line, they will have a warning warning as well as all day signs.
I hope you will start a trend line signal and scan by the end of February. The pattern will be released next week. It is the same with doing so Evaluate the new chart software option “Fast chart” (As I called in the previous blog post) -TradingView widget on the individual inventory page remains the same. I would like to get better control of the plot and to provide interactions with the chart, such as providing a level of interaction with the chart to the user of the site, that is, the information overlay (tooltip) that shows the price. You move the cursor over the chart.
Leave your opinion if you have thoughts about trend lines and patterns.

After all the above is completed, I will launch more pattern detection for the following.

  • Double floor (formation and confirmation)
  • Double top (formation and confirmation)
  • Gaps that are not filled (alarms close to being filled or filled)

Trend line pattern technology analysis site function

Related Articles

Back to top button