Price · condition block
Big candle
The big candle block looks at a single candle and fires when its body, the distance from open to close, is at least the percentage you set. You can require a green candle, a red one, or either.
How the engine evaluates it
The body is measured from open to close and divided by the open. Wicks are ignored.
green also requires the close to be above the open, red requires it to be below; any only checks the size.
body % = |close − open| / open × 100
fires when body % ≥ X (and the colour matches)
Botscript syntax
In the Lab you pick this block from the Price group and fill in its fields. In the code view the same condition is written like this:
candle green 2%
candle red 3%
candle any 1.5%
Settings
| Setting | Values | Default | Notes |
|---|---|---|---|
| Colour | any, green, red | any | Green: close above open. Red: close below open. |
| Body size | 0 – 100% | 2% | Minimum open-to-close size. |
| Timeframe | the run's candles, or 15m, 30m, 1h, 2h, 4h, 6h, 12h, 1d, 1w | the run's candles | Optional. At least the run's candle size and a whole multiple of it. |
On a higher timeframe
Add a timeframe at the end to read Big candle from bigger candles than the run uses, for example candle green 3% on 1d. The engine builds those candles from the run's own candles (UTC, weeks start on Monday) and evaluates the block only on candles that have closed, so there is no look-ahead. Lengths and lookbacks count the bigger candles.
Big candle is an event on a higher timeframe: it fires once, on the run candle that closes the bigger candle where it happened, and is false on the other run candles.
The timeframe must be at least the run's candle size and a whole multiple of it; otherwise the run stops with an error and is not charged. Multi-timeframe conditions covers the details, including warm-up.
How traders use it
- Capitulation buys:
candle red 4%on 1-hour candles often marks forced selling. - Momentum confirmation:
candle green 2%together with a breakout. - Volatility filters:
not candle any 3%to avoid entering right after a violent candle.
Example bot
bot "Capitulation Catcher"
when candle red 4% and rsi(14) < 30
then buy 50%
when pnl up 6%
then sell 100%
- Buys after a red candle with a body of at least 4% while RSI is oversold.
- Takes profit when the open trade is 6% above its average entry.
Pitfalls
- Body size depends heavily on the candle size: 2% is a big 5-minute candle but a quiet daily one.
- Long wicks are not counted. Use the candle pattern block for hammers and shooting stars.
Big candle: frequently asked questions
Are wicks included in the size?
No. Only the body (open to close) counts, measured as a percentage of the open.
What is a green candle here?
A candle that closed above its open. A candle with close equal to open is neither green nor red.
Can I look for small candles instead?
Yes. Put not in front: not candle any 0.5% is true when the body is under 0.5%.
Which candle does it check?
The candle that just closed. Rules always run on completed candles.
Related blocks
Simulated results are hypothetical. They include only the fee and slippage you set on the bot, not every real-world cost or market condition, and past performance does not guarantee future results. Nothing here is financial advice.