Coding help needed – flexible stop loss

Forums ProRealTime English forum ProOrder support Coding help needed – flexible stop loss

Viewing 2 posts - 1 through 2 (of 2 total)
  • #245405

    Good morning,

    i have a piece of code for a strategy which has a moving profit target but a fixed stop loss.

    i would like some help  please that would keep the original target in place but in addition, add a parameter that when a different $profit is hit, the stop loss is moved to ensure i lock in a profit.

    example: target profit is 20*AverageTrueRange[15](close)

    however, if the trade is in profit say £150, then move the stop loss to £100 in profit and close trade on that pull back.

    thanks in advance, hope the above makes sense

    #245406

    There you go:

     

    2 users thanked author for this post.
Viewing 2 posts - 1 through 2 (of 2 total)

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