|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjp.sf.orangesignal.trading.stats.report.EquityCurveReporter
public class EquityCurveReporter
パフォーマンス情報から資産曲線グラフとドローダウングラフを出力する Reporter
の実装クラスを提供します。
入れ子のクラスの概要 | |
---|---|
static class |
EquityCurveReporter.DomainAxisType
グラフの横軸の種類を表す列挙型を提供します。 |
static class |
EquityCurveReporter.ImageType
出力画像形式を表す列挙型を提供します。 |
フィールドの概要 | |
---|---|
protected String |
dir
出力ディレクトリを保持します。 |
コンストラクタの概要 | |
---|---|
EquityCurveReporter()
|
メソッドの概要 | |
---|---|
protected XYDataset |
getAbsoluteDrawdownDataset(Stats stats)
|
protected XYDataset |
getEquityDataset(Stats stats)
|
protected XYDataset |
getPercentDrawdownDataset(Stats stats)
|
void |
report(Stats stats)
パフォーマンス統計情報を出力します。 |
void |
report(Summary summary,
Backtester backtester)
パフォーマンス概要情報を出力します。 |
void |
setDir(String dir)
出力ディレクトリを設定します。 |
void |
setDomainAxisType(EquityCurveReporter.DomainAxisType domainAxisType)
グラフの横軸の種類を設定します。 |
void |
setFilename(String filename)
出力ファイル名のパターンを設定します。 |
void |
setHeight(int height)
出力する画像の高さ(ピクセル)を設定します。 |
void |
setImageType(EquityCurveReporter.ImageType imageType)
出力画像形式を設定します。 |
void |
setJpegQuality(float jpegQuality)
JPEG 画像形式の品質を設定します。 |
void |
setTickLabelFont(Font tickLabelFont)
目盛り用フォントを設定します。 |
void |
setVisibleAbsoluteDrawdown(boolean visibleAbsoluteDrawdown)
ドローダウン(価格)グラフを出力するかどうかを設定します。 |
void |
setVisiblePercentDrawdown(boolean visiblePercentDrawdown)
ドローダウン(百分率)グラフを出力するかどうかを設定します。 |
void |
setWidth(int width)
出力する画像の幅(ピクセル)を設定します。 |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
protected String dir
コンストラクタの詳細 |
---|
public EquityCurveReporter()
メソッドの詳細 |
---|
public void setDomainAxisType(EquityCurveReporter.DomainAxisType domainAxisType)
グラフの横軸の種類を設定します。
デフォルトは EquityCurveReporter.DomainAxisType.DATE
です。
domainAxisType
- グラフの横軸の種類public void setTickLabelFont(Font tickLabelFont)
目盛り用フォントを設定します。
デフォルトは、ポイント 10 の Verdana フォントです。
tickLabelFont
- 目盛り用フォントpublic void setVisibleAbsoluteDrawdown(boolean visibleAbsoluteDrawdown)
ドローダウン(価格)グラフを出力するかどうかを設定します。
デフォルトは true
(出力する)です。
visibleAbsoluteDrawdown
- ドローダウン(価格)グラフを出力するかどうかpublic void setVisiblePercentDrawdown(boolean visiblePercentDrawdown)
ドローダウン(百分率)グラフを出力するかどうかを設定します。
デフォルトは true
(出力する)です。
visiblePercentDrawdown
- ドローダウン(百分率)グラフを出力するかどうかpublic void setDir(String dir)
dir
- 出力ディレクトリpublic void setFilename(String filename)
filename
- 出力ファイル名のパターンpublic void setImageType(EquityCurveReporter.ImageType imageType)
imageType
- 出力画像形式public void setJpegQuality(float jpegQuality)
jpegQuality
- JPEG 画像形式の品質public void setWidth(int width)
width
- 出力する画像の幅(ピクセル)public void setHeight(int height)
height
- 出力する画像の高さ(ピクセル)public void report(Summary summary, Backtester backtester) throws IOException
Reporter
の記述:
Reporter
内の report
summary
- パフォーマンス概要情報backtester
- バックテスト実行オブジェクト
IOException
- 入出力操作で例外が発生した場合public void report(Stats stats) throws IOException
Reporter
の記述:
Reporter
内の report
stats
- パフォーマンス統計情報
IOException
- 入出力操作で例外が発生した場合protected XYDataset getEquityDataset(Stats stats)
protected XYDataset getAbsoluteDrawdownDataset(Stats stats)
protected XYDataset getPercentDrawdownDataset(Stats stats)
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |