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.

Upward trending stocks

JohnTrain ✭

Hello to Everyone, Is there a scan syntax to reveal stocks that have steadily risen or have have been in an uptrend over a 6 month time period? The stocks would have higher highs and higher lows but be in a steady uptrend. Any assistance is greatly appreciated!

Best, John Train


  • markdmarkd mod
    edited October 2021
    You could try something like this:

    [group is sp500]

    and [ema(200, close) > 126 days ago ema(200, close)]
    and [min(200, PPO Hist(10,200,0)) > 10]

    You get more hits if you set PPO Hist to less than 10, fewer above 10. Below 10 there is also more volatility, because the 10 ema gets closer to the 200.

    You can use other short emas instead of 10 (20, 30, 50, maybe) to see how the results differ.

    Note the zero line (on the PPO indicator on the chart) represents the 10 ema equal to 200 ema. You can see this if you add the two emas to your chart style. When the Hist bar is above 0, the 10 is above the 200 and vice versa. Make sure you use emas and not smas.

    126 days is 6 trading months, assuming an average 21 trading days per month.

  • Thanks Mark for your help, much appreciated!!
Sign In or Register to comment.