Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Prevent indicator recalculation when connection is lost/reconnected in the weekend

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

    Prevent indicator recalculation when connection is lost/reconnected in the weekend

    I'm running strategies dependent on indicators that require tick replay for historical data.
    Since that tick replay is too resource intensive and that my strategies simply require the last 20 bars of indicator calculations to enter positions, I simply turn off tick replay and wait until 20 bars have drawn.

    However, sometimes during the weekend, when the markets are closed, the CQG Continuum connection is lost and when I reconnect, it forces the indicator recalculations and I lose all the history that has been built.

    Since these indicators are proprietary, I know that I can have them developed so that they record their historical calculations, however, I was wondering if there was a way to prevent the recalculations to happen when reconnecting to market data during the weekend as there hasn't been incoming data during the time the connection was lost. That forced recalculation is useless and needs to be prevented.

    I also know that I can modify the Strategies options to "Keep runnning" on connection loss, however, I don't know how I can set it up so it actually works for this use case (connection loss during weekends) without interfering with the possibility that the connection would be lost when the markets are open as this would affect the strategies.

    What do you suggest?

    Thank you.


    #2
    Hello jaysteel,

    There would not be a way around this. Changing the Data series settings like TickReplay will cause the data to reload and all scripts to reload.

    If you need an arbitrary amount of data and not the full series, then use a BarsRequest in the code instead of AddDataSeries().
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    71 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    43 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    25 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    28 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    56 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X