Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Sudden Exits without clues in TraceLog

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

    Sudden Exits without clues in TraceLog

    Please see the following entry on my 360-min chart:



    Here's only the tracelog:

    5/19/2013 6:08:28 PM Entered internal PlaceOrder() method at 5/19/2013 6:08:28 PM: BarsInProgress=1 Action=SellShort OrderType=Market Quantity=1 LimitPrice=0 StopPrice=0 SignalName='Short Position' FromEntrySignal=''
    5/19/2013 6:00:00 PM Entered internal PlaceOrder() method at 5/19/2013 6:00:00 PM: BarsInProgress=0 Action=BuyToCover OrderType=Stop Quantity=1 LimitPrice=0 StopPrice=1.2848'2 SignalName='Stop loss' FromEntrySignal='Short Position'
    5/19/2013 11:59:53 PM Cancelled pending exit order, since associated position is closed: Order='NT-00001/Sim101' Name='Stop loss' State=Working Instrument='$EURUSD' Action=BuyToCover Limit price=0 Stop price=1.28482 Quantity=1 Strategy='CrazyIvanPlus' Type=Stop Tif=Gtc Oco='' Filled=0 Fill price=0 Token='3c25a1a7f798476aac70387f319cba82' Gtd='12/1/2099 12:00:00 AM'
    This is extremely weird. I'm pretty certain that my strategy does not actively close this trade. I also looked at the session settings and its 24x7. Very strange - I can't figure out why it's closing this trade. What gets me is that there is nothing about the closed trade in the tracelog. It just suddenly clears the stop that was set as the associated position has been closed. By the way this is with the demo account - not live trading.

    FYI - this apparently only seems to be happening with periods above 180 minutes. I see it on 240 min and 360 min charts.

    Really need some help with this

    Thanks in advance.
    Attached Files
    Last edited by molecool; 05-22-2013, 07:43 AM.

    #2
    Hello,

    Thank you for providing the chart.

    It looks like this trade was exited due to an exit on close.

    In the event your trade exits with exit on close it will not show up in the TraceOrders but will show up in the log of your control center.

    You can disable exit on close when running the strategy by setting it to false. You can also hardcode the default: http://www.ninjatrader.com/support/h...xitonclose.htm

    Let me know if I can be of further assistance.
    LanceNinjaTrader Customer Service

    Comment


      #3
      Thank you!!!

      Originally posted by NinjaTrader_Lance View Post
      Hello,

      Thank you for providing the chart.

      It looks like this trade was exited due to an exit on close.

      In the event your trade exits with exit on close it will not show up in the TraceOrders but will show up in the log of your control center.

      You can disable exit on close when running the strategy by setting it to false. You can also hardcode the default: http://www.ninjatrader.com/support/h...xitonclose.htm

      Let me know if I can be of further assistance.
      That indeed was the problem. Funny after four years coding with NT I didn't think of that - LOL - silly me :-)

      Muchisimas gracias :-)

      Comment


        #4
        Happy to help
        LanceNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by sjsj2732, Yesterday, 04:31 AM
        0 responses
        31 views
        0 likes
        Last Post sjsj2732  
        Started by NullPointStrategies, 03-13-2026, 05:17 AM
        0 responses
        286 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        283 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        133 views
        1 like
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        91 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Working...
        X