Hi,
I try to program the screener to search for forexpairs that has a weekly close on the beginning to have a close on the middle of the bollingerband.
I have tried this:
indicator1 = Average[20](close)
c1 = (close = indicator1)
SCREENER[c1] ((close/DClose(1)-1)*100 AS "%Chg yest.")
And gets no results.
What I also wonder is if it is possible to in the same screening find forexpairs that has a close on the middle of the band and also have close above the upperbollingerband but on daily timeframe?
//Johan
In your c1 condition, you are trying to find a weekly candlestick that has its Close perfectly equal to a 20 periods moving average, which is almost impossible or rare. Did you want to find a crossover instead?
Hi Nicolas! Thanks for you reply. I tried this code instead:
indicator1 = Average[20](close)
c1 = (close CROSSES OVER indicator1)
SCREENER[c1] ((close/DClose(1)-1)*100 AS "%Chg yest.")
It seems like it screens pairs that already has closed on the middle band and is over. I want it to scan for forexpairs that has it close on the middleband in this week.
Do you know how?
Ok, so just use your first code and don’t use equal but superior to find if the actual Close is above the 20 periods moving average and Open inferior to it, to know if it’s actually crossing (current candlestick).
indicator1 = Average[20](close)
c1 = (close > indicator1 and open < indicator1)
SCREENER[c1] ((close/DClose(1)-1)*100 AS "%Chg yest.")
This condition will remain true until a new bullish candlestick is crossing again the middle bollinger band.