Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Invalid 'Close Position' on intraday chart

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

    Invalid 'Close Position' on intraday chart

    When I apply a strategy that is currently in a position, to a chart that is
    updating, I always see a 'Close position' exit that isn't being generated by
    the strategy, on the last bar of the chart (the currently forming bar) --
    this makes the strategy go out of sync with the account.

    In other words, the account and strategy will be in sync, and I'll
    make a change to the ninja script which doesn't change the current
    position of the strategy, and when I reload the script, I always get a
    'Close position' on the last bar that wasn't triggered by the strategy.

    When I wait for the session to close and the chart to stop updating and
    reload the strategy that 'Close position' goes away.

    Can someone explain this ?

    #2
    Please use TraceOrders = true to determine what is happening in your strategy. Also, check your Exit on Close setting.
    Josh P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Barry Milan, Today, 10:35 PM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by WeyldFalcon, 12-10-2020, 06:48 PM
    14 responses
    1,428 views
    0 likes
    Last Post Handclap0241  
    Started by DJ888, Yesterday, 06:09 PM
    2 responses
    9 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by jeronymite, 04-12-2024, 04:26 PM
    3 responses
    40 views
    0 likes
    Last Post jeronymite  
    Started by bill2023, Today, 08:51 AM
    2 responses
    16 views
    0 likes
    Last Post bill2023  
    Working...
    X