Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Scaling out positions

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

    Scaling out positions

    Hi,

    I'm trying to build a strategy that builds up to 5 positions (Entries per direction = 5) and then holds each positions for a fixed number of bars.
    Let's say I want to hold a 2 lot short position for 10 bars, but after 3 bars a long order is triggered. My position then would go from -2 to -1, but instead NT flattens all my shorts and goes long 1 lot.
    How can I avoid that?

    #2
    stefy, to scale out you would first need to scale in - http://www.ninjatrader-support2.com/...ead.php?t=3751 to be able to scale out individual positions later.

    Comment


      #3
      I understand from your sample code that if I want to manage a position I have to split it up, but what I need is different:
      I'm entering a long position over 5 bars (each bar 1 enter long) and then I want to exit each of these positions at different bars. The problem is that when an EnterShort() condition kicks in, EnterShort() closes ALL the Long Positions. Is there any workaround? Say I'm short 5 lots and I have an EnterLong(), I'd like to become short 4 lots, not to become long 1 lot!

      Comment


        #4
        No, this is expected, as the reversing with the Enter() methods would apply to the full position if no unique order names are used. You can scale out either by defining a qty for a Exit method or by tying those together via unqiue signal names.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        64 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        35 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        59 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        62 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        51 views
        0 likes
        Last Post CarlTrading  
        Working...
        X