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 charlesugo_1, 05-26-2026, 05:03 PM
          0 responses
          56 views
          0 likes
          Last Post charlesugo_1  
          Started by DannyP96, 05-18-2026, 02:38 PM
          1 response
          143 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 05-11-2026, 05:56 AM
          0 responses
          160 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 05-10-2026, 08:12 PM
          0 responses
          96 views
          0 likes
          Last Post CarlTrading  
          Started by Hwop38, 05-04-2026, 07:02 PM
          0 responses
          276 views
          0 likes
          Last Post Hwop38
          by Hwop38
           
          Working...
          X