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")
Hi
appreciate if any can help
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 "...")
Thanks man, it is working now fine.