setTradeDirectionPolicy(TradeDirectionPolicy tradeDirectionPolicy)
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
auction
protected Market auction
tradeDirectionPolicy
protected TradeDirectionPolicy tradeDirectionPolicy
AbstractTradingStrategy
public AbstractTradingStrategy()
AbstractTradingStrategy
public AbstractTradingStrategy(AbstractTradingAgent agent)
reset
public void reset()
protoClone
public java.lang.Object protoClone()
modifyOrder
public Order modifyOrder(Order currentShout,
Market auction)
- Modify the price and quantity of the given shout according to this
strategy.
- Specified by:
modifyOrder in interface TradingStrategy
- Parameters:
currentShout - The shout to be updated
- Returns:
- false if no shout is to be placed at this time
modifyShout
public boolean modifyShout(Order shout)
initialise
public void initialise()
- Specified by:
initialise in interface TradingStrategy
getAgent
public AbstractTradingAgent getAgent()
setAgent
public void setAgent(AbstractTradingAgent agent)
- Specified by:
setAgent in interface TradingStrategy
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Throws:
java.lang.CloneNotSupportedException
isBuy
public boolean isBuy(Market market)
- Specified by:
isBuy in interface TradingStrategy
getTradeDirectionPolicy
public TradeDirectionPolicy getTradeDirectionPolicy()
setTradeDirectionPolicy
|