Beispiel #1
0
 @Override
 public void order(TradeAgent arg0) {
   InformationManager im = InformationManager.getInstance();
   ArrayList<Stock> stockList = im.getStockList();
   Stock stock = stockList.get(0);
   OrderManager om = OrderManager.getInstance();
   int quantity = stock.getUnit();
   om.orderActualNowMarket(stock, quantity);
 }
Beispiel #2
0
  @Override
  public void screening(TradeAgent arg0) {

    // Asset
    AssetManager am = AssetManager.getInstance();
    logger75.i("資産評価額:" + am.getTotalAssetValue());
    logger75.i("株価評価額:" + am.getTotalStockValue());
    logger75.i("取引余力:" + am.getTradableMoney());
    // Screening
    InformationManager im = InformationManager.getInstance();
    ArrayList<Stock> stockList = im.getStockList();
    for (Stock stock : stockList) {
      logger75.i(stock.getStockName());
    }
  }