InvestorsHub Logo
Followers 12
Posts 1003
Boards Moderated 1
Alias Born 10/29/2006

Re: Acura2012 post# 6755

Wednesday, 01/19/2011 8:15:29 PM

Wednesday, January 19, 2011 8:15:29 PM

Post# of 7256
Re; Acura.. Scan for MA of Volume..??

If I understand what you are trying to do, it is possible.

First off the scan coding you've shown has an extra set of square brackets which aren't necessary but actually don't change how the clause is executed. So your section of code looks for todays 3 day average volume to be greater than yesterdays 3 day average volume.

[type = stock]
and [daily sma(3,daily volume) > [yesterdays daily sma(3,daily volume)]]

But as I understand it you're actually looking for todays 3 day average volume to be greater than yesterdays and every day for the last 6 months, (ie a new 6 month high in 3 SMA of volume). So all we need to do is have a section of code that finds the highest value of the 3 day average volume number over the last 6 months starting yesterday. Then require that todays 3 day average volume be greater than the highest value over the previous 6 months. So we'll use the MAX over time function and to define the 6 months we'll use 120 days.

[type = stock]
and [ sma(3, volume) > yesterdays MAX (120, sma(3, volume)) ]

hope this gives you some ideas
Quasi

I don't work for Stockcharts, I'm just another user always trying to learn more and willing to share what I've already learned.
Stockcharts.com Support Forum

Join InvestorsHub

Join the InvestorsHub Community

Register for free to join our community of investors and share your ideas. You will also get access to streaming quotes, interactive charts, trades, portfolio, live options flow and more tools.