Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Exiting Longs (or shorts) one at a time rather than all at once?

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

    Exiting Longs (or shorts) one at a time rather than all at once?

    Hi guys,

    Has anyone noticed if you are running a strategy that can be long and short that the move from long to short happens all at once?

    I am trying to write a strategy that is going to scale into and scale out of positions rather than exit the whole positions and goes short. I have tried to do this by avoiding using {default quantity} and using a fixed amount of 1 but no luck so far...

    That will let me accumulate a position (one at a time) but when the sell signal comes along the strategy sells the whole accumulated position and goes short 1.

    Am I missing something?

    Thanks
    Alex

    #2
    Hello,

    There are two things going on here if I understand you correctly:
    1) You are scaling into your reversal so you will have both a long and a short trade/orders open at the same time.

    You cannot be both long and short within the same market literally.

    2) To prevent orders from being both long and short the orders to enter have an embedded method to close opposing orders automatically. So when you enter a long position and you already have a short position open, the long position is automatically closed.

    This link has information on this:
    DenNinjaTrader Customer Service

    Comment


      #3
      Nope that is not what I am asking.
      don't want to be "long" AND "short"

      What i want is if I am long 10... and i get a sell signal- i would like to sell 1 (net possie of 9)


      On the next sell signal I would like to sell another 1 (net possie of 8)

      and on the next buy signal buy 1 (net possie of 9)

      and so on...

      can this be done?

      Thanks
      Alex

      Comment


        #4
        Hello,

        To scale out you will need to scale in. There is only one ExitLong() for each EnterLong().

        This link has an example:
        DenNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by ursavent, Today, 12:54 PM
        1 response
        3 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by cre8able, Today, 01:01 PM
        0 responses
        3 views
        0 likes
        Last Post cre8able  
        Started by manitshah915, Today, 12:59 PM
        0 responses
        3 views
        0 likes
        Last Post manitshah915  
        Started by Mizzouman1, Today, 07:35 AM
        3 responses
        17 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by RubenCazorla, Today, 09:07 AM
        2 responses
        13 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Working...
        X