jp.sourceforge.orangesignal.trading.strategy.systems
クラス Momentum

java.lang.Object
  上位を拡張 jp.sourceforge.orangesignal.trading.strategy.AbstractStrategy
      上位を拡張 jp.sourceforge.orangesignal.trading.strategy.StrategySupport
          上位を拡張 jp.sourceforge.orangesignal.trading.strategy.systems.Momentum
すべての実装されたインタフェース:
Strategy
直系の既知のサブクラス:
MomentumLongEntry, MomentumShortEntry

public abstract class Momentum
extends StrategySupport

モメンタムを使用するストラテジーの基底クラスを提供します。


フィールドの概要
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
 

フィールドの詳細

mom1

protected Number[] mom1

mom2

protected Number[] mom2
コンストラクタの詳細

Momentum

public Momentum()
メソッドの詳細

getPrice

public FourPrice getPrice()
4本値の種類を返します。

戻り値:
4本値の種類

setPrice

public void setPrice(FourPrice price)
4本値の種類を設定します。

パラメータ:
price - 4本値の種類

getPeriod

public int getPeriod()
モメンタムの期間を返します。

戻り値:
モメンタムの期間

setPeriod

public void setPeriod(int period)
モメンタムの期間を設定します。

パラメータ:
period - モメンタムの期間

init

public void init()
クラス AbstractStrategy の記述:

ストラテジーを初期化します。

デフォルトの実装は何も行いません。

定義:
インタフェース Strategy 内の init
オーバーライド:
クラス AbstractStrategy 内の init

terminate

public void terminate()
クラス AbstractStrategy の記述:

ストラテジーを終了します。

デフォルトの実装は何も行いません。

定義:
インタフェース Strategy 内の terminate
オーバーライド:
クラス AbstractStrategy 内の terminate


Copyright © 2006-2009 OrangeSignal.com. All Rights Reserved.