Options
Definition
The connection’s configuration options
Properties
| Property | Description |
|---|---|
| ConnectOnStartup | A bool representing if this connection auto connects on startup |
—
| Name | A string representing the connection’s name |
|---|---|
| Provider | A Provider representing the connection’s provider |
Examples
1 // Example of accessing information on all connected connections 2 public 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 }

