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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    93 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    138 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    123 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    73 views
    0 likes
    Last Post PaulMohn  
    Working...
    X