New Members: Be sure to confirm your email address by clicking on the link that was sent to your email inbox. You will not be able to post messages until you click that link.
How do I write a scan for double bottoms on a daily chart? Double bottoms should be a week to a month apart.
Edit Gord: I moved your question over to the main forum Discussion / Question page so other users will see it. The Activity page is just a page which shows the sign up of new members and badges, no one really monitors messages posted there. Best to put them in the appropriate category on the main page.
A one month price channel would be about 21 days (maybe a little longer). You would want today's low to cross below yesterday's value for the lower price channel, or to be within some per cent of it. You would want yesterday's lower channel to be equal to the lower price channel value some number of days back - nearly the length of the channel time frame. Then you would have to decide how much of a rally you would want in between to consider it a real double bottom. So you might choose the max close in the price channel time frame (e.g. max(21,close)) to be greater than the max mid channel value. Lots of choices to make, some probably better than others, but most likely none perfect.