|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjp.sourceforge.orangesignal.trading.strategy.AbstractStrategy
jp.sourceforge.orangesignal.trading.strategy.StrategySupport
jp.sourceforge.orangesignal.trading.strategy.systems.MovingAverage2LineCross
public abstract class MovingAverage2LineCross
短期移動平均と長期移動平均の交差をシグナルとするストラテジーの基底クラスを提供します。
フィールドの概要 | |
---|---|
protected CrossSignal[] |
cross
短期移動平均と長期移動平均の交差シグナルを保持します。 |
コンストラクタの概要 | |
---|---|
MovingAverage2LineCross()
|
メソッドの概要 | |
---|---|
int |
getFast()
短期移動平均の期間を返します。 |
FourPrice |
getPrice()
価格の種類を返します。 |
int |
getSlow()
長期移動平均の期間を返します。 |
MovingAverage |
getType()
移動平均の種類を返します。 |
void |
init()
ストラテジーを初期化します。 |
void |
setFast(int fast)
短期移動平均の期間を設定します。 |
void |
setPrice(FourPrice price)
価格の種類を設定します。 |
void |
setSlow(int slow)
長期移動平均の期間を設定します。 |
void |
setType(MovingAverage type)
移動平均の種類を設定します。 |
void |
terminate()
ストラテジーを終了します。 |
クラス jp.sourceforge.orangesignal.trading.strategy.StrategySupport から継承されたメソッド |
---|
buy, buy, buy, buy, buy, buy, buy, buy, buy, buy, buy, buy, buy, buy, buy, buy, buyToCover, buyToCover, buyToCover, buyToCover, buyToCover, buyToCover, buyToCover, buyToCover, buyToCover, buyToCover, buyToCover, buyToCover, buyToCover, buyToCover, buyToCover, buyToCover, buyToCover, buyToCover, buyToCover, buyToCover, buyToCover, buyToCover, buyToCover, buyToCover, sell, sell, sell, sell, sell, sell, sell, sell, sell, sell, sell, sell, sell, sell, sell, sell, sell, sell, sell, sell, sell, sell, sell, sell, sellShort, sellShort, sellShort, sellShort, sellShort, sellShort, sellShort, sellShort, sellShort, sellShort, sellShort, sellShort, sellShort, sellShort, sellShort, sellShort |
クラス jp.sourceforge.orangesignal.trading.strategy.AbstractStrategy から継承されたメソッド |
---|
buy, buyToCover, createOrder, getCandlestick, getClose, getCommission, getCurrentDataIndex, getCurrentEntries, getCurrentPosition, getCurrentPositions, getDataset, getDate, getDefaultOrderTiming, getEndDataIndex, getEntryDate, getEntryPrice, getHigh, getLow, getMarketPositionType, getOpen, getStartDataIndex, getStrategyName, getSymbol, getTrader, getVolume, sell, sellShort, setCurrentDataIndex, setDataset, setDate, setDefaultOrderTiming, setEndDataIndex, setStartDataIndex, setSymbol, setTrader |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
インタフェース jp.sourceforge.orangesignal.trading.strategy.Strategy から継承されたメソッド |
---|
process |
フィールドの詳細 |
---|
protected CrossSignal[] cross
コンストラクタの詳細 |
---|
public MovingAverage2LineCross()
メソッドの詳細 |
---|
public FourPrice getPrice()
public void setPrice(FourPrice price)
price
- 価格の種類public int getFast()
public void setFast(int fast)
fast
- 短期移動平均の期間public int getSlow()
public void setSlow(int slow)
slow
- 長期移動平均の期間public MovingAverage getType()
public void setType(MovingAverage type)
type
- 移動平均の種類public void init()
AbstractStrategy
の記述:ストラテジーを初期化します。
デフォルトの実装は何も行いません。
Strategy
内の init
AbstractStrategy
内の init
public void terminate()
AbstractStrategy
の記述:ストラテジーを終了します。
デフォルトの実装は何も行いません。
Strategy
内の terminate
AbstractStrategy
内の terminate
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |