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 PaulMohn, Today, 12:36 PM
    0 responses
    2 views
    0 likes
    Last Post PaulMohn  
    Started by love2code2trade, 04-17-2024, 01:45 PM
    4 responses
    38 views
    0 likes
    Last Post love2code2trade  
    Started by alifarahani, Today, 09:40 AM
    2 responses
    14 views
    0 likes
    Last Post alifarahani  
    Started by junkone, Today, 11:37 AM
    3 responses
    20 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by frankthearm, Yesterday, 09:08 AM
    12 responses
    44 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Working...
    X