Long term indicator > 256 candles

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #92488 quote
    rodmcban
    Participant
    Junior

    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

    #92492 quote
    robertogozzi
    Moderator
    Master

    254 lookback bars is the current limit.

    Upcoming version 11 is said to double that limit.

    I’m afraid there’s no workaround.

    #92497 quote
    Nicolas
    Keymaster
    Master

    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…

    #92566 quote
    rodmcban
    Participant
    Junior

    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

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

Long term indicator > 256 candles


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
rodmcban @rodmcban Participant
Summary

This topic contains 3 replies,
has 3 voices, and was last updated by rodmcban
7 years ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 02/27/2019
Status: Active
Attachments: No files
Logo Logo
Loading...