Checking for MA crossover and oversold stochastic

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #248746 quote
    sgrech
    Participant
    Junior

    Good morning, hoping someone is able to assist.

     

    As per the title I am looking to screen for stocks which have a stochastic value of less than 25 however I only wish to that those examples where this is the first time we have seen such a value since the 50 period ma crossed (from below) the 80 period ma.  Hope this makes sense. Example attached.

     

    Many thanks in advance.

    Capture.jpg Capture.jpg
    #248750 quote
    Iván González
    Moderator
    Master

    Here you have:

    stoK=Stochastic[14,3](close)
    sma50=average[50](close)
    sma80=average[80](close)
    
    if sma50 crosses over sma80 then
    flag=1
    elsif sma50 < sma80 then
    flag=-1
    endif
    
    if flag=1 and stoK crosses under 25 then
    flag=0
    endif
    
    screener[flag=0 and flag[1]=1]
    robertogozzi and JS thanked this post
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Checking for MA crossover and oversold stochastic


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
sgrech @sgrech Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Iván González
8 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 07/09/2025
Status: Active
Attachments: 1 files
Logo Logo
Loading...