Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Simulating in tick-resolution

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

    Simulating in tick-resolution

    Hello Ninja Team,

    I wish to run a simulation in which:
    • The OnBarUpdate() only sends/cancels orders on per bar
    • The FillType's Fill() methods gets called evety trade tick


    What is the recommended setting to achieve this?

    Thanks,
    Boaz

    #2
    Hi Boaz, you can add in a finer series to your script to submit the orders to it and thus have the fill methods use the higher resolution then. OnBarUpdate() processing for this series could be returned out of so your events to send the orders would actually stay on the higher timeframe then. Here's a reference on this technique, that will be made more convenient to access in our next major platform update.

    You can submit orders to different Bars objects. This allows you the flexibility of submitting orders to different timeframes. Like in live trading, taking entry conditions from a 5min chart means executing your order as soon as possible instead of waiting until the next 5min bar starts building. You can achieve this by

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    68 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    36 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    61 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    62 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    53 views
    0 likes
    Last Post CarlTrading  
    Working...
    X