Jump to content
Medved Trader Forums

Filtering for both Minute Bars and Daily Bars


Doug Hayman

Recommended Posts

Team Medved,

I saw another thread on this, but just wanted to know if you could shed some additional light on this please.

I have a scan that runs on 5-minute bars, but I want to make sure that the stocks that are returned in my scan have a price above their 200-day SMA as well.

I realize that I cannot combine different timescales into 1 scan's logic, but I attempted to use a 5-min bar approximation of a 200-day SMA as SMA(15600) - 12, 5-minute bars per hour TIMES 6.5 hours TIMES 200 days.

I have one stock, for example, PBR, whose 200-day SMA (viewed from a daily chart) is 11.9391, and current price is around 9.82, but it did not get filtered out in my:

        (Close < SMA_Line(156000) filter rule.

In my Scan setting, I have "Extended Hrs" set to "Current Day'.  I take that to mean that only the current day's Extended hours would be used in the SMA(15600) calculation; otherwise it would only use values during market hours.

Shouldn't my approximation for Daily SMA(200) above be working?

Thanks in advance for any light that you can shed on this.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...