Hello, apologies if this has been asked before but I’ve just found the forum. I have based this on a proscreener offered free on the prorealtime site.
I’ve tweaked it a bit, It’s a code for searching for a close above the previous [n] bars high. It works fine on the daily timescale, but not when running it on the weekly timeframe, but I can’t see the problem. Could someone be kind enough to point out the problem? Thanks: