Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Stoporder problem

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

    Stoporder problem

    Hello
    I Have problem with the Stop orders

    EnterLongStop(DefaultQuantity,varC,"EntradaLargo");
    EnterShortStop(DefaultQuantity,varV,
    "EntradaCorto");

    Only work correctly one direction for example long orders , however Short orders don´t work correctly.
    Whith TraceOrders = true Reason='Invalid order price, please see log tab'
    has been ignored. Please search on the term 'Internal Order Handling Rules' in the Help Guide for detailed explanation.

    Curiously oposite sequence
    EnterShortStop(DefaultQuantity,varV,"EntradaCorto");
    EnterLongStop(DefaultQuantity,varC,"EntradaLargo");
    the results are that the oposite, work ShortOrder and the Long order don´t work


    Thanks


    #2
    Hello chemaninja,

    Welcome to the NinjaTrader forums!

    Your results are expected with the managed order system. Please see here for our Internal Order Handling rules. I have excerpted the rule you're running into.
    Methods that generate orders to enter a position will be ignored if:

    A position is open and an order submitted by an exit method (ExitLongLimit() for example) is active and the order is used to open a position in the opposite direction

    A position is open and an order submitted by a set method (SetStopLoss() for example) is active and the order is used to open a position in the opposite direction

    The entry signal name is not unique
    The strategy position is flat and an order submitted by an enter method (EnterLongLimit() for example) is active and the order is used to open a position in the opposite direction

    We introduced an unmanaged order entry system in version 7 that allows you to submit both long and short orders at the same time. Please see here for an introduction to unmanaged strategyes.
    http://www.ninjatrader.com/support/helpGuides/nt7/unmanaged_approach.htm
    Ryan M.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    633 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    364 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    105 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    567 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    568 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X