Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Raise Order Quantity automatically

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

    Raise Order Quantity automatically

    Hello,

    I use an automatic trading system and I'd like to raise Order Quantity in a series of winner trades automatically. Is that possible with Ninjatrader?

    For example:
    If first trade is a winner (Quantity = 1000 contracts), then second trade is a winner (Quantity = 2000 contracts), third trade is a winner (Quantity = 3000 contracts), and so on...

    If possible, I'd like to enter maximum number of winner trades in a series and how much Order Quantity should be raised.

    Best regards

    #2
    Hello Heikoman,

    Thanks for your post.

    Yes, it is possible in a Ninjascript based strategy (not in the Strategy Builder).

    You can create a user input that would specify the maximum winners in a row and another user input for the Order quantity to raise.

    You can access the system performance/Trade collection to determine if the last trade was a winner (see example 1) https://ninjatrader.com/support/help...collection.htm

    Comment


      #3
      Hello,

      that's exactly what I was searching for, thank you very much! Didn't really expect that it's possible with Ninjatrader.

      Best regards

      Comment


        #4
        Hi, Is it possible to change the trade quantity amount based on cumulative net profit in strategy builder?

        Comment


          #5
          Hello ats732,

          Thank you for your note.

          Yes, you could do that.

          I'm attaching a simple strategy builder example strategy that allows you to select 4 levels of PnL. If the strategy's current realized PnL falls in one of those levels, the next trade entered will have the quantity associated with that level.

          Please let us know if we may be of further assistance to you.
          Attached Files

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          89 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          135 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          68 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          119 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          69 views
          0 likes
          Last Post PaulMohn  
          Working...
          X