Long entry after the last five bar dropped x points

Forums ProRealTime English forum ProOrder support Long entry after the last five bar dropped x points

Viewing 6 posts - 1 through 6 (of 6 total)
  • #143477

    Hey! I want some help with an entry code. It should go long if the last 5 bars have dropped x number of points.
    I have searched here on the forum but can not find anything.

    #143481

    There you go:

    replace 150 with the number of pips that best suit you.

    #173367

    Thank you Roberto – very useful piece of code

    1 user thanked author for this post.
    #173374

    Tested it with trailing. Had some strange entrys.

     

     

    #173380

    Entries are perfect, you can append this line to your code to easily spot signals in the variable windows that is opened by ProBackTest:

    your IF at line 7 is a bit weird, as it is mot closed until the end (with the very last ENDIF), thus leaving your Trailing Stop idle most of the time. I suggest that you move the very last ENDIF to line 12, unless this behaviour is intentional.

     

     

    #173381

    I suggest that you move the very last ENDIF to line 12

    When i do this, then the result became worst

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

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