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 charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    56 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    143 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    160 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    96 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    276 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X