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

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
    Paul H.NinjaTrader Customer Service

    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
          Kate W.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by nissan200sx55, Yesterday, 06:25 AM
          2 responses
          14 views
          0 likes
          Last Post nissan200sx55  
          Started by fredericlebre, Today, 01:19 AM
          1 response
          14 views
          0 likes
          Last Post NinjaTrader_Erick  
          Started by NM_eFe, Yesterday, 05:15 PM
          1 response
          11 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by cmtjoancolmenero, 04-29-2024, 03:40 PM
          25 responses
          81 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by TraderIqbal, 10-20-2023, 10:12 AM
          3 responses
          123 views
          0 likes
          Last Post NinjaTrader_Clayton  
          Working...
          X