Screener not showing correct conditions

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #217587 quote
    Malibu1
    Participant
    New

    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?

    MQG-Weekly.png MQG-Weekly.png
    #217593 quote
    robertogozzi
    Moderator
    Master

    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)
  • You must be logged in to reply to this topic.

Screener not showing correct conditions


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
Malibu1 @malibu1 Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzi
2 years, 8 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 07/12/2023
Status: Active
Attachments: 1 files
Logo Logo
Loading...