Hi everyone,
I think I read somewhere ProScreener won’t compute any indicator using more than 256 bars in the past. Is it true?
Is there any way to circumvent this limitation cleanly?
More precisely, I need to compute a n-period moving average with n > 300 using the 5′ timeframe where n*5′ is not necessarily a multiple of a bigger timeframe such as n*5′ / “bigger timeframe” = k < 256. For instance n = 600 would have provided a solutionby changing the timeframe to hourly and computing MA[50] instead of MA[600] in the 5′ timeframe, because 600*5′ = 3000′ = 50 * 60′ = 50 hours). Unfortunately some of the n’s I need are not like this.
I have tried DEFPARAM PreloadBars = 2000 but this parameter is not allowed in ProScreener.
Many thanks in advance for any suggestion and sorry because this is probably a recurring topic!
Best,
Rod
254 lookback bars is the current limit.
Upcoming version 11 is said to double that limit.
I’m afraid there’s no workaround.
Since you can use TIMEFRAME instruction in ProScreener, the best solution would be to use less period averages but on superior timeframe and if you are still limited by the history in the next timeframe, use the next one and so on…
Thanks guys for the fast replies!
I did use a workaround along the lines suggested by Nicolas and for numbers not falling roundly on the desired average, I just took the weighted average of 2 averages surrounding the target one and it did work.
Thanks again,
Best,
Rod