(Relative) Angle of moving average

Forums ProRealTime English forum ProOrder support (Relative) Angle of moving average

Viewing 10 posts - 1 through 10 (of 10 total)
  • #181586

    Hi all

    How would one code the following?

    – Angle of moving average > angle of moving average[1]

    I wonder if this approach would be interesting to look at combined with relative volume as an entry condition.

    #181589

    Take a look at the topic “vectorial dax”. That could be something for you.

    #181590

    Hi,

    If your moving average name is “ma”, its angle being higher than it was at previous candle is equivalent to a bigger vertical step for same horizontal step, which you can store in a boolean variable true=1 or false=0 to use within your code:

    risingma = (ma-ma[1]>ma[1]-ma[2])

    #181594

    There are many ways to (try to) define angles:

    https://www.prorealcode.com/reply/158329/

    Let’s say we want to use (SMA (new) – SMA (old)) / SMA (old)

     

    1 user thanked author for this post.
    #181597

    I was writing while JC_Bywan was posting 🙂

     

    #181601

    this is the code I use, adapted from Balmora’s Vectorial. Similar to above with added trig function

     

    #181603

    Do u use this as entrysignal?

    #181605

    in conjunction with other indicators, yes. often it’s more of a filter on a higher TF

    #181623

    ju set P1 and P2 ur self?

    Also a1 and -a2?

    #181626

    yes, all variables to be optimized for whatever TF you want to use.

    the angle of a 5min MA will obviously be completely different from a 1 hour MA

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

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