net.sourceforge.jasa.agent.strategy
Class PriestVanTolStrategy
java.lang.Object
AbstractStrategy
net.sourceforge.jasa.agent.strategy.AbstractTradingStrategy
net.sourceforge.jasa.agent.strategy.FixedQuantityStrategyImpl
net.sourceforge.jasa.agent.strategy.FixedDirectionStrategy
net.sourceforge.jasa.agent.strategy.MomentumStrategy
net.sourceforge.jasa.agent.strategy.PriestVanTolStrategy
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, FixedQuantityStrategy, TradingStrategy, MarketEventListener
public class PriestVanTolStrategy
- extends MomentumStrategy
- implements java.io.Serializable
-
-
Fields inherited from class net.sourceforge.jasa.agent.strategy.MomentumStrategy |
absolutePerterbationDistribution, currentPrice, initialMarginDistribution, lastShout, lastShoutAccepted, learner, prng, relativePerterbationDistribution, scaling, trAskPrice, trBidPrice, trPrice |
Methods inherited from class net.sourceforge.jasa.agent.strategy.MomentumStrategy |
adjustMargin, afterPropertiesSet, eventOccurred, getCurrentPrice, getInitialMarginDistribution, getLastShout, getLearner, getPrng, getScaling, getTrAskPrice, getTrBidPrice, getTrPrice, initialise, isLastShoutAccepted, modifyShout, onAgentPolled, onOrderPlaced, onRoundClosed, onTransactionExecuted, perterb, setInitialMarginDistribution, setLearner, setLearner, setMargin, setPrng, setScaling, subscribeToEvents, targetMargin |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
historicalDataReport
protected HistoricalDataReport historicalDataReport
PriestVanTolStrategy
public PriestVanTolStrategy(AbstractTradingAgent agent,
RandomEngine prng)
onMarketOpen
public void onMarketOpen(MarketOpenEvent event)
- Overrides:
onMarketOpen
in class MomentumStrategy
adjustMargin
protected void adjustMargin()
- Specified by:
adjustMargin
in class MomentumStrategy
calculatePrice
protected double calculatePrice(double margin)
- Overrides:
calculatePrice
in class MomentumStrategy
getHistoricalDataReport
public HistoricalDataReport getHistoricalDataReport()
setHistoricalDataReport
public void setHistoricalDataReport(HistoricalDataReport historicalDataReport)