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 cmoran13, Yesterday, 01:02 PM
          0 responses
          29 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          21 views
          0 likes
          Last Post PaulMohn  
          Started by CarlTrading, 03-31-2026, 09:41 PM
          1 response
          160 views
          1 like
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          95 views
          1 like
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          148 views
          2 likes
          Last Post CaptainJack  
          Working...
          X