Comparing the difference in 2 EMAs over time

Forums ProRealTime English forum ProOrder support Comparing the difference in 2 EMAs over time

Viewing 3 posts - 1 through 3 (of 3 total)
  • #178675

    Hello all.

    I’m trying to compare the value of the difference between 2 EMAs once each day just after market open and  going back and checking the previous 2 candles to see if it’s growing or shrinking.

    Is this correct? And how can I check it’s executing correctly?

    emadiff = ExponentialAverage[20](Close)- ExponentialAverage[50](Close)

    IF Time = 143500 then
    C5 = (emadiff>emadiff[1] AND emadiff[1]>emadiff[2])
    C6 = (emadiff<emadiff[1] AND emadiff[1]<emadiff[2])
    Endif

    Thanks.

     

    #178679

    Yes, that’s correct.

    You can use RETURN emadiff, then check yourself on your screen.

     

    1 user thanked author for this post.
    #178682

    Thank you once again. 🙂

Viewing 3 posts - 1 through 3 (of 3 total)

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