IF decisions using the order gain

Forums ProRealTime English forum ProOrder support IF decisions using the order gain

  • This topic has 7 replies, 4 voices, and was last updated 5 years ago by avatarAlun.

Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • #95468

    How do I use the gain on an order in an IF decision?

     

    #95469

    POSITIONPERF 

    The instruction POSITIONPERF(n) returns: The performance (ratio gain/cost of the position)

    So in order to use it in a condition you can do:

     

    #95561

    Hi thank you for your reply.

    When I have tried this it does not seem to work. I would like to exit greater than a gain value. Is this possible?

    #95562

    Alun– please do not double post. It just leads to wasted time and effort for those trying to help you if you post the same question in two places. I have deleted your other topic with an identical question.

    #95580

    You can do something like this:

    which will check at the bar close if you are in the desired profit or alternatively just use:

    which places an order on the market to sell when up $1000 or whatever currency the instrument is in.

    #95584

    When I have tried this it does not seem to work. I would like to exit greater than a gain value. Is this possible?

    Yes just set your gain value as a percentage, for example …

     

     

    #95588

    Will do! Apologies, very new to this.

    #95589

    Vonasi, this seems to be exactly what I was looking for. Thanks

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

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