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

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

public abstract class MovingAverageCross
extends StrategySupport

価格と移動平均の交差をシグナルとするストラテジーの基底クラスを提供します。


フィールドの概要
protected  CrossSignal[] cross
          価格と移動平均の交差シグナルを保持します。
 
コンストラクタの概要
MovingAverageCross()
           
 
メソッドの概要
 int getPeriod()
          移動平均の期間を返します。
 FourPrice getPrice()
          価格の種類を返します。
 MovingAverage getType()
          移動平均の種類を返します。
 void init()
          ストラテジーを初期化します。
 void setPeriod(int period)
          移動平均の期間を設定します。
 void setPrice(FourPrice price)
          価格の種類を設定します。
 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
 

フィールドの詳細

cross

protected CrossSignal[] cross
価格と移動平均の交差シグナルを保持します。

コンストラクタの詳細

MovingAverageCross

public MovingAverageCross()
メソッドの詳細

getPrice

public FourPrice getPrice()
価格の種類を返します。

戻り値:
価格の種類

setPrice

public void setPrice(FourPrice price)
価格の種類を設定します。

パラメータ:
price - 価格の種類

getPeriod

public int getPeriod()
移動平均の期間を返します。

戻り値:
移動平均の期間

setPeriod

public void setPeriod(int period)
移動平均の期間を設定します。

パラメータ:
period - 移動平均の期間

getType

public MovingAverage getType()
移動平均の種類を返します。

戻り値:
移動平均の種類

setType

public void setType(MovingAverage type)
移動平均の種類を設定します。

パラメータ:
type - 移動平均の種類

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.