Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to fix the following errors -

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

    How to fix the following errors -

    Hi,
    Need your inputs on how to fix the following errors -
    a) Strategy stops with the following message "Calculated stop order price for strategy 'EMATrader' was smaller/equal 0. No stop order placed."
    Use Managed orders and stop order with price option is set as follows :
    SetStopLoss(StopLoss* Quantity);

    b) After running strategy for 4-5 hours get an "Assertion failed" popup. Screenshot of popup and log file enclosed. I have no assertions added in the strategy.

    Thanks in Advance
    Attached Files

    #2
    Welcome to our forums Anka and thanks for the post - could you please contact us via Help > Mail to Support so we could review both your log and trace file for this issue?

    For the stop orders, have you enabled TraceOrders in your Strategy Initialize() to be able to debug it's order behavior better?



    Looks like your script issues the call when there's no qty remaining, thus an invalid stop order is not placed / caught by NT's engine.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    67 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    36 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    60 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    62 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    53 views
    0 likes
    Last Post CarlTrading  
    Working...
    X