Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

splitting take profit

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

    splitting take profit

    Hi i'd like to split a two contract position in 2 take profit

    i have a position that is for example short at priceAverage as weigthed average price and i do this :

    EnterLongLimit(0, true, 1, priceAverage - 10* TickSize, "FINAL TP");
    EnterLongLimit(0, true, 1, priceAverage - 5* TickSize, "FIRST TP");


    the problem is that the second doesn't appear in the chart, moreover i remain with an order of 3 quantities at the 10 tick difference price. is it possible to divide these take profit? thanks
    Also i'd like to use two limit order for the take profit in which i decide the price and the setstoploss method to set the stop loss :
    SetStopLoss(CalculationMode.Ticks, m_StopLossMAX );
    Last edited by AlessioCianini12; 01-17-2022, 02:58 PM.

    #2
    Hello AlessioCianini12,

    Thanks for your post.

    Please check your "Log" tab of the Ninjatrader Control center when you run the strategy to see if there are any error messages.

    You may be violating the " Internal Order Handling Rules that Reduce Unwanted Positions" Reference: https://ninjatrader.com/support/help...antedPositions

    Do you have the EntriesPerDirection parameter set to 2 or more OR is the EntryHandling set to .UniqueEntries? (UniqueEntries are created by using signal names for the entries which it looks like you are doing).

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    56 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    34 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    195 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    359 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    281 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X