public OrderSettings(StrategyHeader strategyHeader, int timeToLiveSeconds) { this.Id = strategyHeader.Id; this.TimeToLive = timeToLiveSeconds; this.Strategy = strategyHeader; this.StrategyId = strategyHeader.Id; }
public Correlation(StrategyHeader strategyHeader, DateTime date, double value) { this.Strategy = strategyHeader; this.StrategyId = this.Strategy.Id; this.DateTime = date; this.Value = value; }
public PositionSettings(StrategyHeader strategyHeader, PositionType type) { this.Id = strategyHeader.Id; this.Strategy = strategyHeader; this.StrategyId = strategyHeader.Id; this.PositionType = type; }
public StrategyVolumeChangeStep(StrategyHeader strategyHeader, double amount) { this.Strategy = strategyHeader; this.StrategyId = strategyHeader.Id; this.Amount = amount; this.Id = strategyHeader.Id; }
public PointsSettings(StrategyHeader strategyHeader, double points, bool trail) { this.Id = strategyHeader.Id; this.Strategy = strategyHeader; this.StrategyId = strategyHeader.Id; this.Points = points; this.Trail = trail; }
public SMASettings(StrategyHeader strategyHeader, int periodFast, int periodSlow) { this.Id = SerialIntegerFactory.Make(); this.Strategy = strategyHeader; this.StrategyId = strategyHeader.Id; this.PeriodFast = periodFast; this.PeriodSlow = periodSlow; }
public StrategyPosition(StrategyHeader strategyHeader) : this() { this.Id = strategyHeader.Id; this.StrategyId = strategyHeader.Id; this.Strategy = strategyHeader; this.amount = 0; this.sum = 0; }
/// <summary> /// NoTest /// </summary> /// <param name="strategyHeader">strategyHeader</param> /// <param name="symbol">symbol</param> /// <param name="interval">Длительность бара</param> /// <param name="period">Количество баров</param> /// <param name="barType">Тип бара</param> public BarSettings(StrategyHeader strategyHeader, string symbol, int interval, int period, DataModelType barType) { this.Id = SerialIntegerFactory.Make(); this.Symbol = symbol; this.Interval = interval; this.Period = period; this.StrategyId = strategyHeader.Id; this.Strategy = strategyHeader; this.BarType = barType; }
//public Signal(StrategyHeader strategyHeader, DateTime date, TradeAction action, OrderType type, double price, double stop, double limit, long? barId = null, Bar bar = null) public Signal(StrategyHeader strategyHeader, DateTime date, TradeAction action, OrderType type, double price, double stop, double limit, long barDateId, Bar bar) { this.Id = SerialIntegerFactory.Make(); this.StrategyId = strategyHeader.Id; this.Strategy = strategyHeader; this.DateTime = date; this.TradeAction = action; this.OrderType = type; this.Amount = strategyHeader.Amount; this.Price = price; this.Stop = stop; this.Limit = limit; this.BarDateId = barDateId; this.Bar = bar; }
public PositionSettings(StrategyHeader strategyHeader) : this(strategyHeader, PositionType.Any) { }
public StopPointsSettings(StrategyHeader strategyHeader, double points, bool trail) : base(strategyHeader, points, trail) { }
///// <summary> ///// ///// </summary> ///// <param name="strategyHeader"></param> ///// <param name="symbol"></param> ///// <param name="interval">длительность бара</param> ///// <param name="period">количество баров</param> //public BarSettings(Strategy strategyHeader, string symbol, int interval, int period) //{ // this.Id = SerialIntegerFactory.Make(); // this.Symbol = symbol; // this.Interval = interval; // this.Period = period; // this.StrategyId = strategyHeader.Id; // this.Strategy = strategyHeader; // this.BarSettings = DataModelType.TimeBar; //} /// <summary> /// BarSettings /// </summary> /// <param name="strategyHeader">strategyHeader</param> /// <param name="symbol">symbol</param> /// <param name="interval">Длительность бара</param> /// <param name="period">Количество баров</param> /// <param name="barType">Тип бара</param> public BarSettings(StrategyHeader strategyHeader, string symbol, int interval, int period) : this(strategyHeader, symbol, interval, period, DataModelType.TimeBar) { }
public TakeProfitOrderSettings(StrategyHeader strategyHeader, int timeToLiveSeconds) : base(strategyHeader, timeToLiveSeconds) { }
public StopLossOrderSettings(StrategyHeader strategyHeader, int timeToLiveSeconds) : base(strategyHeader, timeToLiveSeconds) { }