CandleHelper

StockSharp.Algo.Candles

延伸课取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取

方法

BuyVolAbovePoC
public static decimal BuyVolAbovePoC(VolumeProfileBuilder volumeProfile)
result = CandleHelper.BuyVolAbovePoC(volumeProfile)

投标总量高于VolumeProfileBuilder。

volumeProfile
卷简介.

返回值: 出价总量.

BuyVolBelowPoC
public static decimal BuyVolBelowPoC(VolumeProfileBuilder volumeProfile)
result = CandleHelper.BuyVolBelowPoC(volumeProfile)

投标总量低于VolumeProfileBuilder。

volumeProfile
卷简介.

返回值: 出价总量.

Compress
public static IAsyncEnumerable<CandleMessage> Compress(IAsyncEnumerable<CandleMessage> source, BiggerTimeFrameCandleCompressor compressor, bool includeLastCandle)
result = CandleHelper.Compress(source, compressor, includeLastCandle)

将蜡烛压缩为更大的时间范围蜡烛.

source
更小的时段蜡烛。
compressor
压缩蜡烛的压缩器,从时间范围较小到更大.
includeLastCandle
输出最后的活性蜡烛作为完成 。

返回值: 时间范围更大的蜡烛。

Compress
public static IEnumerable<CandleMessage> Compress(IEnumerable<CandleMessage> source, BiggerTimeFrameCandleCompressor compressor, bool includeLastCandle)
result = CandleHelper.Compress(source, compressor, includeLastCandle)

将蜡烛压缩为更大的时间范围蜡烛.

source
更小的时段蜡烛。
compressor
压缩蜡烛的压缩器,从时间范围较小到更大.
includeLastCandle
输出最后的活性蜡烛作为完成 。

返回值: 时间范围更大的蜡烛。

ConvertToTrades
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
串联到滴答交易。
Delta
public static decimal Delta(VolumeProfileBuilder volumeProfile)
result = CandleHelper.Delta(volumeProfile)

VolumeProfileBuilder)和 VolumeProfileBuilder 的相差.

volumeProfile
卷简介.

返回值: 三角洲 三角洲 三角洲 三角洲 三角洲 三角洲 三角洲

DeltaAbovePoC
public static decimal DeltaAbovePoC(VolumeProfileBuilder volumeProfile)
result = CandleHelper.DeltaAbovePoC(volumeProfile)

三角洲的总数高于%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

volumeProfile
卷简介.

返回值: 三角洲 三角洲 三角洲 三角洲 三角洲 三角洲 三角洲

DeltaBelowPoC
public static decimal DeltaBelowPoC(VolumeProfileBuilder volumeProfile)
result = CandleHelper.DeltaBelowPoC(volumeProfile)

三角洲总和低于VolumeProfileBuilder。

volumeProfile
卷简介.

返回值: 三角洲 三角洲 三角洲 三角洲 三角洲 三角洲 三角洲

FilterSmallerTimeFrames
public static IEnumerable<TimeSpan> FilterSmallerTimeFrames(IEnumerable<TimeSpan> timeFrames, TimeSpan original)
result = CandleHelper.FilterSmallerTimeFrames(timeFrames, original)

过滤时间范围以找到多个更小的时间范围.

timeFrames
所有的时间范围。
original
最初的时间范围。

返回值: 多个较小的时间范围.

GetBody
public static decimal GetBody(ICandleMessage candle)
result = CandleHelper.GetBody(candle)

取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取.

candle
取出尸体的蜡烛

返回值: 烛体相.

GetBottomShadow
public static decimal GetBottomShadow(ICandleMessage candle)
result = CandleHelper.GetBottomShadow(candle)

取取蜡烛下入阴相.

candle
蜡烛,你需要 得到下阴影长度。

返回值: 蜡烛在阴影下行走,如果0,就没有影子了.

GetCandleBounds
public static Range<DateTime> GetCandleBounds(TimeSpan timeFrame, DateTime currentTime, BoardMessage board)
result = CandleHelper.GetCandleBounds(timeFrame, currentTime, board)

获得与交换工作时间相对的蜡烛时间框架.

timeFrame
获取时间范围所需的时间范围 。
currentTime
时间范围内的当前时间 。
board
将提供关于WorkingTime工作时数的董事会的资料。

返回值: 蜡烛时间框架。

GetCandleBounds
public static Range<DateTime> GetCandleBounds(TimeSpan timeFrame, DateTime currentTime, ExchangeBoard board)
result = CandleHelper.GetCandleBounds(timeFrame, currentTime, board)

获得与交换工作时间相对的蜡烛时间框架.

timeFrame
获取时间范围所需的时间范围 。
currentTime
时间范围内的当前时间 。
board
将提供关于WorkingTime工作时数的董事会的资料。

返回值: 蜡烛时间框架。

GetLength
public static decimal GetLength(ICandleMessage candle)
result = CandleHelper.GetLength(candle)

取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取.

candle
需要长出长相的蜡烛.

返回值: 烛长相接.

GetMiddlePrice
public static decimal GetMiddlePrice(ICandleMessage candle, decimal? priceStep)
result = CandleHelper.GetMiddlePrice(candle, priceStep)

取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取.

candle
需要长出长相的蜡烛.
priceStep
PriceStep

返回值: 烛长相接.

GetTimeFrameCount
public static long GetTimeFrameCount(Range<DateTime> range, TimeSpan timeFrame, BoardMessage board)
result = CandleHelper.GetTimeFrameCount(range, timeFrame, board)

以在指定的时间范围内获得时间框架的数量。

range
需要获得时间框架的指定时间范围。
timeFrame
时间范围。
board
BoardMessage.

返回值: 收到的时间范围 。

GetTimeFrameCount
public static long GetTimeFrameCount(Range<DateTime> range, TimeSpan timeFrame, ExchangeBoard board)
result = CandleHelper.GetTimeFrameCount(range, timeFrame, board)

以在指定的时间范围内获得时间框架的数量。

range
需要获得时间框架的指定时间范围。
timeFrame
时间范围。
board
ExchangeBoard.

返回值: 收到的时间范围 。

GetTopShadow
public static decimal GetTopShadow(ICandleMessage candle)
result = CandleHelper.GetTopShadow(candle)

取取取取上烛相影相相.

candle
取出上层阴影长度的蜡烛

返回值: 蜡烛上层的阴影长度,如果0,就没有阴影.

GetValueArea``1
public static VolumeProfileBuilder GetValueArea<TCandle>(IEnumerable<TCandle> candles)
result = CandleHelper.GetValueArea(candles)

来计算蜡烛组的面积.

candles
烛花.

返回值: 区域。

IsSame``1
public static bool IsSame<TCandle>(TCandle candle1, TCandle candle2)
result = CandleHelper.IsSame(candle1, candle2)

确定指定的蜡烛是相同的。

candle1
先说.
candle2
第二义.

返回值: 检查结果。

MaxPriceLevel
public static CandlePriceLevel? MaxPriceLevel(ICandleMessage candle)
result = CandleHelper.MaxPriceLevel(candle)

最高点为"X"PriceLevels+".

candle
ICandleMessage

返回值: 最高点为"X"PriceLevels+".

MinPriceLevel
public static CandlePriceLevel? MinPriceLevel(ICandleMessage candle)
result = CandleHelper.MinPriceLevel(candle)

PriceLevels with minimum TotalVolume.

candle
ICandleMessage

返回值: PriceLevels with minimum TotalVolume.

PoC
public static CandlePriceLevel PoC(VolumeProfileBuilder volumeProfile)
result = CandleHelper.PoC(volumeProfile)

POC(Point Of Control) 返回最大容量的 CandlePriceLevel 。

volumeProfile
卷简介.

返回值: 最大容量的CandlePriceLevel型机车

PriceLevelOfMaxDelta
public static CandlePriceLevel PriceLevelOfMaxDelta(VolumeProfileBuilder volumeProfile)
result = CandleHelper.PriceLevelOfMaxDelta(volumeProfile)

它返回最高VolumeProfileBuilder所通过价格水平。

volumeProfile
卷简介.

返回值: CandlePriceLevel.

PriceLevelOfMinDelta
public static CandlePriceLevel PriceLevelOfMinDelta(VolumeProfileBuilder volumeProfile)
result = CandleHelper.PriceLevelOfMinDelta(volumeProfile)

它返回最低VolumeProfileBuilder通过的价格水平。

volumeProfile
卷简介.

返回值: 价平之会.

SellVolAbovePoC
public static decimal SellVolAbovePoC(VolumeProfileBuilder volumeProfile)
result = CandleHelper.SellVolAbovePoC(volumeProfile)

超过VolumeProfileBuilder的询问总数。

volumeProfile
卷简介.

返回值: 问总相出相.

SellVolBelowPoC
public static decimal SellVolBelowPoC(VolumeProfileBuilder volumeProfile)
result = CandleHelper.SellVolBelowPoC(volumeProfile)

要求的总数低于VolumeProfileBuilder。

volumeProfile
卷简介.

返回值: 问总相出相.

ToCandles
public static IEnumerable<CandleMessage> ToCandles(IEnumerable<ExecutionMessage> executions, MarketDataMessage mdMsg, CandleBuilderProvider candleBuilderProvider)
result = CandleHelper.ToCandles(executions, mdMsg, candleBuilderProvider)

从"滴滴"交易集创造出蜡烛.

executions
滴入数据.
mdMsg
市场数据订阅.
candleBuilderProvider
烛所建站供养.

返回值: 烛花.

ToCandles
public static IAsyncEnumerable<CandleMessage> ToCandles(IAsyncEnumerable<ExecutionMessage> executions, Subscription subscription, CandleBuilderProvider candleBuilderProvider)
result = CandleHelper.ToCandles(executions, subscription, candleBuilderProvider)

从"滴滴"交易集创造出蜡烛.

executions
滴入数据.
subscription
市场数据订阅.
candleBuilderProvider
烛所建站供养.

返回值: 烛花.

ToCandles
public static IAsyncEnumerable<CandleMessage> ToCandles(IAsyncEnumerable<ExecutionMessage> executions, MarketDataMessage mdMsg, CandleBuilderProvider candleBuilderProvider)
result = CandleHelper.ToCandles(executions, mdMsg, candleBuilderProvider)

从"滴滴"交易集创造出蜡烛.

executions
滴入数据.
mdMsg
市场数据订阅.
candleBuilderProvider
烛所建站供养.

返回值: 烛花.

ToCandles
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
烛所建站供养.

返回值: 烛花.

ToCandles
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
烛所建站供养.

返回值: 烛花.

ToCandles
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
烛所建站供养.

返回值: 烛花.

ToCandles
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
烛所建站供养.

返回值: 烛花.

ToCandles
public static IEnumerable<CandleMessage> ToCandles(IEnumerable<ExecutionMessage> executions, Subscription subscription, CandleBuilderProvider candleBuilderProvider)
result = CandleHelper.ToCandles(executions, subscription, candleBuilderProvider)

从"滴滴"交易集创造出蜡烛.

executions
滴入数据.
subscription
市场数据订阅.
candleBuilderProvider
烛所建站供养.

返回值: 烛花.

TotalBuyCount
public static decimal TotalBuyCount(VolumeProfileBuilder volumeProfile)
result = CandleHelper.TotalBuyCount(volumeProfile)

VolumeProfileBuilder的出价总数。

volumeProfile
卷简介.

返回值: 出价总数.

TotalBuyVolume
public static decimal TotalBuyVolume(VolumeProfileBuilder volumeProfile)
result = CandleHelper.TotalBuyVolume(volumeProfile)

VolumeProfileBuilder的出价总量.

volumeProfile
卷简介.

返回值: 出价总量.

TotalSellCount
public static decimal TotalSellCount(VolumeProfileBuilder volumeProfile)
result = CandleHelper.TotalSellCount(volumeProfile)

VolumeProfileBuilder中问询总数 。

volumeProfile
卷简介.

返回值: 问总数.

TotalSellVolume
public static decimal TotalSellVolume(VolumeProfileBuilder volumeProfile)
result = CandleHelper.TotalSellVolume(volumeProfile)

VolumeProfileBuilder中问询的总数。

volumeProfile
卷简介.

返回值: 问总相出相.

ToTickMessage
public static ExecutionMessage ToTickMessage(ValueTuple<Sides?, decimal, decimal, DateTime> tick, SecurityId securityId, DateTime localTime)
result = CandleHelper.ToTickMessage(tick, securityId, localTime)

Convert tick info into ExecutionMessage.

tick
滴答信息 。
securityId
SecurityId
localTime
LocalTime

返回值: ExecutionMessage

ToTrades``1
public static IEnumerable<ExecutionMessage> ToTrades<TCandle>(IEnumerable<TCandle> candles, decimal volumeStep)
result = CandleHelper.ToTrades(candles, volumeStep)

以蜡烛创造出滴滴交易.

candles
烛花.
volumeStep
卷行步.

返回值: 滴答交易。

ToTrades``1
public static IAsyncEnumerable<ExecutionMessage> ToTrades<TCandle>(IAsyncEnumerable<TCandle> candles, decimal volumeStep)
result = CandleHelper.ToTrades(candles, volumeStep)

以蜡烛创造出滴滴交易.

candles
烛花.
volumeStep
卷行步.

返回值: 滴答交易。

TryGetCandlesBuildFromAsync
public static ValueTask<DataType> TryGetCandlesBuildFromAsync(IMessageAdapter adapter, MarketDataMessage subscription, CandleBuilderProvider provider, CancellationToken cancellationToken)
result = CandleHelper.TryGetCandlesBuildFromAsync(adapter, subscription, provider, cancellationToken)

尝试获得合适的市场数据类型,用于蜡烛压缩.

adapter
适从者.
subscription
订阅.
provider
烛所建站供养.
cancellationToken
CancellationToken

返回值: 使用哪一种市场数据类型作为源值。 如果压缩是不可能的 。

Update
public static void Update(VolumeProfileBuilder volumeProfile, ICandleBuilderValueTransform transform)
CandleHelper.Update(volumeProfile, transform)

要以新值更新配置文件 。

volumeProfile
卷简介.
transform
数据源变相.
VolumeAbovePoC
public static decimal VolumeAbovePoC(VolumeProfileBuilder volumeProfile)
result = CandleHelper.VolumeAbovePoC(volumeProfile)

总量高于VolumeProfileBuilder。

volumeProfile
卷简介.

返回值: 总量.

VolumeBelowPoC
public static decimal VolumeBelowPoC(VolumeProfileBuilder volumeProfile)
result = CandleHelper.VolumeBelowPoC(volumeProfile)

总量低于VolumeProfileBuilder。

volumeProfile
卷简介.

返回值: 总量.