Cumulative orders – separate trailing stops

Forums ProRealTime English forum ProOrder support Cumulative orders – separate trailing stops

Viewing 6 posts - 1 through 6 (of 6 total)
  • #112605

    Hi all,

    I am building a trading code where I allow multiple orders in the same direction – which means I could have up to 4 long trades on the same strategy running simultaneously.

    My code has a trailing stop which moves the initial stop loss to break even when it reaches a 1:1 risk/reward. However, I am having an issue with this, because I would like each stop loss (for each of the 4 trades) to move independently.

    My current code has an error, which I do not know how to correct: the stop loss for the 4 trades move to the same level at the same time. So my question is: is there a way to move the stops independently for each of the 4 trades?

    Is there a way to “name” or recognise each trade within the code separately?

    Thanks!

    #112606

    There is no way to recognize order, since all orders are considered as a whole one with an average open price level.

    So in order to set different stoploss the way you want, the best way to do is by making partial closure of this global order, as described in this blog post: Partial closure of positions when price is retracing – A complete function

    Please note that at the moment, the partial closure of position is still not possible in live trading and I don’t have any ETA.

    #112607

    In MT4 there is something called “magic number” to identify each trade.

    Would you know if PRT is adding something like that to the new PRT version that will shortly be released or to a future version?

    #112610

    Not magic number but order ticket 🙂 Magic number is used to identify orders from a specific strategy.

    I don’t think that it will be shortly added, it involves a lot of modification.

    #141165

    Hi, I’m trying to running a strategy that needs to be able to place trades in a smaller tf to the main strategy in the opposite direction while the larger tf orders remain open. On MT4 this would be possible with the use of a system identification number, ie a magic number. I have tried reversing my code and running a separate ProOrder with the reversed strategy on the same instrument, however the first strategy on the same instrument over rides this inverted strategy, also played around with the force open setting, which makes not difference.

    I guess it would be possible to run on $5 lots to appose the $1 mini lots, however this is not possible for most accounts while learning the craft. Will it be possible for PRT to enable Micro lots for Australian clients and to enable force open on Automatic trading, Regards.

    #141486

    It is not possible to be both long and short at the same in a PRT strategy. Any opposite order closes any open trades in the opposite direction.

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

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