Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Run Backtest on every tick, not on bar close

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

    Run Backtest on every tick, not on bar close

    How I can test Strategy on every tick, not on bar close?

    For example if I select 60min it use only HLOC prices this bar, but I have tick data. Why it's happend?

    Thanks

    #2
    vadzim, welcome to our forums here - unfortunately the tick formation of your minute bars is not known in backtesting, the OnBarUpdate() for the strategy / indicators would be called at the close of the bar only.

    To simulate an execution intrabar, you can add a finer granularity to your strategy as per this sample -

    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
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Skifree, Today, 03:41 AM
    1 response
    4 views
    0 likes
    Last Post Skifree
    by Skifree
     
    Started by usazencort, Today, 01:16 AM
    0 responses
    1 view
    0 likes
    Last Post usazencort  
    Started by kaywai, 09-01-2023, 08:44 PM
    5 responses
    603 views
    0 likes
    Last Post NinjaTrader_Jason  
    Started by xiinteractive, 04-09-2024, 08:08 AM
    6 responses
    23 views
    0 likes
    Last Post xiinteractive  
    Started by Pattontje, Yesterday, 02:10 PM
    2 responses
    23 views
    0 likes
    Last Post Pattontje  
    Working...
    X