Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

changing the limit price for a exitlongstop order

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    changing the limit price for a exitlongstop order

    Hello,

    How can I change the limit price of an exitlongstop order?

    Thanks,
    Eklavya

    #2
    Eklavya, just rebsubmit the order at the new price then.

    Comment


      #3
      Ok thanks..

      I am trying to manually manage stops and profit target for an order and trying to enter order as below..

      IOrder order=EnterLong(100000, Time[0].ToString());
      double stopLoss=1.4500;
      double takeProfit=1.4900;
      IOrder stopLossOrder=ExitLongStop(stopLoss, "StopExit", order.FromEntrySignal);
      IOrder profitTargetOrder=ExitLongStop(takeProfit, "ProfitExit", order.FromEntrySignal);

      However the second ExitLongStop seems to be only updating the earlier order. How can we place different stop and profit target order for an order?

      Comment


        #4
        Are you running your order handling per strategy position or per entry execution?



        Or are you trying to scale out?

        Then you would need to scale it first to be able to do this later -

        Comment


          #5
          I do not know that I got you right.

          You are using ExitLongStop() for both stop and profit limit. Try using ExitLongLimit() for take profit.

          IOrder stopLossOrder=ExitLongStop(stopLoss, "StopExit", order.FromEntrySignal);
          IOrder profitTargetOrder=ExitLongLimit(takeProfit, "ProfitExit", order.FromEntrySignal);

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by CaptainJack, 05-29-2026, 05:09 AM
          0 responses
          388 views
          0 likes
          Last Post CaptainJack  
          Started by CaptainJack, 05-29-2026, 12:02 AM
          0 responses
          260 views
          0 likes
          Last Post CaptainJack  
          Started by charlesugo_1, 05-26-2026, 05:03 PM
          0 responses
          218 views
          1 like
          Last Post charlesugo_1  
          Started by DannyP96, 05-18-2026, 02:38 PM
          1 response
          302 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 05-11-2026, 05:56 AM
          0 responses
          268 views
          0 likes
          Last Post CarlTrading  
          Working...
          X