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.

scan for MA of volume crossover with price action


How would I scan for


price has moved down 4% over the last 5 days
and
fast 14-period volume moving average moves from below to above the 28-period volume moving average


thanks!

Answers

  • markdmarkd mod
    edited March 2019
    This is pretty straightforward, except you need to specify a range for the price change, instead of an exact percent change, since few, if any, stocks would move exactly 4%.

    There are two ways to specify percent change - using the PctChange function (available in the Technical Indicators dropdown on the Advanced Scan Workbench) or using a decimal fraction.

    Then, by "fast" moving average, I assume you mean an exponential moving average. This uses the ema() function (also available in the Technical Indicators dropdown). The two parameters are the number of values to use, and which value (in this case, volume).

    Finally, there is an operator, 'x', to capture one indicator value crossing above another.

    So, it should look like this:

    //and [PctChange(5,close) < -4] // the "//" make this line a comment, the scan engine won't see it
    //and [PctChange(5,close) > -5]

    and [close < 5 days ago close *.96] // if you "uncomment" the PctChange lines, add // to, or delete, these lines
    and [close > 5 days ago close *.95]

    and [ema(14,volume) x ema(28,volume)]
  • lmkwinlmkwin ✭✭
    edited March 2019
    deleted post markd got it.
Sign In or Register to comment.