Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

An Enter Long Order executing from a ExitShort() ?

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

    An Enter Long Order executing from a ExitShort() ?

    A strange thing happen to me today. I had my strategy running with a Short Order open when on one single bar, two ExitShort () orders happened. The first one closed the Short order but the second instead of doing nothing (what I was expecting), it executed a Long Order. This happened in a live environment; in fact, when i run the backtest it doesn't happen. When I check "Trade Performance" the Long Entry Name is in fact the name of my exit strategy: "SX_ShortStopLossDyn"

    The order that generated the long order was ExitShort(@"SX_ShortStopLossDyn", String.Empty);

    Could the "String.Empty" generated the issue? Any ideas how to prevent this from happening again?

    Thanks



    #2
    Hello Danilod,

    Thanks for your post.

    Please send us your log and trace files so we can review the sequence. Do not post them here in this public forum.

    Send the log and trace files to ScriptingSupport[at]Ninjatrader[dot]com, Mark the subject: Atten Paul, Ticket # 3367784.

    In the body of the e-mail:

    1) add a Link to this thread for reference
    2) Advise the name of the strategy and the date/time of the occurrence (this helps us to narrow down in these files where to look)
    3) Advise what the Calculate setting was for the strategy. (OnBarClose, OnPriceChange, OnEachTick)
    4) If you have a screenshot of the orders from the execution tab or on a chart please attach that as well.
    5) Advise what bar type and bar size and instrument was used.
    6) Advise how you were backtesting (IE: Strategy analyzer or Playback with market replay data)
    7) Advise if this is a strategy builder strategy or a Ninjascript strategy.
    8) attach your log and trace files:

    Please follow the steps below to manually attach your log and trace files to your e-mail
    • Open your NinjaTrader folder under, "Documents" (sometimes called, "My Documents")
    • Right click on the 'log' and 'trace' folders and select Send To> Compressed (zipped) Folder.
    • Send the 2 compressed folders as attachments to the email.
    • Once complete, you can delete these compressed folders.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    88 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    135 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    119 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    69 views
    0 likes
    Last Post PaulMohn  
    Working...
    X