private void AlgoBuy(List <DailyDataPoint> listOfData, int i, AlgoPicker _algoPicker)
 {
     // Last condition is because, can't buy untills tomorrows close
     if (_algoPicker.PickAlgoBuy() && _tradeManager.AddNewTradeOk())
     {
         _tradeManager.AddTrade(new OneTrade {
             Buy = listOfData[i].Close, BuyDate = TimeTranslation2(listOfData[i].Date)
         });
     }
 }
Example #2
0
 private void AddOpenedTrade(int index)
 {
     _tradeManager.AddTrade(new OneTrade {
         Buy = _dataList[index].Close, BuyDate = TimeTranslation2(_dataList[index].Date)
     });
 }