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 NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    62 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    134 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    75 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    45 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    50 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X