Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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

    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 aligator, 01-06-2022, 12:14 PM
        4 responses
        238 views
        0 likes
        Last Post john_44573  
        Started by reynoldsn, Today, 05:56 PM
        0 responses
        11 views
        0 likes
        Last Post reynoldsn  
        Started by bortz, 11-06-2023, 08:04 AM
        51 responses
        1,990 views
        0 likes
        Last Post aligator  
        Started by dmking, 11-12-2019, 12:31 PM
        4 responses
        4,155 views
        0 likes
        Last Post jasonw
        by jasonw
         
        Started by roblogic, Today, 04:31 PM
        0 responses
        11 views
        0 likes
        Last Post roblogic  
        Working...
        X