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 SalmaTrader, 07-07-2026, 10:26 PM
          0 responses
          50 views
          0 likes
          Last Post SalmaTrader  
          Started by CarlTrading, 07-05-2026, 01:16 PM
          0 responses
          22 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 06-17-2026, 10:32 AM
          0 responses
          16 views
          0 likes
          Last Post CaptainJack  
          Started by kinfxhk, 06-17-2026, 04:15 AM
          0 responses
          22 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Started by kinfxhk, 06-17-2026, 04:06 AM
          0 responses
          23 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Working...
          X