CandleHelper
キャンドルのエクステンションクラス。
メソッド
public static decimal BuyVolAbovePoC(VolumeProfileBuilder volumeProfile)
result = CandleHelper.BuyVolAbovePoC(volumeProfile)
上記VolumeProfileBuilderの入札総量。
- volumeProfile
- ボリュームプロファイル。
戻り値: 入札の総量。
public static decimal BuyVolBelowPoC(VolumeProfileBuilder volumeProfile)
result = CandleHelper.BuyVolBelowPoC(volumeProfile)
入札の総量はVolumeProfileBuilder@に下回りました。
- volumeProfile
- ボリュームプロファイル。
戻り値: 入札の総量。
public static IAsyncEnumerable<CandleMessage> Compress(IAsyncEnumerable<CandleMessage> source, BiggerTimeFrameCandleCompressor compressor, bool includeLastCandle)
result = CandleHelper.Compress(source, compressor, includeLastCandle)
キャンドルをより大きな時間枠のキャンドルに圧縮します。
- source
- より小さな時間枠のキャンドル。
- compressor
- より小さな時間枠からより大きいろうそくのコンプレッサー。
- includeLastCandle
- 出力は終えられた活動的な蝋燭をように終えました。
戻り値: より大きな時間枠のキャンドル。
public static IEnumerable<CandleMessage> Compress(IEnumerable<CandleMessage> source, BiggerTimeFrameCandleCompressor compressor, bool includeLastCandle)
result = CandleHelper.Compress(source, compressor, includeLastCandle)
キャンドルをより大きな時間枠のキャンドルに圧縮します。
- source
- より小さな時間枠のキャンドル。
- compressor
- より小さな時間枠からより大きいろうそくのコンプレッサー。
- includeLastCandle
- 出力は終えられた活動的な蝋燭をように終えました。
戻り値: より大きな時間枠のキャンドル。
public static void ConvertToTrades(ICandleMessage candleMsg, decimal volumeStep, int decimals, ValueTuple<Sides?, decimal, decimal, DateTime>[] ticks)
CandleHelper.ConvertToTrades(candleMsg, volumeStep, decimals, ticks)
キャンドルからティックトレードを作成する。
- candleMsg
- キャンドル。
- volumeStep
- ボリュームステップ。
- decimals
- ボリュームの小数の場所の数。
- ticks
- 取引をティックする配列。
public static decimal Delta(VolumeProfileBuilder volumeProfile)
result = CandleHelper.Delta(volumeProfile)
VolumeProfileBuilder とVolumeProfileBuilder の違い。
- volumeProfile
- ボリュームプロファイル。
戻り値: デルタ。
public static decimal DeltaAbovePoC(VolumeProfileBuilder volumeProfile)
result = CandleHelper.DeltaAbovePoC(volumeProfile)
上記VolumeProfileBuilderの合計デルタ。
- volumeProfile
- ボリュームプロファイル。
戻り値: デルタ。
public static decimal DeltaBelowPoC(VolumeProfileBuilder volumeProfile)
result = CandleHelper.DeltaBelowPoC(volumeProfile)
VolumeProfileBuilder の下のデルタの合計。
- volumeProfile
- ボリュームプロファイル。
戻り値: デルタ。
public static IEnumerable<TimeSpan> FilterSmallerTimeFrames(IEnumerable<TimeSpan> timeFrames, TimeSpan original)
result = CandleHelper.FilterSmallerTimeFrames(timeFrames, original)
複数の小さな時間枠を見つけるために時間枠をフィルタリングします。
- timeFrames
- タイムフレームを全て使用
- original
- オリジナルタイムフレーム。
戻り値: 複数の小さな時間枠。
public static decimal GetBody(ICandleMessage candle)
result = CandleHelper.GetBody(candle)
キャンドルボディを手に入れる。
- candle
- 体を手に入れる必要があるキャンドル。
戻り値: キャンドルボディ。
public static decimal GetBottomShadow(ICandleMessage candle)
result = CandleHelper.GetBottomShadow(candle)
キャンドルを下すシャドウの長さを得る。
- candle
- ダウンシャドウの長さを手に入れる必要があるキャンドル。
戻り値: ロウソクはシャドウの長さを下げます。 0なら影はありません。
public static Range<DateTime> GetCandleBounds(TimeSpan timeFrame, DateTime currentTime, BoardMessage board)
result = CandleHelper.GetCandleBounds(timeFrame, currentTime, board)
交換作業時間に比較的キャンドルタイムフレームを取得するには.
- timeFrame
- 時間範囲を得る必要がある時間枠。
- currentTime
- 時間枠の範囲内の現在の時間。
- board
- WorkingTime@ 作業時間がかかるボードに関する情報が取り扱われます。
戻り値: キャンドルタイムフレーム。
public static Range<DateTime> GetCandleBounds(TimeSpan timeFrame, DateTime currentTime, ExchangeBoard board)
result = CandleHelper.GetCandleBounds(timeFrame, currentTime, board)
交換作業時間に比較的キャンドルタイムフレームを取得するには.
- timeFrame
- 時間範囲を得る必要がある時間枠。
- currentTime
- 時間枠の範囲内の現在の時間。
- board
- WorkingTime@ 作業時間がかかるボードに関する情報が取り扱われます。
戻り値: キャンドルタイムフレーム。
public static decimal GetLength(ICandleMessage candle)
result = CandleHelper.GetLength(candle)
キャンドルの長さを取得する。
- candle
- 長い長さを得る必要があるキャンドル。
戻り値: キャンドルの長さ。
public static decimal GetMiddlePrice(ICandleMessage candle, decimal? priceStep)
result = CandleHelper.GetMiddlePrice(candle, priceStep)
キャンドルミドル価格を取得するには.
- candle
- 長い長さを得る必要があるキャンドル。
- priceStep
- 担当: 佐藤 宏
戻り値: キャンドルの長さ。
public static long GetTimeFrameCount(Range<DateTime> range, TimeSpan timeFrame, BoardMessage board)
result = CandleHelper.GetTimeFrameCount(range, timeFrame, board)
指定した時間範囲内で時間枠の数を取得する。
- range
- 指定した時間範囲で、時間枠の数を取得する必要があります。
- timeFrame
- 時間枠のサイズ。
- board
- 代表取締役社長 佐藤 浩
戻り値: 受信した時間枠の数。
public static long GetTimeFrameCount(Range<DateTime> range, TimeSpan timeFrame, ExchangeBoard board)
result = CandleHelper.GetTimeFrameCount(range, timeFrame, board)
指定した時間範囲内で時間枠の数を取得する。
- range
- 指定した時間範囲で、時間枠の数を取得する必要があります。
- timeFrame
- 時間枠のサイズ。
- board
- 代表取締役社長 佐藤 浩
戻り値: 受信した時間枠の数。
public static decimal GetTopShadow(ICandleMessage candle)
result = CandleHelper.GetTopShadow(candle)
キャンドルの上の影の長さを取得するには.
- candle
- 上下のシャドウの長さを手に入れる必要があるキャンドル。
戻り値: ロウソクの上の影の長さ。0なら影はありません。
public static VolumeProfileBuilder GetValueArea<TCandle>(IEnumerable<TCandle> candles)
result = CandleHelper.GetValueArea(candles)
キャンドルグループのための領域を計算する。
- candles
- キャンドル。
戻り値: エリア。
public static bool IsSame<TCandle>(TCandle candle1, TCandle candle2)
result = CandleHelper.IsSame(candle1, candle2)
指定されたキャンドルを同じように決定します。
- candle1
- まずは。
- candle2
- 第二回。
戻り値: 結果をチェックする。
public static CandlePriceLevel? MaxPriceLevel(ICandleMessage candle)
result = CandleHelper.MaxPriceLevel(candle)
代表取締役社長 佐藤 浩一
- candle
- 担当: 佐藤 宏
戻り値: 代表取締役社長 佐藤 浩一
public static CandlePriceLevel? MinPriceLevel(ICandleMessage candle)
result = CandleHelper.MinPriceLevel(candle)
PriceLevels with minimum TotalVolume.
- candle
- 担当: 佐藤 宏
戻り値: PriceLevels with minimum TotalVolume.
public static CandlePriceLevel PoC(VolumeProfileBuilder volumeProfile)
result = CandleHelper.PoC(volumeProfile)
POC(制御のポイント)は、最大ボリュームを持つCandlePriceLevel@を返します。
- volumeProfile
- ボリュームプロファイル。
戻り値: CandlePriceLevel は、最大ボリュームのCandlePriceLevelです。
public static CandlePriceLevel PriceLevelOfMaxDelta(VolumeProfileBuilder volumeProfile)
result = CandleHelper.PriceLevelOfMaxDelta(volumeProfile)
値がVolumeProfileBuilderに渡されると、値が返されます。
- volumeProfile
- ボリュームプロファイル。
戻り値: 代表取締役社長 佐藤 浩
public static CandlePriceLevel PriceLevelOfMinDelta(VolumeProfileBuilder volumeProfile)
result = CandleHelper.PriceLevelOfMinDelta(volumeProfile)
最低VolumeProfileBuilderに渡される価格レベルを戻します。
- volumeProfile
- ボリュームプロファイル。
戻り値: 価格レベル。
public static decimal SellVolAbovePoC(VolumeProfileBuilder volumeProfile)
result = CandleHelper.SellVolAbovePoC(volumeProfile)
上記VolumeProfileBuilderの合計の質問の総量。
- volumeProfile
- ボリュームプロファイル。
戻り値: 依頼の総量。
public static decimal SellVolBelowPoC(VolumeProfileBuilder volumeProfile)
result = CandleHelper.SellVolBelowPoC(volumeProfile)
下記のお問い合わせの総量VolumeProfileBuilder
- volumeProfile
- ボリュームプロファイル。
戻り値: 依頼の総量。
public static IEnumerable<CandleMessage> ToCandles(IEnumerable<ExecutionMessage> executions, MarketDataMessage mdMsg, CandleBuilderProvider candleBuilderProvider)
result = CandleHelper.ToCandles(executions, mdMsg, candleBuilderProvider)
ティックトレードコレクションからキャンドルを作成する。
- executions
- ティックデータ。
- mdMsg
- 市場データサブスクリプション。
- candleBuilderProvider
- キャンドルビルダープロバイダ。
戻り値: キャンドル。
public static IAsyncEnumerable<CandleMessage> ToCandles(IAsyncEnumerable<ExecutionMessage> executions, Subscription subscription, CandleBuilderProvider candleBuilderProvider)
result = CandleHelper.ToCandles(executions, subscription, candleBuilderProvider)
ティックトレードコレクションからキャンドルを作成する。
- executions
- ティックデータ。
- subscription
- 市場データサブスクリプション。
- candleBuilderProvider
- キャンドルビルダープロバイダ。
戻り値: キャンドル。
public static IAsyncEnumerable<CandleMessage> ToCandles(IAsyncEnumerable<ExecutionMessage> executions, MarketDataMessage mdMsg, CandleBuilderProvider candleBuilderProvider)
result = CandleHelper.ToCandles(executions, mdMsg, candleBuilderProvider)
ティックトレードコレクションからキャンドルを作成する。
- executions
- ティックデータ。
- mdMsg
- 市場データサブスクリプション。
- candleBuilderProvider
- キャンドルビルダープロバイダ。
戻り値: キャンドル。
public static IEnumerable<CandleMessage> ToCandles(IEnumerable<QuoteChangeMessage> depths, MarketDataMessage mdMsg, Level1Fields type, CandleBuilderProvider candleBuilderProvider)
result = CandleHelper.ToCandles(depths, mdMsg, type, candleBuilderProvider)
オーダーブックコレクションからキャンドルを作成する。
- depths
- 市場深さ。
- mdMsg
- 市場データサブスクリプション。
- type
- キャンドル深さベースのデータの種類。
- candleBuilderProvider
- キャンドルビルダープロバイダ。
戻り値: キャンドル。
public static IAsyncEnumerable<CandleMessage> ToCandles(IAsyncEnumerable<QuoteChangeMessage> depths, Subscription subscription, Level1Fields type, CandleBuilderProvider candleBuilderProvider)
result = CandleHelper.ToCandles(depths, subscription, type, candleBuilderProvider)
オーダーブックコレクションからキャンドルを作成する。
- depths
- 市場深さ。
- subscription
- 市場データサブスクリプション。
- type
- キャンドル深さベースのデータの種類。
- candleBuilderProvider
- キャンドルビルダープロバイダ。
戻り値: キャンドル。
public static IEnumerable<CandleMessage> ToCandles(IEnumerable<QuoteChangeMessage> depths, Subscription subscription, Level1Fields type, CandleBuilderProvider candleBuilderProvider)
result = CandleHelper.ToCandles(depths, subscription, type, candleBuilderProvider)
オーダーブックコレクションからキャンドルを作成する。
- depths
- 市場深さ。
- subscription
- 市場データサブスクリプション。
- type
- キャンドル深さベースのデータの種類。
- candleBuilderProvider
- キャンドルビルダープロバイダ。
戻り値: キャンドル。
public static IAsyncEnumerable<CandleMessage> ToCandles(IAsyncEnumerable<QuoteChangeMessage> depths, MarketDataMessage mdMsg, Level1Fields type, CandleBuilderProvider candleBuilderProvider)
result = CandleHelper.ToCandles(depths, mdMsg, type, candleBuilderProvider)
オーダーブックコレクションからキャンドルを作成する。
- depths
- 市場深さ。
- mdMsg
- 市場データサブスクリプション。
- type
- キャンドル深さベースのデータの種類。
- candleBuilderProvider
- キャンドルビルダープロバイダ。
戻り値: キャンドル。
public static IEnumerable<CandleMessage> ToCandles(IEnumerable<ExecutionMessage> executions, Subscription subscription, CandleBuilderProvider candleBuilderProvider)
result = CandleHelper.ToCandles(executions, subscription, candleBuilderProvider)
ティックトレードコレクションからキャンドルを作成する。
- executions
- ティックデータ。
- subscription
- 市場データサブスクリプション。
- candleBuilderProvider
- キャンドルビルダープロバイダ。
戻り値: キャンドル。
public static decimal TotalBuyCount(VolumeProfileBuilder volumeProfile)
result = CandleHelper.TotalBuyCount(volumeProfile)
入札総数VolumeProfileBuilder@
- volumeProfile
- ボリュームプロファイル。
戻り値: 入札総数。
public static decimal TotalBuyVolume(VolumeProfileBuilder volumeProfile)
result = CandleHelper.TotalBuyVolume(volumeProfile)
VolumeProfileBuilder の入札総量。
- volumeProfile
- ボリュームプロファイル。
戻り値: 入札の総量。
public static decimal TotalSellCount(VolumeProfileBuilder volumeProfile)
result = CandleHelper.TotalSellCount(volumeProfile)
担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当:
- volumeProfile
- ボリュームプロファイル。
戻り値: リクエストの合計数。
public static decimal TotalSellVolume(VolumeProfileBuilder volumeProfile)
result = CandleHelper.TotalSellVolume(volumeProfile)
担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当: 担当:
- volumeProfile
- ボリュームプロファイル。
戻り値: 依頼の総量。
public static ExecutionMessage ToTickMessage(ValueTuple<Sides?, decimal, decimal, DateTime> tick, SecurityId securityId, DateTime localTime)
result = CandleHelper.ToTickMessage(tick, securityId, localTime)
ティック情報をExecutionMessageに変える
- tick
- ティック情報
- securityId
- 担当: 佐藤 宏
- localTime
- 担当: 佐藤 宏
戻り値: 担当: 佐藤 宏
public static IEnumerable<ExecutionMessage> ToTrades<TCandle>(IEnumerable<TCandle> candles, decimal volumeStep)
result = CandleHelper.ToTrades(candles, volumeStep)
キャンドルからティックトレードを作成する。
- candles
- キャンドル。
- volumeStep
- ボリュームステップ。
戻り値: ティック取引.
public static IAsyncEnumerable<ExecutionMessage> ToTrades<TCandle>(IAsyncEnumerable<TCandle> candles, decimal volumeStep)
result = CandleHelper.ToTrades(candles, volumeStep)
キャンドルからティックトレードを作成する。
- candles
- キャンドル。
- volumeStep
- ボリュームステップ。
戻り値: ティック取引.
public static ValueTask<DataType> TryGetCandlesBuildFromAsync(IMessageAdapter adapter, MarketDataMessage subscription, CandleBuilderProvider provider, CancellationToken cancellationToken)
result = CandleHelper.TryGetCandlesBuildFromAsync(adapter, subscription, provider, cancellationToken)
キャンドル圧縮に適した市場データ型を入手してください。
- adapter
- アダプター。
- subscription
- サブスクリプション。
- provider
- キャンドルビルダープロバイダ。
- cancellationToken
- 担当: 佐藤 宏
戻り値: ソース値として使用される市場データ型。圧縮が不可能な場合。
public static void Update(VolumeProfileBuilder volumeProfile, ICandleBuilderValueTransform transform)
CandleHelper.Update(volumeProfile, transform)
プロファイルを新しい値で更新するには。
- volumeProfile
- ボリュームプロファイル。
- transform
- データソース変換。
public static decimal VolumeAbovePoC(VolumeProfileBuilder volumeProfile)
result = CandleHelper.VolumeAbovePoC(volumeProfile)
上記VolumeProfileBuilderの合計ボリューム
- volumeProfile
- ボリュームプロファイル。
戻り値: ボリューム合計。
public static decimal VolumeBelowPoC(VolumeProfileBuilder volumeProfile)
result = CandleHelper.VolumeBelowPoC(volumeProfile)
下記の総数量VolumeProfileBuilder@
- volumeProfile
- ボリュームプロファイル。
戻り値: ボリューム合計。