Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Running strategy in Real-Time

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

    Running strategy in Real-Time

    I am currently using a simulated account and I have completed the backtesting part of my strategy. Now I want to do real-time testing only in my simulated account. Is there a way to tell the strategy not to make any trades with historical information as the strategy gets executed for the first time? I just want to take trades based on real-time data.

    If there is no such parameter or method, which is the start behavior that always guarantees for the strategy to be in synch by the time is evaluating the real-time data? I am currently using Immediately submit, synchron... The way I understand this parameter setting is that when starting the strategy and evaluating historical data, if the strategy has an open position by the time it gets to the real-time data, it will submit a closing trade so that the strategy is in synch with the account (assuming the account did not have any open trades before the strategy was initiated).

    Thanks,
    Javier

    #2
    Hello GARZONJ,

    Thanks for your post.

    You can skip historical processing in your strategy by adding if (State == State.Historical) return; to the top of your OnBarUpdate method.

    Immediately Submit is used when you know the account is where you want it when enabling the strategy. This is useful for having a strategy match historical orders against live working orders so if you disable the strategy, you can enable it so it resumes. Synchronize Account is an additional setting that submits an order to the account to sync it with the position of strategy.

    For the thread's reference, documentation on start behaviors can be found here - https://ninjatrader.com/support/help..._positions.htm

    We look forward to being of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    87 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    132 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
    118 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    67 views
    0 likes
    Last Post PaulMohn  
    Working...
    X