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 SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    50 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    22 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    16 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    22 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    23 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X