First derivative of SMA

Forums ProRealTime English forum ProOrder support First derivative of SMA

  • This topic has 2 replies, 3 voices, and was last updated 6 years ago by avatarLeo.
Viewing 3 posts - 1 through 3 (of 3 total)
  • #49154

    hey everybody

    i’m new to proorder (not to trading hopefully).

    came here to code a strategy based on SMA first derivative (i.e. Current SMA versus previous SMA). Seems pretty basic to follow the trend but I don’t see anything on the strategies nor screeners … it’s always relative values of SMA between themselves

    did i miss something ? Shall I store the previous value in a WHILE loop ?

    thx for ur help,

    Greg

    #49160

    To access the value of a variable of the past, it is simply necessary to choose the backward period that one wishes to observe, for example with a moving average SMA 20 periods:

    .. and please don’t double post 🙂

    #49816
    Leo

    In case you need the secon derivate I use this:

     

    2 users thanked author for this post.
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