Screener returns odd data on forex pairs

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

    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.

    #38212 quote
    Nicolas
    Keymaster
    Master

    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
    Nicolas
    Keymaster
    Master

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

    #38225 quote
    robertogozzi
    Moderator
    Master

    It’s OK now.

    Thank you Nicolas.

    #38309 quote
    robertogozzi
    Moderator
    Master

    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.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

Screener returns odd data on forex pairs


ProScreener support

New Reply
Author
Summary

This topic contains 4 replies,
has 2 voices, and was last updated by robertogozzi
8 years, 7 months ago.

Topic Details
Forum: ProScreener support
Language: English
Started: 06/13/2017
Status: Active
Attachments: 5 files
Logo Logo
Loading...