Doji

定义

public static IEnumerable<CandleResult> GetDoji<TQuote>(this IEnumerable<TQuote> quotes, double maxPriceChangePercent = 0.1) where TQuote : IQuote

描述

Doji(十字星) 是技术分析中最重要的单根K线形态之一,表明市场在某个时间段内出现了犹豫不决和多空平衡的状态。

参数

参数名 类型 描述
maxBodyRatio decimal 最大实体比例
shadowRatioThreshold decimal 影线比例阈值

返回值

返回值 类型 描述
Date DateTime 日期
Price decimal 价格
Candle CandleProperties 蜡烛属性
Candle.Size decimal K线总高度
Candle.Body decimal K线实体高度
Candle.UpperWick decimal 上影线长度
Candle.LowerWick decimal 下影线长度
Candle.BodyPct decimal 实体比例
Candle.UpperWickPct decimal 上影线比例
Candle.LowerWickPct decimal 下影线比例
Candle.IsBullish bool 是否为阳线(看涨)
Candle.IsBearish bool 是否为阴线(看跌)

示例

 ///指标数据
 QuoteHistoryDay(10, (dic) =>
 {
     if (dic.Count > 0)
     {
         foreach (var item in dic.Keys)
         {
             ///获取指标结果
             var resp = dic[item].GetDoji(0.1);
             Console.WriteLine(resp.ToJson());
         }
     }

 });