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 Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          627 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          359 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          105 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          562 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          567 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X