Is there an easy way to find out which connection I have?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
How do I detect if I'm in Playback or have a live connection
Collapse
X
-
Try something like this,
Code:if (Cbi.Connection.PlaybackConnection != null) Print("Connection is Playback"); else if (Connection.Connections.Count > 0) { if (Bars == null || Bars.Count == 0 || Bars.Instrument == null || Bars.Instrument.GetMarketDataConnection() == null) Print("Connection is not Live"); else Print("Connection is Live"); } else Print("No connection");
Comment
-
Hello crea8able,
Thanks for your post.
bltdavid has provided excellent information on this topic regarding how to determine if you are connected to the Playback connection.
See the help guide pages below for more information.
Connection: https://ninjatrader.com/support/help...sub=Connection<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
63 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
88 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
47 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
105 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
63 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment