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 NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    62 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    134 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    75 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    45 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    50 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X