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 llanqui, Yesterday, 03:51 PM
    6 responses
    26 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by tradingnasdaqprueba, Today, 03:42 AM
    8 responses
    34 views
    0 likes
    Last Post tradingnasdaqprueba  
    Started by manueldecastro, Today, 01:16 PM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by AlgoDreamer, Today, 12:39 PM
    2 responses
    8 views
    0 likes
    Last Post AlgoDreamer  
    Started by ninza33, Today, 12:31 PM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_LuisH  
    Working...
    X