Question about OrderModify()

thread: Question about OrderModify()

  1. #1
    Member ina99's Avatar
    98

    Question about OrderModify()

    Hello,
    Should I wanted to have my own EA only change the Stop Loss worth and leave the other values as they were, Can my OrderModify() statement look something like this? This is to get a open OP_BUY or open OP_SELL, maybe not a pending order, I'm asking about.

    OrderModify( OrderTicket(), NULL, NewStopLossValue, NULL, NULL, CLR_NONE);

    Of course I know I use this function in concert with OrderSelect()

    I'm just trying to pin down the way to change just the SL and leave all else in the open order independently.

    Thanks in advance for the help.

  2. #2
    Junior Member oxrtiferran12's Avatar
    2
    Hi,
    When I wanted to have my EA only modify the Stop Loss worth and leave the other values as they were, Can my OrderModify() announcement look something like this? This is for a receptive OP_BUY or receptive OP_SELL, not a pending order, I am asking about.

    OrderModify( OrderTicket(), NULL, NewStopLossValue, NULL, NULL, CLR_NONE);

    Of course I know I use this function in concert with OrderSelect()

    I am just trying to pin down the way to alter only the SL and abandon all else at the open order independently.

    Thanks in advance for the help.
    Hi
    because you've been so nice for me here goes.

    SLvalue=OrderModify(OrderTicket(),OrderOpenPrice() ,NewStopLossValue,OrderTakeProfit() ,0,Yellow);

  3. #3
    Member ina99's Avatar
    98
    Thanks much, Now I can Return to my next 10 million dollar Holy Grail... LOL

  •