Create stoploss on the fly

Forums ProRealTime English forum ProOrder support Create stoploss on the fly

Viewing 3 posts - 1 through 3 (of 3 total)
  • #11300

    Hello Traders

    Need a little help with coding.

    I want to “lock a profit”
    My idea is to insert a trailing stop-loss if the position gained a profit of 100 in value

    Is there a way to do so?

    Thanks for your help.
    A.

    #11309

    Hi algotrader,

    I’m new to prorealtime but I hope this snippet does the trick. I hope I understood your request:

    PositionProfit = PositionPerf(0) * TradePrice //Depends on whether the “100” is in the units of the instrument purchased…

    If PositionProfit >= 100 Then

    Set Stop %Trailing 1

    End if

    Cheers, hope I’m correct…

    #11414

    Hi there. I discovered this ProOrder AutoTrading only yesterday and is motivated to do it as well. I write to you as I am also from SA and just need to know if this system is successful, and what kind of return one can expect. If you have any advice for me, please be so kind to drop me a mail: conradieko@gmail.com

    It will be appreciated.

    Regards

    Jakes

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

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