Is it possible to set a 2nd exit?

Forums ProRealTime English forum ProOrder support Is it possible to set a 2nd exit?

  • This topic has 2 replies, 2 voices, and was last updated 1 week ago by avatarBrad.
Viewing 3 posts - 1 through 3 (of 3 total)
  • #227983

    Good day All

    I am using a code provided by Nicolas to adjust my exit when the price has moved a set number of points. Breakeven code for your automated trading strategy – Learning – ProRealTime (prorealcode.com)

    Can I repeat this code with adjusted wording and values to adapt my exit should the price continue higher (long position)?

    I realize a trailing SL can be used, but I would like to know if the above coding is possible and, if so, if it is coded correctly.

     

    Thanks

    Brad

    #227990

    It’s almost correct.

    Replace line 2 with:

    and replace line 19 with:

    to prevent the first move from being executed again AFTER move two has been triggered.

    replace also line 8 with:

    for the same reason.

     

    1 user thanked author for this post.
    #228018

    Thanks, Roberto! I’ll give it a shot and let you know how it goes.

    Brad

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