ProScreener for stochastic crossover

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #240451 quote
    Enigma08Enigma08
    Participant
    New

    Hi Guys! I am new to ProScreener and need some assistance in running a stochastic cross over. I use the Stochastic 14,1,3 set up to trade. I would like to know how to go about writing a code, which tells the screener to notify me, when the %D crosses over the %K or when the %D crosses under the % K on the 5 minutes time frame. The current code I am running is not getting any hits- see below.

    TIMEFRAME(5minutes)
    C1 = Average[3](Stochastic[14,1](Close)>(Stochastic[14,1](Close)))
    SCREENER[C1]
    Can I get some assistance please?

    #240456 quote
    JSJS
    Participant
    Master

    Hi,

    %K is fast line
    %D is smoothed line

    StoK=Stochastic[14,1](Close)//%K
    StoD=Average[3](StoK)//%D
    
    CrossUp=(StoD>StoK) AND (StoD[1]<=StoK[1]) // %D crosses over %K
    CrossDown=(StoD<StoK) AND (StoD[1]>=StoK[1]) // %D crosses under %K
    
    Crossings=CrossUp or CrossDown
    
    Screener[Crossings](StoK as "%K", StoD as "%D")
    
    robertogozzi, Iván González and Enigma08 thanked this post
    #240656 quote
    Enigma08Enigma08
    Participant
    New

    Thanks for the code JS! Much appreciated and my apologies for the delay in thanking you!

    JS thanked this post
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

ProScreener for stochastic crossover


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
Enigma08 @enigma08 Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Enigma08Enigma08
1 year, 9 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 11/17/2024
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...