ConnectOptions
<< Click to Display Table of Contents >> ConnectOptions |
ConnectOptions is an abstract class used to configure options for a specific configured Connection. An instance of ConnectOptions can be passed into the Connection.Connect() method to initiate a connection, as seen in the example below.
Note: For a complete, working example of this class in use, download framework example located on our Developing AddOns Overview |
Properties accessible from an instance of ConnectOptions include:
BrandName |
A string representing the provider name |
CanEnableHds |
A bool determining the connection can use NinjaTrader Historical Data Servers. Related properties include HasHdsAlwaysEnabled and IsHdsEnabled |
CanManageOrders |
A bool determining orders can be managed on the Connection. Related properties include IsDataProviderOnly |
Mode |
A NinjaTrader.Cbi.Mode object representing the current mode of the connection (Mode.Live or Mode.Simulation) |
Name |
The user-configured name of the Connection |
Provider |
The provider configured in the Connection |
// Connecting to a configured connection |