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 cre8able, Today, 03:20 PM
    1 response
    9 views
    0 likes
    Last Post cre8able  
    Started by fiddich, Today, 05:25 PM
    0 responses
    3 views
    0 likes
    Last Post fiddich
    by fiddich
     
    Started by gemify, 11-11-2022, 11:52 AM
    6 responses
    804 views
    2 likes
    Last Post ultls
    by ultls
     
    Started by ScottWalsh, Today, 04:52 PM
    0 responses
    4 views
    0 likes
    Last Post ScottWalsh  
    Started by ScottWalsh, Today, 04:29 PM
    0 responses
    9 views
    0 likes
    Last Post ScottWalsh  
    Working...
    X