Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Connection type

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

    Connection type

    Is there a way to know if the connection is a market replay? For example in the code like this

    If ( connection == Connection.marketreplay)
    {
    // do something
    }

    #2
    Edward, you could for example pick this undocumented technique from the BarTimer script -

    if (Bars.MarketData.Connection.Options.Provider == Cbi.Provider.Replay) ...
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by habeebft, Today, 07:27 AM
    0 responses
    1 view
    0 likes
    Last Post habeebft  
    Started by Tim-c, Today, 03:54 AM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by rocketman7, Today, 01:00 AM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by wzgy0920, 04-23-2024, 09:53 PM
    3 responses
    76 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by JonesJoker, 04-22-2024, 12:23 PM
    9 responses
    46 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X