Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Unmanaged order call strategy replicates (Tradovate + Apex)

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

    Unmanaged order call strategy replicates (Tradovate + Apex)

    I have re-written my order handling logic in my strategy to make sure it's not re-submitting orders. However, when I exit a position the order is for some reason multiplied many times.

    Are you aware of any issues with Ninjatrader using unmanaged orders with Tradovate and/or Apex Trader funding?

    Attached is a code snippet showing my order handling logic as well as a file showing output when the error happens. This only happens in live markets, not with market replay.

    Attached Files

    #2
    Hello halgo_boulder,

    Thank you for your post.

    We are not aware of any issues currently regarding unmanaged orders and Apex/Tradovate.

    I would recommend debugging using TraceOrders and using clearer prints that clearly show how the conditions are evaluating so we can see why the order is being resubmitted many times.

    In the strategy add prints (outside of any conditions) that print the date time of the bar and all values compared in every condition that places an order.

    The prints should include the time of the bar and should print all values from all variables and all hard coded values in all conditions that must evaluate as true for this action to be triggered. It is very important to include a text label for each value and for each comparison operator in the print to understand what is being compared in the condition sets.

    The debugging print output should clearly show what the condition is, what time the conditions are being compared, all values being compared, and how they are being compared.

    Prints will appear in the NinjaScript Output window (New > NinjaScript Output window).

    Further, enable TraceOrders which will let us know if any orders are being ignored and not being submitted when the condition to place the orders is evaluating as true.

    After enabling TraceOrders remove the instance of the strategy from the Configured list in the Strategies window and add a new instance of the strategy from the Available list.

    I am happy to assist you with analyzing the output from the output window.

    Run or backtest the script and when the output from the output window appears save this by right-clicking the output window and selecting Save As... -> give the output file a name and save -> then attach the output text file to your reply.

    Below is a link to a support article that demonstrates using informative prints to understand behavior and includes a link to a video recorded using the Strategy Builder to add prints.

    https://support.ninjatrader.com/s/ar...nd-TraceOrders

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    65 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    41 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    23 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    26 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    52 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X