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

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