Code query Trailing stop

Forums ProRealTime English forum ProOrder support Code query Trailing stop

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

    Hello,

    I need help in the coding of a trailing stop strategy.

    As a hypothetical example I am risking 200 (1xATR) pips stop loss to take profit at 800 (4xATR) pips limit order. Q: What is the code to trail my stop to break even after the price has moved 400 (2xATR) pips in my favour?

    Thank you

     

    #71119

    You can test this simple code example, for a long order: (I assume “400” is in points, not money).

     

    #71130

    This may have been better posted in the ProOrder Forum as it is auto trading related rather here which is for indicator related topics.

    Just pointing it out as I spotted that this is only your third topic started and you might not have worked out where the best place to go for help is yet! 🙂

    #71141

    Good spot @Vonasi ! You are a moderator who does not know himself! Interested?

    #71161

    Good spot @vonasi ! You are a moderator who does not know himself! Interested?

    I’m flattered but not sure what it would really involve. Do you have my email address on record to email me to chat about it?

    If you are serious that is!

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