Options

View as Markdown

Definition

The connection’s configuration options

Properties

PropertyDescription
ConnectOnStartupA bool representing if this connection auto connects on startup

—

NameA string representing the connection’s name
ProviderA Provider representing the connection’s provider

Examples

1// Example of accessing information on all connected connections
2public class MyAddOnTab : NTTabPage
3{
4 public MyAddOnTab()
5 {
6 // Print information about all connected connections
7 lock (Connection.Connections)
8 Connection.Connections.ToList().ForEach(c => NinjaTrader.Code.Output.Process(string.Format("Connection: {0} Provider: {1}", c.Options.Name, c.Options.Provider), PrintTo.OutputTab1));
9 }
10
11 // Other required NTTabPage members left out for demonstration purposes. Be sure to add them in your own code.
12}