|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjp.sourceforge.orangesignal.trading.strategy.AbstractStrategy
jp.sourceforge.orangesignal.trading.strategy.StrategySupport
jp.sourceforge.orangesignal.trading.strategy.systems.Momentum
public abstract class Momentum
モメンタムを使用するストラテジーの基底クラスを提供します。
フィールドの概要 | |
---|---|
protected Number[] |
mom1
|
protected Number[] |
mom2
|
コンストラクタの概要 | |
---|---|
Momentum()
|
メソッドの概要 | |
---|---|
int |
getPeriod()
モメンタムの期間を返します。 |
FourPrice |
getPrice()
4本値の種類を返します。 |
void |
init()
ストラテジーを初期化します。 |
void |
setPeriod(int period)
モメンタムの期間を設定します。 |
void |
setPrice(FourPrice price)
4本値の種類を設定します。 |
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 Number[] mom1
protected Number[] mom2
コンストラクタの詳細 |
---|
public Momentum()
メソッドの詳細 |
---|
public FourPrice getPrice()
public void setPrice(FourPrice price)
price
- 4本値の種類public int getPeriod()
public void setPeriod(int period)
period
- モメンタムの期間public void init()
AbstractStrategy
の記述:ストラテジーを初期化します。
デフォルトの実装は何も行いません。
Strategy
内の init
AbstractStrategy
内の init
public void terminate()
AbstractStrategy
の記述:ストラテジーを終了します。
デフォルトの実装は何も行いません。
Strategy
内の terminate
AbstractStrategy
内の terminate
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |