double bottom scan


Category:
1
1

Hi Pete,

How do i scan for stocks in TOS that made double bottom in the last x days for example.

in other words,

x days ago these stocks made double bottom

Thank you

Marked as spam
Posted by (Questions: 13, Answers: 13)
Asked on December 17, 2016 9:33 pm
2515 views
1
Private answer

I have received requests for scans to find a double bottom.
However no one has been able to provide me the exact specifications which define a pattern such as this. Computer code is based on pure logic. The human eye can very easily spot a double top or double bottom pattern on a chart. But when you try to teach a computer to do so it is easy to get a lot of false signals.

Some things you have to tell the computer:

What is a top/bottom? (left and right side of the pattern)

How many candles are permitted between peaks? 4, 5 or 6? Or 1,000?

Assuming the two peaks don’t have to be the exact same price, what percentage difference is permitted?

Likewise, does one top/bottom need to be higher/lower than the other?

When is the pattern completed?

Marked as spam
Posted by (Questions: 37, Answers: 4079)
Answered on December 19, 2016 12:59 pm
0
I’m thinking a good one would be the following: A bottom or top can be two prices that less than 0.5% of each other (customizable for low/high volatility stocks), so 1.77 and 1.78 would be considered a double bottom. Candles between permitted should be customizable as an input value well because it depends on the time frame. On a daily chart, two candles right after each other at 1.45 is a very profitable play, so you can set a stop loss at 1.44. I would say instead of the amount of candles between, it should be the time between the candles, like 30 minutes minimum to make a double bottom (or maybe instead of time, 30 1 min candlesticks minimum), because anything less than that usually is more volatility than an actual double bottom/top. I don’t understand what you mean by one top/bottom higher/lower than the other. I think the top/bottom should be within 0.5% by default. When it comes to identifying noteworthy double bottoms, you can set a minimum price peak like 2%. For example, if price hits a bottom of 2, then shoots up at least 2% to 2.04 or more (2% of 2 is 2.04), and then bottoms again at like 1.99, then that is a double bottom. However, it if hits bottom of 2, only peaks up to like 2.02 (1% peak), and then goes back down to 2 or 1.99, then it is close to a consolidation than a double bottom. I think 2% peak minimum is a good default. I think I answered all your questions, so it would be great if you can help create this scan, but if I didn’t answer your questions. Please ask me. I’ve coded before so I know what to look for for questions, but I’m not too familiar with Thinkscript like setting a minimum time between candles for a filter like this, so it would be helpful from an expert.
( at October 3, 2019 6:34 pm)
0
At this time there are a wide variety of built-in patterns available in the scan engine on Thinkorswim. Among the list are "Double Bottom", "Double Top", "Triple Bottom" and "Triple Top". These patterns are also available at the charting level. Complete with user adjustable settings.
( at October 3, 2019 7:47 pm)
0
@Pete Hahn I only see one double bottom pattern in ToS, and it's not very customizable? There's no scan filter or study filter for it, just a pattern, and it doesn't let you look at the source code or customize any of the settings I mentioned in the first paragraph. Please see this screenshot: https://i.imgur.com/yDdwx4x.png
( at October 4, 2019 2:24 pm)
0
Well this is far too complex a solution for something I would publish in the Q&A forum. We'll just have to get by with the built-in tools that Thinkorswim provides for pattern filters.
( at October 4, 2019 2:40 pm)