Sell at market when X%-profit

Forums ProRealTime English forum ProOrder support Sell at market when X%-profit

  • This topic has 5 replies, 2 voices, and was last updated 2 years ago by avatarJS.
Viewing 6 posts - 1 through 6 (of 6 total)
  • #203146

    Is this possible within a candle. Dont wait untill candleclose

    This code is not what i need, though it waitns untill candleclose:

     

     

     

    #203150
    JS

    If LongOnMarket and Bear1 and Close > PositionPrice * 1.01 then
    Sell at (PositionPrice * 1.01) Stop
    EndIf

    #203151

    Thanks JS, but does this mean I have to wait for the candleclose?

    #203152
    JS

    No, you don’t have to wait because it’s a STOP order…

    #203194

    If I do understand You correct then A=1 and A=2 would give the same result but it does not.

     

    #203195
    JS

    Hi @SnorreDK

    You can’t compare them because a “Market” order always gives a different result than a “Stop” order…

    If A=2 then

    IF LONGONMARKET AND Bear1 and Close > (PostionPrice * 1.01) THEN

    SELL at (PositionPrice * 1.01) stop

    EndIf

    EndIf

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