Beispiel #1
0
 public Instrument(
     InstrumentName name,
     InstrumentType type,
     string displayName,
     int pipLocation,
     int displayPrecision,
     int tradeUnitsPrecision,
     double minimumTradeSize,
     double maximumTrailingStopDistance,
     double minimumTrailingStopDistance,
     double maximumPositionSize,
     double maximumOrderUnits,
     double marginRate,
     InstrumentCommission commission
     )
 {
     this.Name                        = name;
     this.Type                        = type;
     this.DisplayName                 = displayName;
     this.PipLocation                 = pipLocation;
     this.DisplayPrecision            = displayPrecision;
     this.TradeUnitsPrecision         = tradeUnitsPrecision;
     this.MinimumTradeSize            = minimumTradeSize;
     this.MaximumTrailingStopDistance = maximumTrailingStopDistance;
     this.MinimumTrailingStopDistance = minimumTrailingStopDistance;
     this.MaximumPositionSize         = maximumPositionSize;
     this.MaximumOrderUnits           = maximumOrderUnits;
     this.MarginRate                  = marginRate;
     this.Commission                  = commission;
 }
Beispiel #2
0
 public Instrument()
 {
     this.Name       = new InstrumentName();
     this.Type       = new InstrumentType();
     this.Commission = new InstrumentCommission();
 }