Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Remove Intrabar Granularity for Live?

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

    Remove Intrabar Granularity for Live?

    Does anyone have input regarding the changes best done to a strategy when transitioning from development/backtesting to live trading?

    My strategy using intrabar granularity for more accurate backtest results, with COBC = True.

    However, for live trading, it seems that completely removing the unnecessary-for-live trading intrabar granularity would be best. And depending on the strategy, COBC = False.

    Thoughts?

    Thanks!

    #2
    Serac, if this was just added for submitting orders to finer series for execution I would agree, you can probably include a call to Historical here to then define where orders should be sent to (primary for live/realtime, your added for historical environments).

    Comment


      #3
      If you want to reproduce in backtesting "COBC = False" you add one tick or one range granularity. In that case it should be the same in live, because in live "COBC = False" says run on every tick.

      Baruch

      Comment


        #4
        Thanks, Bertrand. Works just as I expected.

        And for future reference for others: It is possible to set COBC contingent on the state of Historical. I did CalculateOnBarClose = Historical and if (Historical) { Add(PeriodType.Tick,1); } in the Initialize() function.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        66 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        149 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        162 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        99 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        286 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X