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 SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        47 views
        0 likes
        Last Post SalmaTrader  
        Started by CarlTrading, 07-05-2026, 01:16 PM
        0 responses
        22 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 06-17-2026, 10:32 AM
        0 responses
        15 views
        0 likes
        Last Post CaptainJack  
        Started by kinfxhk, 06-17-2026, 04:15 AM
        0 responses
        21 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 06-17-2026, 04:06 AM
        0 responses
        23 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X