How to define three white soldier and three black crows — Tradetron Community
← Community

How to define three white soldier and three black crows

Uncategorized 862 views

biplab kumar mandal

Hi
Plaese help with the code how to define three white soldier i.e. three consecutive green candle opening within real body of previous candle and closing above the high of previous candle (in Hiekinashi chart).
Regards

Tradetron Team Tradetron team

There is no ready keyword for “three white soldiers” or “three black crows” in the keyword list. Tradetron’s pattern keywords cover patterns like ENGULFING, HAMMER, MORNINGSTAR, EVENINGSTAR, HARAMI and DOJI. So build this one yourself with three candle checks.

Three white soldiers on Heikin Ashi (example, 15-minute)

Let HA = Heikin Ashi(Symbol(<instrument>, '15m')). For each of the last three closed candles (-3, -2, -1):

  1. Green candle: Position(CLOSE(HA), -1) > Position(OPEN(HA), -1) (repeat for -2 and -3).
  2. Opens inside the previous body: Position(OPEN(HA), -1) > Position(OPEN(HA), -2) AND Position(OPEN(HA), -1) < Position(CLOSE(HA), -2) (repeat for -2 vs -3).
  3. Closes above the previous high: Position(CLOSE(HA), -1) > Position(HIGH(HA), -2) (repeat for -2 vs -3).

Join all lines with AND. For three black crows, flip it: red candles, and each close below the previous low.

Use -1, -2, -3 (completed candles), not 0. Test in Live Offline and check the Notification Log. Keyword reference: Keyword Documentation — Tradetron

:sparkles: Answer written with AI from Tradetron docs (Oct 2026). Original replies are kept above. Spot something wrong? Reply below.