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 NullPointStrategies, Yesterday, 05:17 AM
          0 responses
          62 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          134 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          75 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          45 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          50 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X