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 argusthome, Yesterday, 10:06 AM
        0 responses
        20 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        18 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        14 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        9 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        40 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X