Add a second order

Forums ProRealTime English forum ProOrder support Add a second order

Viewing 4 posts - 1 through 4 (of 4 total)
  • #32561

    Hi guys,

    kind of new to this platform and to algo trading so wanted to catch some help here.

    I would like to accomplish the following,

    If a trade is profitable, move the stop loss to break even and open up a second order in the same direction with new stop loss and profit target

    Thanks!

    Code:

     

    #32620

    Hi,

    Didnt really go through your code but shouldnt in the first line cumulateorders=true if you want to add orders on profitable trades?

    #32698

    Despair is right. You can find a complete breakeven function code in this blog article: https://www.prorealcode.com/blog/learning/breakeven-code-automated-trading-strategy/

    #34882

    Hi guys, that’s true, Just copy/pasted my current one.

    Ill give it a shoot with Nicolas link.

    Thanks!

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

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