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

java.lang.Object
  上位を拡張 jp.sourceforge.orangesignal.trading.strategy.AbstractStrategy
      上位を拡張 jp.sourceforge.orangesignal.trading.strategy.StrategySupport
          上位を拡張 jp.sourceforge.orangesignal.trading.strategy.systems.BollingerBandsShortEntry
すべての実装されたインタフェース:
Strategy

public class BollingerBandsShortEntry
extends StrategySupport


フィールドの概要
protected  Number[] bb
          ボリンジャーバンドの上位バンドデータを保持します。
protected  CrossSignal[] cross
          価格とボリンジャーバンドの上位バンドとの交差シグナルを保持します。
 
コンストラクタの概要
BollingerBandsShortEntry()
           
 
メソッドの概要
 int getNum()
           
 int getPeriod()
          ボリンジャーバンドの期間を返します。
 FourPrice getPrice()
          4本値の種類を返します。
 void init()
          ストラテジーを初期化します。
 StrategyStatus process()
          ストラテジーを処理します。
 void setNum(int num)
           
 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
 

フィールドの詳細

bb

protected Number[] bb
ボリンジャーバンドの上位バンドデータを保持します。


cross

protected CrossSignal[] cross
価格とボリンジャーバンドの上位バンドとの交差シグナルを保持します。

コンストラクタの詳細

BollingerBandsShortEntry

public BollingerBandsShortEntry()
メソッドの詳細

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 - ボリンジャーバンドの期間

getNum

public int getNum()

setNum

public void setNum(int num)

init

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

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

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

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

process

public StrategyStatus process()
インタフェース Strategy の記述:

ストラテジーを処理します。

戻り値:
処理結果。又は null

terminate

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

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

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

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


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