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?
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?
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.
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).
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue