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

Increase Position Size question

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

    Increase Position Size question

    A very simple question that I somehow cannot figure out.

    I have a strategy with:
    EntriesPerDirection = 1;
    EntryHandling = EntryHandling.AllEntries;

    And I want to increase the position size by 10000 of the only market position that I have.

    Can I use "EnterLong()" to increase position size?
    How do I have to configure it?

    Any help is appreciated?

    Best regrds,
    Stefan

    #2
    Stephan, you would run then with UniqueEntries for example to be able to scale into with another partial positon into your full size - http://www.ninjatrader.com/support/f...ead.php?t=3751
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Thanks for the answer. I am not sure I understand the concept of increasing/decreasing a position size in the course of a strategy. I believe you call it scale in and scale out.

      Example:
      EntriesPerDirection = 100;
      EntryHandling = EntryHandling.AllEntries;

      The desired application flow is:

      EnterLong( quantity, "longposition" ); // quantity e.g. 25000

      ExitLong (x, "whatever", "longposition"); // this time x = 5000

      // Now I want to increase the position again by e.g. 7500
      // how do I do that?

      // And later I want to decrease it again by e.g. 3000

      and so on and so on.


      Any help is appreciated.

      Comment


        #4
        Stephan, in the managed approach you would first scale in with your desired partial qty (i.e. 7500, 3000, 25000) so you could the later sell this partial position. So basically for every partial qty you need, you would create one entry name / signal so it could be properly tracked.

        If you would like more flexibility without the NT signal tracking, we also have a completely unmanaged mode in NT7 that would allow to just SubmitOrder() any size you would like to, of course you then need to keep track of your overall size and just resting exit orders as needed to reflect changes in position size: http://www.ninjatrader.com/support/h...d_approach.htm
        BertrandNinjaTrader Customer Service

        Comment


          #5
          Hi,

          Similar issue I have, I have tried to use "EnterShort" to increase my position. The first call to "Entershort" works, but the second call doesn't increase my position accordingly.

          The code I did is something like this:

          ..some condition
          EnterShort(1, entrySignal-1);

          ..some other condition
          EnterShort(1, entrySignal-2);

          //print market position
          Print(Market Position Qty=" + Position.Quantity.ToString()); //This return 1 instead of 2

          Can you advice? I am using NJ7

          Comment


            #6
            Originally posted by icaruschung View Post
            Hi,

            Similar issue I have, I have tried to use "EnterShort" to increase my position. The first call to "Entershort" works, but the second call doesn't increase my position accordingly.

            The code I did is something like this:

            ..some condition
            EnterShort(1, entrySignal-1);

            ..some other condition
            EnterShort(1, entrySignal-2);

            //print market position
            Print(Market Position Qty=" + Position.Quantity.ToString()); //This return 1 instead of 2

            Can you advice? I am using NJ7
            icaruschung, please check into your EntryHandling settings so it could allow multiple entries in the same direction in the managed approach -
            BertrandNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Aviram Y, Today, 05:29 AM
            0 responses
            1 view
            0 likes
            Last Post Aviram Y  
            Started by quantismo, 04-17-2024, 05:13 PM
            3 responses
            25 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Started by ScottWalsh, 04-16-2024, 04:29 PM
            7 responses
            34 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Started by cls71, Today, 04:45 AM
            0 responses
            6 views
            0 likes
            Last Post cls71
            by cls71
             
            Started by mjairg, 07-20-2023, 11:57 PM
            3 responses
            216 views
            1 like
            Last Post PaulMohn  
            Working...
            X