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 argusthome, Yesterday, 10:06 AM
    0 responses
    17 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    16 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    14 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    9 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    38 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X