Horizontal Shift MA -2 below/above MA

Forums ProRealTime English forum ProBuilder support Horizontal Shift MA -2 below/above MA

Viewing 2 posts - 1 through 2 (of 2 total)
  • #201998

    Hi,

    I need help with the following code.  I want to add an extra condition to the below code but don’t know what the code is for horizontal shift.

    and WeightedAverage [17] horizontal shift -2 is above WeightedAverage[17](close)        for the top line

    and WeightedAverage [17] horizontal shift -2 is below WeightedAverage[17](close)        for the bottom line

     

    #201999

    Hi,

    you can use for your horizontal shift -2: WeightedAverage[17](close)[2]

    or define a variable wa17, shift it, and simplify code script with added conditions with:

     

     

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

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