net.sourceforge.jasa.agent.strategy
Interface TradeDirectionPolicy

All Known Implementing Classes:
FixedTradeDirectionPolicy, ForecastTradeDirectionPolicy

public interface TradeDirectionPolicy

Classes defining this interface are responsible for deciding which direction --- long or short --- should be taken by the specified TradingAgent.

 

Method Summary
 boolean isBuy(Market market, TradingAgent agent)
          Decide whether to go long long (buy) or short (sell).
 

Method Detail

isBuy

boolean isBuy(Market market,
              TradingAgent agent)
Decide whether to go long long (buy) or short (sell).

Parameters:
market - The market in which to make a trading decision
Returns:
true for a long position or false for a short position