Measure MA on the next bar

Forums ProRealTime English forum ProOrder support Measure MA on the next bar

Viewing 5 posts - 1 through 5 (of 5 total)
  • #210006

    Hello!

    Still very new here and learning so much.

     

    I’ve been trying to find a solution to this as I am pretty sure it’s rather simple but I just can’t.

    I want to short when high is >= MyLine and MA1 =< MyLine which is working fine.

    But I don’t want to short if price keeps rising or MA goes above MyLine. (see attached)

     

    I feel that I should measure MA Increase from lastbar to current  or just crossing but not sure how to do it.

    BarIndex?

    Does anyone have any idea what to do?

     

    Marcus

    #210011

    Instead of checking the two conditions when they occur, check whether they occurred on the previous bar, so you can easily tell whether the price and MA kept rising or not.

     

    #210044

    Hm! I think I understand and sounds like a good idea, does anybody have an example?

    I know you do a lot on the forums Roberto, super thankful for all your help and insights.

    #210060

    Instead of:

    write:

     

     

    1 user thanked author for this post.
    #210176

    Wow. In hindsight that was really simple.

    Thanks a lot, will play around with this new-found knowledge!

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

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