|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sourceforge.jasa.agent.strategy.FixedTradeDirectionPolicy
public class FixedTradeDirectionPolicy
A trade direction policy which specifies a configurable fixed position to take in the market.

| Field Summary | |
|---|---|
protected boolean |
isBuy
|
| Constructor Summary | |
|---|---|
FixedTradeDirectionPolicy()
|
|
| Method Summary | |
|---|---|
boolean |
isBuy()
|
boolean |
isBuy(Market market,
TradingAgent agent)
Decide whether to go long long (buy) or short (sell). |
void |
setBuy(boolean isBuy)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean isBuy
| Constructor Detail |
|---|
public FixedTradeDirectionPolicy()
| Method Detail |
|---|
public boolean isBuy(Market market,
TradingAgent agent)
TradeDirectionPolicy
isBuy in interface TradeDirectionPolicymarket - The market in which to make a trading decision
public boolean isBuy()
public void setBuy(boolean isBuy)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||