コード例 #1
0
 public TradeSignalProcessor(Func <Account> getAccountInfo, Action <string> logMessage,
                             Func <List <MarketOrder> > getMarketOrders, Func <VolumeRoundType> getVolumeRound,
                             ITradeSharpServerTrade proxy, CurrentProtectedContext protectedContext,
                             FarmAccount farmAccount)
 {
     this.getAccountInfo   = getAccountInfo;
     this.proxy            = proxy;
     this.logMessage       = logMessage;
     this.getMarketOrders  = getMarketOrders;
     this.getVolumeRound   = getVolumeRound;
     this.protectedContext = protectedContext;
     this.farmAccount      = farmAccount;
 }
コード例 #2
0
 public TradeSignalProcessor(Func<Account> getAccountInfo, Action<string> logMessage,
     Func<List<MarketOrder>> getMarketOrders, Func<VolumeRoundType> getVolumeRound,
     ITradeSharpServerTrade proxy, CurrentProtectedContext protectedContext,
     FarmAccount farmAccount)
 {
     this.getAccountInfo = getAccountInfo;
     this.proxy = proxy;
     this.logMessage = logMessage;
     this.getMarketOrders = getMarketOrders;
     this.getVolumeRound = getVolumeRound;
     this.protectedContext = protectedContext;
     this.farmAccount = farmAccount;
 }