Screener returns odd data on forex pairs

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #38190 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    I want to screen all pairs that are either in Stochastic’s OverBought/OverSold AND the lines are already pointing the other way round, and applied it to 4h TF.

    I wrote this simple screener (I use 75/25 for OB/OS, instead of the standard 80/20):

    StocK = Stochastic[10,6](close)          //10,6,3
    StocD = Average[3](StocK)
    OB    = (StocK < StocD) AND (StocK > 75) //K < D is going south despite being still in OB
    OS    = (StocK > StocD) AND (StocK < 25) //K > D is going north despite being still in OS
    SCREENER[OB or OS]                       //is there any error here ???
    

    But, oddly enough, the pair AudNzd (h4), though displayed as having both conditions met, was absolutely not in OS/OB.

    Can anyone help me find out what logic error I made?

    Thank you.

    Screener1.jpg Screener1.jpg Screener2.jpg Screener2.jpg
    #38212 quote
    NicolasNicolas
    Keymaster
    Legend

    You are right, some of the returned results are wrong but only a few.

    StocK = Stochastic[10,6](close)          //10,6,3
    StocD = Average[3](StocK)
    OB    = (StocK < StocD) AND (StocK > 75) //K < D is going south despite being still in OB
    OS    = (StocK > StocD) AND (StocK < 25) //K > D is going north despite being still in OS
    
    if ob then
    test=1
    elsif os then
    test=-1
    endif
    
    SCREENER[OB or OS]    (test)                   //is there any error here ???

    I don’t know why, I’ll get back here if I find what is causing this.

    robertogozzi thanked this post
    #38218 quote
    NicolasNicolas
    Keymaster
    Legend

    Seems that some wrong datas were causing this issue. It is fixed now, do you confirm?

    #38225 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    It’s OK now.

    Thank you Nicolas.

    #38309 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Nicolas, I modified the screening program to scan the past H4 candle (not the current one) and still I get odd results for the GbpUsd pair, as you can see. In this case the odd results are returned for the current 4H candle, as well. Only one condition is met (both K and D are in OB).

    Even for the GbpJpy pair only one condition is met, since the K line is NOT above 75 (but it is < D).

    This is my code:

    StocK = Stochastic[10,6](close)
    StocD = Average[3](StocK)
    OB   = (StocK[1] < StocD[1]) AND (StocK[1] > 75)
    OS   = (StocK[1] > StocD[1]) AND (StocK[1] < 25)
    SCREENER[OB or OS]
    

    Thank you for any further suggestion.

    Screener2-1.jpg Screener2-1.jpg Screener1-1.jpg Screener1-1.jpg Screener3.jpg Screener3.jpg
Viewing 5 posts - 1 through 5 (of 5 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

Screener returns odd data on forex pairs


ProScreener: Market Scanners & Detection

New Reply
Author
Summary

This topic contains 4 replies,
has 2 voices, and was last updated by robertogozzirobertogozzi
9 years, 3 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 06/13/2017
Status: Active
Attachments: 5 files
ProRealCode ProRealCode
Loading...