Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Random large orders

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

    Random large orders

    I have a strategy that I'm testing on a Demo account. The logic is the strategy has to be flat, there is a variable for contract size (which is set to 1 currently). Periodically. the strategy will place a very large (for me) order of 11, 14, or 9 contracts. I even got a liquation email for the Demo account because of margin requirements. Most of the time it just buys/sells 1 as it should but once a day it will place the large order.

    #2
    Hello Zinger357,

    Enable TraceOrders and print the variable used for the quantity one line above the order method call.


    Reproduce the behavior and save the output to a text file and attach this to your next post.
    I'm happy to assist with analyzing the output to understand the behavior.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      I stated variable but it's a user input not a variable. I'll enable prints and send the results. Thanks for your response.

      Comment


        #4
        I've included some prints and log. The contract size is a user input but it's never been set to anything but 1 NinjaScript Output 7_29_2024 5_29 PM.zip NinjaTrader Grid 2024-07-29 05-27 PM.zip

        Comment


          #5
          Hello Zinger357,

          Inputs are public variables that can have the value assigned by the user.

          Unfortunately, the log is not provide the necessary information.
          Chelsea B.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          563 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          329 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          101 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          547 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          548 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X