internal void Remove(StrategyBase strategy)
 {
     this.list.Remove(strategy.Name);
 }
示例#2
0
 public Stop(StrategyBase strategy, double level, StopType type, StopMode mode) : this(strategy, null, level, type, mode)
 {
 }
示例#3
0
 public StrategyEventArgs(StrategyBase strategy)
 {
     this.strategy = strategy;
 }
 public virtual void Withdraw(StrategyBase strategy, double amount, Currency currency, string comment)
 {
     this.Withdraw(strategy, amount, Clock.Now, currency, comment);
 }
 public virtual void Withdraw(StrategyBase strategy, double amount, DateTime datetime, Currency currency, string comment)
 {
     strategy.Withdraw(amount, currency, datetime, comment);
 }
 public virtual void Deposit(StrategyBase strategy, double amount, Currency currency, string comment)
 {
     this.Deposit(strategy, amount, Clock.Now, currency, comment);
 }
 public virtual void Deposit(StrategyBase strategy, double amount, DateTime datetime, Currency currency, string comment)
 {
     strategy.Deposit(amount, currency, datetime, comment);
 }