jp.sf.orangesignal.trading.stats
クラス Summary

java.lang.Object
  上位を拡張 jp.sf.orangesignal.trading.stats.WinLossSummary
      上位を拡張 jp.sf.orangesignal.trading.stats.Summary
すべての実装されたインタフェース:
Serializable

public class Summary
extends WinLossSummary

パフォーマンス概要情報を提供します。

作成者:
杉澤 浩二
関連項目:
直列化された形式

フィールドの概要
protected  Date endDate
          終了日時を保持します。
protected  WinLossSummary lossSummary
          負けパフォーマンス概要情報を保持します。
protected  Date startDate
          開始日時を保持します。
protected  Map<String,Stats> statsMap
          有効なシンボルとパフォーマンス統計情報のマップを保持します。
protected  WinLossSummary winSummary
          勝ちパフォーマンス概要情報を保持します。
 
クラス jp.sf.orangesignal.trading.stats.WinLossSummary から継承されたフィールド
count, initialCapital, lossTrades, netProfit, trades, winTrades
 
コンストラクタの概要
Summary(Map<String,Stats> statsMap, Backtester backtester)
          シンボルとパフォーマンス統計情報のマップを指定してこのクラクを構築するコンストラクタです。
 
メソッドの概要
 double getAverageNetProfitByTrades()
          トレード平均損益を返します。
 double getAverageNetProfitByValidCount()
          有効平均損益を返します。
 Date getEndDate()
          終了日時を返します。
 int getLossCount()
          負けアイテム数を返します。
 WinLossSummary getLossSummary()
          負けパフォーマンス概要情報を返します。
 double getPercentLossCount()
          負けアイテム率を返します。
 double getPercentValidCount()
          有効アイテム率を返します。
 double getPercentWinCount()
          勝ちアイテム率を返します。
 Date getStartDate()
          開始日時を返します。
 Map<String,Stats> getStatsMap()
          有効なシンボルとパフォーマンス統計情報のマップを返します。
 int getValidCount()
          有効アイテム数を返します。
 int getWinCount()
          勝ちアイテム数を返します。
 WinLossSummary getWinSummary()
          勝ちパフォーマンス概要情報を返します。
protected  boolean isStatistics(Stats stats)
          指定されたパフォーマンス統計情報が、このクラスの統計情報の対象であるかどうかを返します。
protected  void statistics(Map<String,Stats> statsMap, Backtester backtester)
          指定されたシンボルとパフォーマンス統計情報のマップを解析して、このクラスの統計情報を設定します。
 
クラス jp.sf.orangesignal.trading.stats.WinLossSummary から継承されたメソッド
getAverage, getAverageNetProfit, getCount, getInitialCapital, getLossTrades, getNetProfit, getPercent, getPercentAverageNetProfit, getPercentLossTrades, getPercentNetProfit, getPercentWinTrades, getTradeAverage, getTrades, getWinTrades, statistics
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

statsMap

protected Map<String,Stats> statsMap
有効なシンボルとパフォーマンス統計情報のマップを保持します。


winSummary

protected WinLossSummary winSummary
勝ちパフォーマンス概要情報を保持します。


lossSummary

protected WinLossSummary lossSummary
負けパフォーマンス概要情報を保持します。


startDate

protected Date startDate
開始日時を保持します。


endDate

protected Date endDate
終了日時を保持します。

コンストラクタの詳細

Summary

public Summary(Map<String,Stats> statsMap,
               Backtester backtester)
シンボルとパフォーマンス統計情報のマップを指定してこのクラクを構築するコンストラクタです。

パラメータ:
statsMap - シンボルとパフォーマンス統計情報のマップ
backtester - バックテスト実行オブジェクト
メソッドの詳細

statistics

protected void statistics(Map<String,Stats> statsMap,
                          Backtester backtester)

指定されたシンボルとパフォーマンス統計情報のマップを解析して、このクラスの統計情報を設定します。

パラメータ:
statsMap - シンボルとパフォーマンス統計情報のマップ
backtester - バックテスト実行オブジェクト

isStatistics

protected boolean isStatistics(Stats stats)
クラス WinLossSummary の記述:

指定されたパフォーマンス統計情報が、このクラスの統計情報の対象であるかどうかを返します。

定義:
クラス WinLossSummary 内の isStatistics
パラメータ:
stats - パフォーマンス統計情報
戻り値:
指定されたパフォーマンス統計情報が、統計情報の対象である場合は true それ以外の場合は false

getStatsMap

public Map<String,Stats> getStatsMap()
有効なシンボルとパフォーマンス統計情報のマップを返します。

戻り値:
有効なシンボルとパフォーマンス統計情報のマップ

getWinSummary

public WinLossSummary getWinSummary()
勝ちパフォーマンス概要情報を返します。

戻り値:
勝ちパフォーマンス概要情報

getLossSummary

public WinLossSummary getLossSummary()
負けパフォーマンス概要情報を返します。

戻り値:
負けパフォーマンス概要情報

getValidCount

public int getValidCount()
有効アイテム数を返します。

戻り値:
有効アイテム数

getPercentValidCount

public double getPercentValidCount()
有効アイテム率を返します。

戻り値:
有効アイテム率

getWinCount

public int getWinCount()
勝ちアイテム数を返します。

戻り値:
勝ちアイテム数

getPercentWinCount

public double getPercentWinCount()
勝ちアイテム率を返します。

戻り値:
勝ちアイテム率

getLossCount

public int getLossCount()
負けアイテム数を返します。

戻り値:
負けアイテム数

getPercentLossCount

public double getPercentLossCount()
負けアイテム率を返します。

戻り値:
負けアイテム率

getAverageNetProfitByValidCount

public double getAverageNetProfitByValidCount()
有効平均損益を返します。

戻り値:
有効平均損益

getAverageNetProfitByTrades

public double getAverageNetProfitByTrades()
トレード平均損益を返します。

戻り値:
トレード平均損益

getStartDate

public Date getStartDate()
開始日時を返します。

戻り値:
開始日時。又は null

getEndDate

public Date getEndDate()
終了日時を返します。

戻り値:
終了日時。又は null


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