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 Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        683 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        386 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        111 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        584 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        585 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X