Screener not showing correct conditions

Forums ProRealTime English forum ProScreener support Screener not showing correct conditions

Viewing 2 posts - 1 through 2 (of 2 total)
  • #217587

    Hi,

    I am trying to figure out what I am doing wrong with my screener. I have set 4 conditions that I want it to scan for and I want to see the results that are a match for all the conditions. Not one of the conditions, all of them.

    See the code below:

    Timeframe(weekly)
    ema = exponentialaverage[5]
    sma = average[7]
    Condition1=Close CROSSES UNDER ema
    condition2= ema<ema[1]
    condition3= barindex>78
    condition4= sma<sma[1]

    Timeframe(default)
    SCREENER(condition1 and condition2 and condition3 and condition4)

    So what I am screening for is the weekly current price to be cross under the 5 period ema.(Condition1) I also want to see the ema(5) to be trending lower from the previous bar.(condition2) Third condition is that it has some price history. The last condition is that the 7 period sma on the CCI is lower than the previous bar. All the conditions are set to a weekly timeframe.

    I have attached a screenshot of the Macquarie weekly chart as it screened. You can see that the ema(5) is green which means it is increasing in price. The price is also above the ema(5) which should have screened this share out of the results. Either of these conditions should have removed it from the screener’s results. I have shut down the computer and restarted it and also restarted prorealtime as well in case the registers in the background were holding the wrong data.

    Can anyone see what is wrong with this?

    #217593

    Use brackets for conditions with the keyword SCREENER, not parentheses (they can only be used for criteria).

     

Viewing 2 posts - 1 through 2 (of 2 total)

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