Stochastic & Ema Crossover Screener

Forums ProRealTime English forum ProScreener support Stochastic & Ema Crossover Screener

Viewing 12 posts - 1 through 12 (of 12 total)
  • #69262

    Hi Everyone,

    I am new to coding and prorealtime too. I would like to code a screener that has more conditions, hope to get some help here.

    Is it necessay to state the screener timeframe? i am looking to do daily screening.

    Condition for buy :

    1. 20 EMA is higher than the 50 EMA.
    2. And, the stochastic K line CROSS OVER the D line
    3. And closing price is higher than the 50 EMA.

    Note: i would like to use stochastic ( 14, 5, 3)

    Thank you

    #69266

    I created a new topic, since you are requesting something different, though slightly, from a Stochastic Crossover.

    I already have some code, I just need to change it a bit. I’ll try to post something as soon as possible.

    Roberto

    #69268

    There you go (for Short trades you’ll have to test conditions the other way round). You do not need to state the timeframe in the code itself, as far as you check only one, just select the one you want in the screener box when you create it.

    To know what the second parameter in AVERAGE means you may read https://www.prorealcode.com/documentation/average/.

    Roberto

     

    #69281

    thanks Roberto, will try it out!

    #75943

    Hi,

    I tried some modifications to short trades but came up with nothing across the timeframes. Can you please check this to see where my error is?

     

    #75944

    Hi,

    Also tried this combination to see if it makes any difference. I’m still very new and poor at coding.

     

    #75963

    When you make corrections/integrations, only add ONE at a time, because the more you add to the original code the more difficult it will be to detect errors.

    So, first let’s add the SHORT scan:

    When it works as expected you may add new features (one at a time!), like a new MA as you did.

     

    1 user thanked author for this post.
    #75985

    Dear robertogozzi,

    Thanks for going through the trouble to produce the codes. I’d like a final request to combine these codes if you don’t mind.

    LONG

    H4 stochastic and H1 stochastic (14,3,5) %K > %D in both with price above EMA 50 in both and EMA 20 above EMA 50 and EMA 50 above EMA 100

    SHORT

    H4 stochastic and H1 stochastic (14,3,5) %K < %D in both with price below EMA 50 in both and EMA 20 below EMA 50, and EMA 50 below EMA 100

    I hope with this I’ll be able to stop bothering you.

    #75987

    There you go

    LONG

    H4 stochastic and H1 stochastic (14,3,5) %K > %D in both with price above EMA 50 in both and EMA 20 above EMA 50 and EMA 50 above EMA 100

    SHORT

    H4 stochastic and H1 stochastic (14,3,5) %K < %D in both with price below EMA 50 in both and EMA 20 below EMA 50, and EMA 50 below EMA 100

    You didn’t write BOTH after the hilighted words, as you had done before. I assumed it in the above code. Should you have meant NOT TO PURPOSELY write that word, then the code changes a bit as follows:

     

     

    1 user thanked author for this post.
    #76018

    Hi,

    Thanks for the reply. I put the word ‘BOTH’ to mean that the criteria should be met in both timeframes and thanks for specifying. Cheers.

    #76398

    Hi,

    From the code you created below, how does one screen the 1 hour timeframe for stochastic crossover below 20 and crossunder above 80?

     

    #76408

    Like I did  at post https://www.prorealcode.com/topic/split-stochastic-ema-crossover-screener/#post-75944, lines 6 and 7. Instead of testing whether something is > or < or = than something else you just need to write CROSSES OVER or CROSSES UNDER.

    Lines 11 and 12 of your code above should be replaced by

    1 user thanked author for this post.
Viewing 12 posts - 1 through 12 (of 12 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login