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 techgetgame, Yesterday, 11:42 PM
          0 responses
          8 views
          0 likes
          Last Post techgetgame  
          Started by sephichapdson, Yesterday, 11:36 PM
          0 responses
          2 views
          0 likes
          Last Post sephichapdson  
          Started by bortz, 11-06-2023, 08:04 AM
          47 responses
          1,615 views
          0 likes
          Last Post aligator  
          Started by jaybedreamin, Yesterday, 05:56 PM
          0 responses
          10 views
          0 likes
          Last Post jaybedreamin  
          Started by DJ888, 04-16-2024, 06:09 PM
          6 responses
          20 views
          0 likes
          Last Post DJ888
          by DJ888
           
          Working...
          X