Question about screener optimization

Forums ProRealTime English forum ProScreener support Question about screener optimization

Viewing 4 posts - 1 through 4 (of 4 total)
  • #204627

    Hi everyone

    I have a small question about screener optimization, I want to use this code, so I need only the last 20 bar, so I use the IF condition with BarIndex > 1000 (because on the screener I saw he use the last 1024 bar)

    the question is : about the variable (MM10 & MM20) I have to declare them inside the condition or outside? Does it change anything about the optimization?

     

    Best Reguards

    #204682

    I tried this indicator and it seems to be working fine as is, without moving the two SMAs inside IF..ENDIF:

    1 user thanked author for this post.
    #204959

    tks you @robertogozzi, so it doesn’t matter where I declare them

    #204966

    Right, provided these lines are always in this same order:

    1 user thanked author for this post.
Viewing 4 posts - 1 through 4 (of 4 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login