A question about using the summation()

Forums ProRealTime English forum ProScreener support A question about using the summation()

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

    In the attached screenshot one can see the EMA5 crosses over the EMA10, EMA20 and the EMA50 within the last 5 days. So I wrote the code as follow:

    But the RETURN is 0.

    As I just return the cP11 or cP12 or cP13, it is 1.

    Where is my problem?

    #255257

    The screener is:

    in any case both the indicator and the screener are working as expected.

     

     

     

    #255258

    Hi! I can’t see it in the attached image.
    Your code is correct. The most likely problem is that all three crossovers are not occurring within the same 5-candle window at the same time.
    I have used this code below to visually see the junctions and I have checked on some assets and it works.
    If you give me details of the ticker, timeframe and date I can check it.

    #255259

    Sorry, maybe I made some error anywhere in my code. I rewrote my code and it works now.

    @Iván:

    The ticker is the Alamos Gold (AGI). You can test it during the August 2025.

    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