Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Simultaneous Long and Short Strategies

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

    Simultaneous Long and Short Strategies

    Hi,

    I'm trying to figure out the best way to implement simultaneously trade long and short strategies using the same underlying, but may not always be mutually exclusive in terms of when they are in the market.

    In other words, I have a long strategy that scales into the market by beinning with an entry limit order, then keeps track of average price to scale in by buying again 2 to 3 more times at lower prices. When an exit signal occurs, the entire position is sold.

    I have similar strategies for short trades - but I don't want them to be mutually exclusive. If I'm in a long trade and a short starts to be put on - I want the NET exposure to be the net of the long and short positions.

    The table below summarizes what I'm talking about for the following transacction stream:

    1. At time 1 buy 100 XYZ
    2. At time 2 buy 100 XYZ
    3. While in the long trade, new short trade to sell 100 XYZ
    4. Exit Long trade (1 and 2).
    5. Exit Short Trade
    Long Short Net
    100 0 100
    200 0 200
    200 -100 100
    0 -100 -100
    0 0 0

    Remember, I'm going to have to scale in for both longs and shorts. Any ideas code examples greatly appreciated!

    John

    #2
    Hello,

    If you are using the managed approach, there are some order handling rules that may prevent entry or exit orders from being submitted depending on existing orders from the same strategy. Please see our Help Guide article on Internal Order Handling Rules that Reduce Unwanted Positions




    In order to manage both a long and short position, you will want to create two strategies, one for long and another for short.

    Each strategy will have it's own position. So in your example, if your Long strategy was long 200, and your separate short strategy was short 100, your overall Account Strategy would be 100.

    Please also see our Help Guide article on Account Position vs Strategy Position for more information:

    MatthewNinjaTrader Product Management

    Comment


      #3
      Matthew.

      Thanks for the comments, as I have been toying with the same issue and found that I had to run a short strategy and a long strategy simultaneously to achieve the goal, as once a long was in play shorts can't be entered until all longs are exited and vice-versa. It is easy however to allow multiple entries per direction when EntriesPerDirection is increased from the default of 1.

      Nano

      Originally posted by NinjaTrader_Matthew View Post
      Hello,

      If you are using the managed approach, there are some order handling rules that may prevent entry or exit orders from being submitted depending on existing orders from the same strategy. Please see our Help Guide article on Internal Order Handling Rules that Reduce Unwanted Positions




      In order to manage both a long and short position, you will want to create two strategies, one for long and another for short.

      Each strategy will have it's own position. So in your example, if your Long strategy was long 200, and your separate short strategy was short 100, your overall Account Strategy would be 100.

      Please also see our Help Guide article on Account Position vs Strategy Position for more information:

      http://www.ninjatrader.com/support/h..._account_p.htm

      Comment


        #4
        Originally posted by nanobiotech View Post
        Matthew.

        Thanks for the comments, as I have been toying with the same issue and found that I had to run a short strategy and a long strategy simultaneously to achieve the goal, as once a long was in play shorts can't be entered until all longs are exited and vice-versa. It is easy however to allow multiple entries per direction when EntriesPerDirection is increased from the default of 1.

        Nano
        With this approach you can be always flat (one long and one short) and just pay commissions.
        Its better not to trade at all and transfer your money to me.

        Comment


          #5
          Originally posted by Baruch View Post
          With this approach you can be always flat (one long and one short) and just pay commissions.
          Its better not to trade at all and transfer your money to me.
          I've been looking for ways to cut out the middle man and save on fees. I think I've found it now.

          Comment


            #6
            Originally posted by sledge View Post
            I've been looking for ways to cut out the middle man and save on fees. I think I've found it now.
            Nope, the Broker is still there in the middele, taking his vigorish. You are just the one who stays flat.

            Comment


              #7
              Originally posted by koganam View Post
              Nope, the Broker is still there in the middele, taking his vigorish. You are just the one who stays flat.
              NOPE!!

              I've entered into agreement with Baruch... no middleman, no commish...

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by geddyisodin, Today, 05:20 AM
              1 response
              11 views
              0 likes
              Last Post NinjaTrader_Gaby  
              Started by Max238, Today, 01:28 AM
              3 responses
              32 views
              0 likes
              Last Post Max238
              by Max238
               
              Started by timko, Today, 06:45 AM
              2 responses
              13 views
              0 likes
              Last Post NinjaTrader_ChristopherJ  
              Started by habeebft, Today, 07:27 AM
              0 responses
              6 views
              0 likes
              Last Post habeebft  
              Started by Tim-c, Today, 03:54 AM
              1 response
              8 views
              0 likes
              Last Post NinjaTrader_BrandonH  
              Working...
              X