Venice 0.7beta

org.mov.analyser
Class PaperTrade.Environment

java.lang.Object
  extended by org.mov.analyser.PaperTrade.Environment
Enclosing class:
PaperTrade

protected class PaperTrade.Environment
extends java.lang.Object


Field Summary
 CashAccount cashAccount
           
 int endDateOffset
           
 Portfolio portfolio
           
 EODQuoteBundle quoteBundle
           
 EODQuoteCache quoteCache
           
 ShareAccount shareAccount
           
 int startDateOffset
           
protected  java.lang.String tradeValueBuy
           
protected  java.lang.String tradeValueSell
           
 
Constructor Summary
PaperTrade.Environment(EODQuoteBundle quoteBundle, java.lang.String portfolioName, TradingDate startDate, TradingDate endDate, Money capital, java.lang.String tradeValueBuy, java.lang.String tradeValueSell)
          Create a new environment for paper trading.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

quoteCache

public EODQuoteCache quoteCache

quoteBundle

public EODQuoteBundle quoteBundle

portfolio

public Portfolio portfolio

cashAccount

public CashAccount cashAccount

shareAccount

public ShareAccount shareAccount

startDateOffset

public int startDateOffset

endDateOffset

public int endDateOffset

tradeValueBuy

protected java.lang.String tradeValueBuy

tradeValueSell

protected java.lang.String tradeValueSell
Constructor Detail

PaperTrade.Environment

public PaperTrade.Environment(EODQuoteBundle quoteBundle,
                              java.lang.String portfolioName,
                              TradingDate startDate,
                              TradingDate endDate,
                              Money capital,
                              java.lang.String tradeValueBuy,
                              java.lang.String tradeValueSell)
Create a new environment for paper trading.

Parameters:
quoteBundle - the historical quote data
portfolioName - the name of the portfolio
startDate - start date of trading
endDate - last date of trading
capital - initial capital for trading

Venice 0.7beta