Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Constant Error Message

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

    Constant Error Message

    Every system I try ends up with the same error message as attached! I even tried uninstalling Ninja and re-installing it. Still get the same error no matter what strategy I come up with???? Any ideas????
    Attached Files

    #2
    Hello edgeliner,

    An overfill is generated by your strategy when you have an order that is marked to fill and cancel within the same second. Your NinjaScript / C# Code will always be logically processed and evaluate according to your set logic – this can of course lead to unexpected results at times

    You will need to debug your logic to determine where the cancel is being called from. This can be directly from CancelOrder(), or and OCO pair or when a limit order is set to cancel when the condition is no longer true.

    For strategies add TraceOrders = true to your Initialize() method and you can then view valuable output related to strategy submitted orders through Tools > Output window - TraceOrders
    MatthewNinjaTrader Product Management

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by kinfxhk, 07-14-2026, 09:39 AM
    0 responses
    87 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 10:18 AM
    0 responses
    92 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 09:50 AM
    0 responses
    70 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 07:21 AM
    0 responses
    87 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-11-2026, 02:11 AM
    0 responses
    64 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X