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