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 CarlTrading, 03-31-2026, 09:41 PM
          1 response
          79 views
          1 like
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          40 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          63 views
          2 likes
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          63 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          54 views
          0 likes
          Last Post CarlTrading  
          Working...
          X