ReportSource
外部コードが情報を追加し、集計をサポートできるようにするデータソースをレポートします。
実装: IReportSource
コンストラクター
プロパティ
public TimeSpan AggregationInterval { get; set; }
value = reportSource.AggregationInterval
reportSource.AggregationInterval = value
集計の間隔。同じ間隔内の注文/取引は一緒にグループ化されます。デフォルトは1時間です。ゼロに設定して、タイムベースのグループ化を無効にします(しきい値が上回るときだけカウントによって集計されます)。
public decimal? Commission { get; set; }
value = reportSource.Commission
reportSource.Commission = value
トータルコミッション
public TimeSpan? Latency { get; set; }
value = reportSource.Latency
reportSource.Latency = value
トータルレイテンシ。
public int MaxOrdersBeforeAggregation { get; set; }
value = reportSource.MaxOrdersBeforeAggregation
reportSource.MaxOrdersBeforeAggregation = value
自動集計がトリガーされる前に、注文の最大数。 デフォルトは10000です。 自動集計を無効にするには0に設定します。
public int MaxTradesBeforeAggregation { get; set; }
value = reportSource.MaxTradesBeforeAggregation
reportSource.MaxTradesBeforeAggregation = value
自動集計がトリガーされる前に取引の最大数。デフォルトは10000です。自動集計を無効にするには0に設定します。
public IEnumerable<ReportTrade> OwnTrades { get; }
value = reportSource.OwnTrades
独自の取引コレクション。
public IEnumerable<ValueTuple<string, object>> Parameters { get; }
value = reportSource.Parameters
計算された変数。
public decimal Position { get; set; }
value = reportSource.Position
reportSource.Position = value
現在の位置値。
public IEnumerable<ReportPosition> Positions { get; }
value = reportSource.Positions
位置のリスト。
public decimal? Slippage { get; set; }
value = reportSource.Slippage
reportSource.Slippage = value
トータルスリップページ。
public IEnumerable<ValueTuple<string, object>> StatisticParameters { get; }
value = reportSource.StatisticParameters
名前値のペアとして統計パラメータ。
public TimeSpan TotalWorkingTime { get; set; }
value = reportSource.TotalWorkingTime
reportSource.TotalWorkingTime = value
戦略運用の総時間
メソッド
public ReportSource AddOrder(long? id, long transactionId, SecurityId securityId, Sides side, DateTime time, decimal price, OrderStates? state, decimal? balance, decimal? volume, OrderTypes? type)
result = reportSource.AddOrder(id, transactionId, securityId, side, time, price, state, balance, volume, type)
個々のパラメータで注文を追加します。
public ReportSource AddOrder(ReportOrder order)
result = reportSource.AddOrder(order)
注文を追加します。
- order
- 注文を追加してください。
戻り値: チェーンのインスタンス。
public ReportSource AddOrders(IEnumerable<ReportOrder> orders)
result = reportSource.AddOrders(orders)
複数の注文を追加します。
- orders
- 注文を追加.
戻り値: チェーンのインスタンス。
public ReportSource AddParameter(string name, object value)
result = reportSource.AddParameter(name, value)
パラメータを追加します。
- name
- 変数名。
- value
- パラメータ値。
戻り値: チェーンのインスタンス。
public ReportSource AddParameters(IEnumerable<ValueTuple<string, object>> parameters)
result = reportSource.AddParameters(parameters)
複数のパラメーターを追加します。
- parameters
- パラメータを追加。
戻り値: チェーンのインスタンス。
public ReportSource AddPosition(ReportPosition position)
result = reportSource.AddPosition(position)
ポジションの往復を追加します。
- position
- ポジションの往復を追加.
戻り値: チェーンのインスタンス。
public ReportSource AddPositions(IEnumerable<ReportPosition> positions)
result = reportSource.AddPositions(positions)
複数のポジションの往復を追加します。
- positions
- ポジションを追加
戻り値: チェーンのインスタンス。
public ReportSource AddStatisticParameter(string name, object value)
result = reportSource.AddStatisticParameter(name, value)
統計パラメータを追加します。
- name
- 変数名。
- value
- パラメータ値。
戻り値: チェーンのインスタンス。
public ReportSource AddStatisticParameters(IEnumerable<ValueTuple<string, object>> parameters)
result = reportSource.AddStatisticParameters(parameters)
複数の統計パラメータを追加します。
- parameters
- パラメータを追加。
戻り値: チェーンのインスタンス。
public ReportSource AddTrade(long? tradeId, long orderTransactionId, SecurityId securityId, DateTime time, decimal tradePrice, decimal orderPrice, decimal volume, Sides side, long? orderId, decimal? slippage, decimal? pnl, decimal? position)
result = reportSource.AddTrade(tradeId, orderTransactionId, securityId, time, tradePrice, orderPrice, volume, side, orderId, slippage, pnl, position)
個々のパラメータで取引を追加します。
public ReportSource AddTrade(ReportTrade trade)
result = reportSource.AddTrade(trade)
取引を追加します。.
- trade
- 取引を追加.
戻り値: チェーンのインスタンス。
public ReportSource AddTrades(IEnumerable<ReportTrade> trades)
result = reportSource.AddTrades(trades)
複数の取引を追加します。.
- trades
- 取引を追加.
戻り値: チェーンのインスタンス。
public ReportSource AggregateOrders(TimeSpan interval)
result = reportSource.AggregateOrders(interval)
手動で注文集計をトリガーします。
- interval
- 集合時間間隔。 ゼロを使用してグループ化しません。
戻り値: チェーンのインスタンス。
public ReportSource AggregateTrades(TimeSpan interval)
result = reportSource.AggregateTrades(interval)
手動で取引集計をトリガーします。
- interval
- 集合時間間隔。 ゼロを使用してグループ化しません。
戻り値: チェーンのインスタンス。
public ReportSource ClearOrders()
result = reportSource.ClearOrders()
注文を全てクリアします。
戻り値: チェーンのインスタンス。
public ReportSource ClearParameters()
result = reportSource.ClearParameters()
すべてのパラメーターをクリアします。
戻り値: チェーンのインスタンス。
public ReportSource ClearPositions()
result = reportSource.ClearPositions()
すべてのポジションをクリアします。
戻り値: チェーンのインスタンス。
public ReportSource ClearStatisticParameters()
result = reportSource.ClearStatisticParameters()
すべての統計パラメータをクリアします。
戻り値: チェーンのインスタンス。
public ReportSource ClearTrades()
result = reportSource.ClearTrades()
すべての取引をクリアします。
戻り値: チェーンのインスタンス。