Pharos
TAKline

TA.CDLGRAVESTONEDOJI() - 墓碑十字

Gravestone Doji 墓碑十字,开盘价=收盘价=最低价,只有长上影线的十字星。

返回K线形态目录


语法

python
TA.CDLGRAVESTONEDOJI(opens, highs, lows, closes)

返回值

  • -100:识别到墓碑十字(看跌信号)
  • 0:未识别到

形态特征

  1. 开=收=低:开盘价、收盘价、最低价相同
  2. 长上影线:上影线很长
  3. 无下影线:没有下影线

信号解读

价格被大幅推高后完全回落,显示卖方力量强劲,是强烈的看跌信号。


使用示例

python
def gravestone_doji():
    records = exchange.GetRecords()
    opens = [r['Open'] for r in records]
    highs = [r['High'] for r in records]
    lows = [r['Low'] for r in records]
    closes = [r['Close'] for r in records]
    
    pattern = TA.CDLGRAVESTONEDOJI(opens, highs, lows, closes)
    
    if pattern[-1] == -100:
        # 确认在阻力位
        resistance = TA.MAX(highs[-50:-1], 49)[-1]
        if abs(highs[-1] - resistance) / resistance < 0.02:
            exchange.Sell(-1, 1)
            Log("阻力位墓碑十字 - 强烈看跌")

相关形态


返回K线形态目录 | 返回 TA 指标总目录