Urgent help with merging screener

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #185452 quote
    zak1982
    Participant
    New

    I did screener with stochastic criteria and other one with MACD criteria . how i can merge them so that both meet both of he criteria. I tried to merge them and I got a combination filters from both

    example

    first screener get me

    EURUSD

    GBPUSD

    NZDJPY

    Second screener get me

    AUDUSD

    GBPUSD

    EURCAD

    NZDUSD

    NZDJPY

     

    One i merge them i got all above pairs where as i am expecting to get only GBPUSD and NZDJPY

    blow code for merged  screener as below

    rEM The following code is related to this timescale:weekly
    TIMEFRAME(weekly)
    indicator1= Stochastic [9,3](close)
    indicator2= MACD [8,17,9](close)
    c1=(indicator1>50)
    c2 =(indicator2>0)
    REM The following code is related to this timescale:daily
    TIMEFRAME(daily)
    indicator3= Stochastic [9,3](close)
    indicator4= MACD [8,17,9](close)
    c3=(indicator3>50)
    c4 =(indicator4>0)
    
    REM The following code is related to this timescale:4 hours
    TIMEFRAME(4 hours)
    indicator5= Stochastic [9,3](close)
    indicator6= MACD [8,17,9](close)
    c5=(indicator5>50)
    c6 =(indicator6>0)
    
    TIMEFRAME(weekly)
    criteria= Stochastic[9,3](close) AND MACD [8,17,9](close)
    SCREENER[c1 AND c3 AND c5] (criteria As "Stoch %k")
    SCREENER[c2 AND c4 AND c6] (criteria As "MACD line")
    #185529 quote
    zak1982
    Participant
    New

    Hi

    appreciate if any can help

    #185533 quote
    JC_Bywan
    Moderator
    Master

    Hi, you can’t write 2 lines starting with keyword “screener”, you have to merge all your screening conditions into a single last line starting with “screener”:

    SCREENER[c1 AND c3 AND c5 AND c2 AND c4 AND c6] (criteria As "...")
    #185564 quote
    zak1982
    Participant
    New

    Thanks man, it is working now fine.

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

Urgent help with merging screener


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
zak1982 @zak1982 Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by zak1982
4 years, 1 month ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 01/14/2022
Status: Active
Attachments: No files
Logo Logo
Loading...