New

11 tools. $557.98 if bought one by one. 5 new Premium desks inside.$557.98 one by one

$97 once$97See all 11See it
Pine Pro Library · Pine v6 · v0.6.1

Engulfing Volume Desk engulfing candle strategy for TradingView

It finds the candle that swallows the last one, grades its volume, and turns it into one frozen plan: entry, stop and a 2R target.

PanelFri Mar 20 · 10:00
STATE
Exit observed; entries closed
RVOL
Current · Low / 0.78
PLAN
Next: an engulfing with the trend · stop past both candles · 2R
One setup at a timeEngulfing Volume Desk 0.6.1

Window 1 · the first breakout fill

Simulated 4-hour gold candles, not a real market, run through Engulfing Volume Desk's own rules: the same code reproduces the script's TradingView trades on real gold, one for one. Quiet candles run as a time-lapse; the ones that matter slow down. Window 1: it starts at the first simulated setup whose breakout stop order fills, so every step shows; Another window: the chart plays on from where the last window stopped, whatever the setups do (after the twelfth, window 1 again). R is before costs.

Read as text
Times are candle opens on the simulated New York clock. The words are the script's own; R runs from the fill, before costs.
TimeEventPrices
Thu Mar 12 · 14:00Earlier: Long · Low volume · Stop +0.0REntry 4,379.05 · stop 4,321.15 · target 4,494.85
Mon Mar 16 · 18:00Earlier: Long · Medium volume · Stop −1.0REntry 4,343.30 · stop 4,313.73 · target 4,402.44
Tue Mar 17 · 06:00Window opensClose 4,317.55 · EMA 200 4,266.13
Tue Mar 17 · 10:00Long · Medium volume (RVOL 1.3): the engulfing closes, a stop order at 4,352.69Entry 4,352.69 · stop 4,308.41 · target 4,441.25
Tue Mar 17 · 14:00FilledFill 4,352.69
Tue Mar 17 · 18:00Bullish engulfing skipped: a setup is openClose 4,367.51
Wed Mar 18 · 02:00Bullish engulfing skipped: a setup is openClose 4,395.24
Wed Mar 18 · 06:00Long closed · Target +2.0RExit 4,441.25
Wed Mar 18 · 22:00Bearish engulfing skipped: against the trendClose 4,372.67
Thu Mar 19 · 02:00Long · Medium volume (RVOL 1.03): the engulfing closes, a stop order at 4,397.19Entry 4,397.19 · stop 4,366.65 · target 4,458.27
Thu Mar 19 · 06:00FilledFill 4,397.19
Thu Mar 19 · 10:00Bullish engulfing skipped: a setup is openClose 4,404.32
Thu Mar 19 · 14:00Bearish engulfing skipped: against the trendClose 4,389.52
Thu Mar 19 · 22:00Long closed · Stop −1.0RExit 4,366.65
Fri Mar 20 · 06:00Bearish engulfing skipped: against the trendClose 4,349.12

A Pine v6 strategy, its full source in Pine Pro Library. It draws the plan; your Strategy Tester measures it.

Body over body. Trend first.

At every close the desk reads four checks, and an engulfing becomes a plan only when all four hold.

TAKEN

All four checks hold: a long plan at 4,397.19, frozen.

  • Check 1, opposite colour: true, red, then green
  • Check 2, covers the last body: true, covers both ends
  • Check 3, a bigger body: true, 22.01 vs 21.44
  • Check 4, with the trend: true, above a rising EMA

The same simulated 4-hour gold. This film is from the replay's first setup on, the first simulated window where the desk skips an engulfing against the trend and then takes one with it. Dashed lines mark the last candle's body.

Check 1

Opposite colour

Red, then green for a long; green, then red for a short. A doji never counts.

Check 2

Covers the body

The new body reaches both ends of the last one.

Check 3

Bigger body

Strictly bigger: an equal body is not an engulfing.

Check 4

With the trend

Longs above a rising EMA 200, shorts below a falling one, on closed candles.

Volume labels. It never decides.

Drag the close and the volume: the checks make the plan, and the volume only names it Low, Medium or High.

Long · Medium volume Aggressive stop armed: stop order at 4,326.91, stop 4,316.89, target 4,346.95.
4,325.50
1.20

A fixed simulated example, the same candles each time. The verdict is the script's own checks, run on what you set.

Low

Below 1.0

Less volume than the average of the last twenty candles.

Medium

1.0 to 1.5

Up to half as much again as that average.

High

1.5 and up

At least half as much again as the average.

A label

Not a chance

In our gold test it described the candle; it did not tell good setups from bad.

Target. Stop. Or no fill.

The plan is frozen at the close, and the bracket ends it at the target or the stop; an order that never fills is cancelled.

TARGET +2.0R

Target +2.0R: the bracket closed it at 4,441.25.

  • Step 1, the engulfing: true, bullish, Medium volume
  • Step 2, the order: true, stop order at 4,352.69
  • Step 3, the fill: true, filled 4,352.69
  • Step 4, the exit: true, Target +2.0R

Four setups from the same simulated gold: from the replay's first setup on, the first simulated setup to end at its target, the first at its stop, the first whose stop was touched before the entry, and the first that expired. R runs from the fill to the exit, before costs.

Entry

One tick past

A stop order one tick beyond the last candle; the next open when the close is already through.

Stop

Both candles

One tick beyond the lower low of the two candles (the higher high for a short).

Target

Two risks away

Twice the planned risk from the planned entry, frozen with it.

No fill

Five candles

Cancelled after five candles, or as soon as a close shows the stop was touched first.

Paste it. Test it.

One file, the complete v0.6.1 strategy, ready for TradingView's Pine Editor.

On a phone? Send this page to your desktop.

  1. Copy the strategyThe button copies the whole file.
  2. Paste it in the Pine EditorOpen a new strategy, replace the sample, save.
  3. Add it, open the Strategy TesterSet your broker's commission and slippage first.

Licence

engulfing-volume-desk.pine · 458 linesDownload engulfing-volume-desk.pine
//@version=6// …// Measured on OANDA:XAUUSD 4H with these defaults: 2025-02..2026-09 made money after costs; the untouched// 2023-03..2024-12 test lost. That is a research result, not a forecast. Read the lab notes before trading it.// Volume tiers are a rubric, not calibrated win probabilities.// Decisions occur at close; orders are live from the next tick. No signal-bar fills.// Cost defaults are an assumed XAUUSD research scenario, not a broker quote.// Standard preserves the C2 baseline. Adaptive ER is a research hypothesis, not a proven edge.strategy("Engulfing Volume Desk · v0.6.1", overlay = true,     initial_capital = 10000, currency = currency.USD, pyramiding = 2, close_entries_rule = "ANY",     commission_type = strategy.commission.cash_per_contract, commission_value = 0.30,     slippage = 100, backtest_fill_limits_assumption = 1, margin_long = 100, margin_short = 100,     calc_on_every_tick = false, calc_on_order_fills = false, process_orders_on_close = false,     max_labels_count = 100) string mode = input.string("Aggressive", "Entry mode", options = ["Aggressive", "Retest", "Both"], group = "Setup")string pattern = input.string("Body", "Engulfing definition", options = ["Body", "Body + full range"], group = "Setup")string directions = input.string("Both", "Direction", options = ["Both", "Long", "Short"], group = "Setup")int volumeLength = input.int(20, "Prior volume bars", minval = 2, maxval = 500, group = "Volume")float mediumAt = input.float(1.0, "Medium from RVOL", minval = 0.01, step = 0.1, group = "Volume")float highAt = input.float(1.5, "High from RVOL", minval = 0.02, step = 0.1, group = "Volume")string minimumTier = input.string("Low", "Minimum confirmation", options = ["Low", "Medium", "High"], group = "Volume",     tooltip = "Volume strength only. No measured win probability. Missing or zero volume blocks setups.")bool useTrend = input.bool(true, "EMA trend filter", group = "Context",     tooltip = "Long: close above EMA 200 and EMA higher than 5 bars ago. Short mirrors it. Uses confirmed chart bars only.")string exposurePolicy = input.string("Standard", "Exposure policy", options = ["Standard", "Fixed half", "Adaptive ER"], group = "Context",     tooltip = "Research comparison: Standard = 1x; Fixed half = 0.5x; Adaptive ER = 0.5x when 20-bar price-path efficiency is below 0.30, otherwise 1x. Scales risk and notional caps, frozen at setup admission. Does not resize open trades.")bool useWindow = input.bool(false, "Use research date window", group = "Research")int startTime = input.time(timestamp("06 Jul 2026 00:00 +0000"), "Start (inclusive signal close)", group = "Research")int endTime = input.time(timestamp("01 Sep 2026 00:00 +0000"), "End (exclusive signal close)", group = "Research",     tooltip = "At the first close at/after End, pending entries are cancelled and positions receive a next-tick market close. Terminal settlement can be after End.")int breakTicks = input.int(1, "Breakout buffer (ticks)", minval = 1, group = "Orders")

No coding needed.

View the full code

01 · Library

Full source

In Pine Pro Library: read it, change it, keep it.

02 · Pine v6

A strategy

It draws the plan and sends its orders to the Strategy Tester.

03 · Your chart

Any market

Any symbol with real volume; we measured gold's 4-hour chart.

04 · Research

Switches off

Retest entry, both legs and a cost screen are inputs, off by default.

All eleven. Once.

Eleven things we make, one payment, and nothing that renews.

Complete Suite Everything on the list, one payment

$97, one payment.

Renews never Full source 7-day refund before download

The Suite adds no Engulfing Volume features; it includes Pine Pro Library, so this desk's code comes with it.

What's insideOn its own
  1. Drift Desk PremiumThe bigger trend, the pullback, size first.$49.00
  2. Opening Range Desk ProOpening ranges graded A to C, markets in play first.$49.00
  3. Signal Desk PremiumA 20-market Radar, sized tickets, a daily lock.$49.00
  4. Breakaway Desk PremiumA Trend Radar for six crypto perpetuals on 4-hour candles.$49.00
  5. Gold Sweep Desk ProGold's session pools, the plan before the window.$49.00
  6. Pine Complete Bundle11 Pine v6 tools, every source included.$46.00
  7. Pine Evolution LabA local strategy factory that kills weak ideas.$79.00
  8. MTR FullSystemEAA complete MT5 EA: all 21 source files.$49.00
  9. TradeLensA self-hosted journal whose AI coach prices your leaks.$47.00
  10. The WatchA self-hosted paper-trading board.$59.00
  11. AI Starter PacksPrompt Vault, Fixer, Builder Lite, Chart Reader.$32.98
All eleven, one by one$557.98
The Suite$97

Straight answers.

How do I get the code?

The page, the films and the manual are open to everyone. The strategy's code is in Pine Pro Library: $49 once for every desk and every update, or as part of the Complete Suite. Sign in to copy or download.

Does it make money?

Not reliably. On gold's 4-hour chart, after costs and overnight financing, it finished 2025–26 ahead and lost on 2023–24, the history we had held back. Both runs are in the lab notes.

Does High volume mean a stronger setup?

Not in our test. The grade describes the engulfing candle; it did not tell good setups from bad ones. It is printed on every order, so you can sort your own record.

Does it repaint?

No. Every check reads a closed candle, the order is live from the next tick, and the plan is frozen once it is made.

What does the Suite add?

No Engulfing Volume features. It holds the other things we make, for one payment, and it includes Pine Pro Library, so this desk's code comes with it.

We, ProEA Lab, build Engulfing Volume Desk. The films run its rules on simulated candles, not market data; R is before costs. Not financial advice.

Full manual.

Every rule, setting and panel row, one topic at a time.

Open the full manualClose the full manual

00 What makes an engulfing?

Two candles of opposite colour, where the second one's body reaches both ends of the first one's body and is strictly bigger. The desk reads it only once the candle has closed, and only with the trend: longs above a rising EMA 200, shorts below a falling one. Grow the body and watch the checks.

✓ covers both ends✓ bigger body✓ opposite colour▲ ENGULFING

01 Where does the order go?

The plan is made at the engulfing's close and never moves: a stop order one tick past the last candle's high (its low for a short), a stop one tick beyond both candles, and a target twice the planned risk away. If the close is already past that high, the order is a market order at the next open, measured from the close.

target 2Rentrystoplast high

02 Read your chart.

Engulfing Volume Desk on the OANDA gold 4-hour chart: short and long engulfing setups labelled with their volume grade, each with its frozen stop, entry and target lines, exits marked Target or Stop, a short position open with its plan drawn, and the status panel.
OANDA:XAUUSD 4h on TradingView: each setup's order carries its grade (“Short · Low volume”), and its exit reads Target or Stop.
  1. The triangles: a setup the rules admitted, under the candle for a long and over it for a short.
  2. The lines: the planned entry in blue, the frozen stop in red, the target in the setup's colour, and the last candle's high and low faint, while the setup lives.
  3. The orders: TradingView prints each fill with its comment (“Long · High volume”) and each exit as Target or Stop.
State
Waiting for engulfing · Aggressive stop armed · Aggressive next-tick market · Position active · Exit observed; entries closed · Stop touched; entries closed · Pending orders expired.
Current / Setup RVOL
The grade and the ratio of the last closed candle, or of the setup the desk owns, frozen when it was made.
Admitted / size skips
How many setups the rules accepted on the loaded chart, and how many were skipped because no valid size fit.
Planned risk / target
The risk per setup (half a percent of equity by default) and the target rule in force (2R).
Volume strength only
Probability untested: Low, Medium and High describe volume, and no chance of success is claimed.

03 Install and check.

  1. Open a chart with real volumeStandard candles, not Heikin Ashi. On forex and CFD feeds the volume is tick volume, which counts price updates.
  2. Paste and addPine Editor → New strategy → paste → Save → Add to chart.
  3. Set your costsIn the strategy's Properties, your broker's commission and slippage. TradingView does not charge overnight financing.
The strategy · the complete source · engulfing-volume-desk.pine

04 Every rule, one question at a time.

Exactly how is a setup made?

Engulfing: at the close, the previous candle and this one have opposite, non-doji bodies; this body covers both ends of the previous body, inclusive, and is strictly larger. “Body + full range” also needs the high and low to cover the previous candle's.

Trend: a long needs the close above the EMA 200 and the EMA above its value five candles ago; a short mirrors it. Every check needs at least 205 loaded candles.

Plan: the entry one tick past the previous candle's high (a long), or a market order at the next open when the close is already through; the stop one tick beyond the lower low of both candles; the target twice the planned risk, rounded to the tick. Entry, stop, target, grade and size freeze when the setup is accepted.

One setup at a time: while a setup is owned, new engulfings are skipped; there are no reversals.

How is the volume graded?

RVOL is this candle's volume divided by the average of the twenty before it. Below 1.0 is Low, 1.0 to 1.5 Medium, 1.5 and above High. Missing or zero volume blocks the setup. The thresholds and a minimum grade are inputs; the default accepts every grade.

When is an order cancelled?

At the close of the fifth candle after the signal, if it has not filled, or as soon as a close shows the stop was touched before the entry. An open position keeps its stop and target until one of them closes it.

Which settings matter?

Entry mode (breakout, retest, both) · engulfing definition · direction · prior volume bars and the Medium and High thresholds · minimum grade · the EMA trend filter · target in R · risk per setup · pending lifetime · breakout and stop buffers in ticks.

The research groups (decision policy, execution plan, exposure policy, research date window) default to off or legacy: they are the experiments behind the lab notes, there for you to measure on your own chart.

What did we measure?

On gold's 4-hour chart, after commission, slippage and overnight financing, the default rule finished 2025–26 ahead; on 2023–24, the history we had held back and ran once, it lost, before financing too. The volume grade described the candle; it did not tell good setups from bad ones. Every number and how we measured it is in the lab notes, linked above.

What can change the reading?

Every decision reads closed candles. Changing the symbol, timeframe, feed or inputs recalculates the history. Your broker's fills, costs and financing can differ from TradingView's report. It is research tooling, not financial advice.

05 · THE LOG

Every change, dated

What shipped and what changed in Engulfing Volume Desk, newest first. Ask for the next change below; what gets built lands here with a date, and on the lab queue on the front page.

  1. Engulfing Volume Desk v0.6.1 Shipped

    Engulfing candles graded by relative volume, each turned into one frozen breakout plan.

BUILT WITH TRADERS

Something to change in Engulfing Volume Desk?

A small friction or a big idea. Tell us what would make this tool work better for you.

What would help?

Describe your rules and what you want the tool to help you see.

Add chart details Optional

For a question about your idea or an update if it ships.

Guides & new tools Optional

Add an email above to choose this.

Show us on your chart Optional

Crop out any account details you don't want to share.

No account needed. Sent privately to the lab.
  1. We read it
  2. We choose what to build
  3. Shipped changes get a date

Requests for a new tool go on the same queue: see what is asked for and what is being built.

  • Drift Desk

    Compare a volume-graded engulfing with a candle-pressure read; each becomes one fixed plan.

  • Breakaway Desk

    Compare a breakout stop past the prior candle with a resting limit in a breakout's first gap.

Built by ProEA Lab. Compare every desk in Pine Pro Library.