Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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).

    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by WalterSkinner, Today, 04:40 PM
    0 responses
    6 views
    0 likes
    Last Post WalterSkinner  
    Started by jvanelli, Today, 04:08 PM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by eleven, Today, 04:05 PM
    0 responses
    5 views
    0 likes
    Last Post eleven
    by eleven
     
    Started by space_trader, 05-15-2022, 08:14 AM
    4 responses
    25 views
    0 likes
    Last Post Tasker-182  
    Started by parkinsonbr, Yesterday, 05:06 PM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Working...
    X