See when large gold-token traders buy a falling gold market or sell a rising one
Whale vs Retail Flow reads the minute-by-minute volume of PAX Gold, a gold token traded on crypto exchanges, splits it into whale and retail activity and shows on your TradingView gold chart when the big side buys a falling market or sells a rising one.
- One-minute PAXG trades split into whale and retail by size: 10 times the average intrabar volume
- WHALE BUY near the recent low needs whale buying while retail sells, plus a second confirmation
- Red break level under the expected low, drawn for the chart timeframe, 4 hours and daily
- Seven alerts: whale buy, whale sell, two divergence candles, breaking low, low swept and low reclaimed
- The full Pine Script source code. Paste it into the Pine Editor, save, and add “Whale vs Retail Flow [AlgoFXStore]” to your chart.
- A 15-page PDF manual with installation, every setting and how to read the chart. One-time €47.

See Whale vs Retail Flow on a real chart
Press play; use the full-screen button to see every detail.
Price alone does not show who is buying the drop
When gold falls into a level, the chart shows red candles and nothing else. You cannot see whether the selling comes from many small accounts giving up or whether larger players are quietly absorbing it. Volume bars help a little, but a single volume number mixes every trade together, large and small, buying and selling.
Gold futures and spot gold do not show individual trade sizes on a normal chart. PAX Gold, a token backed by gold and traded around the clock on crypto exchanges, does provide minute volume that can be split. It is a proxy, not exchange order flow for gold futures, but it gives you a separate view of large and small participants in the same metal.
Whale vs Retail Flow does that split on every chart bar. It sorts one-minute PAXG volume into whale and retail, measures their net buying, checks the PAXG premium and open interest, and marks the moments when whales buy near the recent low while retail sells.
Everything Whale vs Retail Flow draws on your chart
Read from the shipped Pine Script code.
- WHALE BUY label below the bar: 'WHALE BUY\n<score>/3', green, white text, small; WHALE SELL label above the bar: 'WHALE SELL\n<score>/3', red
- Zone shading: bgcolor green 75 % transparency when buy score is 3, 88 % when 2; red likewise for sell zones
- Divergence candles via plotcandle: red (falling) candle recoloured when whales are net buying, green (rising) candle recoloured when whales are net selling, white border
- Low levels on the last bar only, for the chart timeframe, 240 and D: 'Expected low' lime dashed, 'Break below' red solid width 2, 'Squeeze target' orange dotted; each line from 40 bars back to 15 bars ahead, label at the right end with prefix '<tf> ' and price '#,##0.00', e.g. '15m Expected low 4,322.00'
- Dashboard table top right, 2 x 8, black 30 % background, white labels
- AlgoFXStore watermark table bottom right
How Whale vs Retail Flow decides what to draw
This is the logic of the shipped Pine Script v6 code. Its flow data comes from PAXG symbols, whatever gold symbol your chart shows; only the levels and candle colours use your chart's own bars.
- 1
Splitting the minute volume
For each chart bar the indicator reads the 1 minute PAXG bars inside it from Binance, with Bybit, KuCoin and Kraken optional. An intrabar with at least 10 times the 50-bar average intrabar volume counts as whale, the rest as retail. Each intrabar's volume is split into buying and selling by where it closed in its range.
- 2
Whale strength
Whale and retail net buying are summed over a 20-bar flow window. Whale strength is that whale sum divided by its 100-bar standard deviation. Whale buying means whale strength above 0.5 while the retail net over the window is negative; whale selling means below minus 0.5 while retail is net buying.
- 3
Two more confirmations
The PAXG premium over OANDA:XAUUSD, smoothed over 3 bars, is compared with its 50-bar average: above it confirms a buy, below it a sell. Open interest of the PAXG perpetual confirms a buy when it has dropped 3 % from its 10-bar peak (a flush) and a sell when it has risen 3 % from its trough. The buy score counts whale buying, premium and OI flush, out of 3.
- 4
WHALE BUY and WHALE SELL
A buy zone needs whale buying and a score of at least 2. A WHALE BUY label with its score prints on the first bar of a buy zone where price is within 3 % of the 50-bar low and more than 10 bars have passed since the last one. WHALE SELL mirrors it near the 50-bar high and can be hidden with Buys only. Confirmed zones are shaded green or red.
- 5
Divergence candles
A falling candle is recoloured bright green when whales are net buying, and a rising candle bright red when whales are net selling, with a white border. By default such a candle also needs the premium or open interest to agree. These candles show divergence between price and whale flow; they are not entries.
- 6
Expected low, break level, squeeze target
From stored 5 by 5 swing lows the indicator draws the expected low, a red break level 0.25 ATR below it and an orange squeeze target, the next swing low below the break. Sets are drawn for the chart timeframe, 4 hours and daily on the last bar. A close below the break level sets the status to breaking low.
Whale vs Retail Flow on 12 gold charts
Every chart below is a screenshot of TradingView itself with the shipped Whale vs Retail Flow [AlgoFXStore] attached at its default settings. Whale vs Retail Flow is built for gold, so the charts show it on several data feeds and timeframes rather than on other markets. They show what the indicator draws; they are not trading results. Tap or click any chart to open it full size.












Whale vs Retail Flow on a real TradingView chart, frame by frame
Frames of a screen recording of the shipped indicator at its default settings, as the chart updates. Nothing is edited into the chart.




How to use it, step by step
The indicator shows flow and levels, not a trade plan. These steps describe how the guide suggests reading it on a gold chart.
- 1
Use it on gold only
Load it on GC, MGC, XAUUSD or another gold symbol. Every flow input is gold-token data, so on index or oil charts it would paint gold flow on the wrong candles. Use 5, 15 or 60 minute charts; up to 1 hour they all read 1 minute PAXG flow. On intraday charts the guide suggests 0.5 to 1.0 for Within % of low or high.
- 2
Wait for the closed WHALE BUY
The flow, the score and the label can change while the candle is open, because new minute bars keep arriving. Treat a WHALE BUY as final only when its candle has closed, and set the alerts to Once Per Bar Close. Read the score on the label: 3 of 3 means whale flow, premium and OI flush all agreed.
- 3
Use the red break level as your line
No stop is drawn, but the red Break below line under the expected low is the invalidation: a close below it means the low failed. Measure the distance from your entry to just beyond that line and size so it is a loss you accept. For a WHALE SELL the guide uses the recent 50-candle high, marked by you, as the reference.
- 4
Watch the status alerts
Low swept means the expected low was wicked but price closed back above it, often the moment a buy setup becomes interesting. Breaking low means a close below the break level, a reason to stand aside or exit. Broken low reclaimed means price closed back above it. The orange squeeze target shows where the next swing low lies if the low fails.
- 5
Choose your own exit
The indicator does not draw targets. Decide in advance where you take profit, for example at a previous swing high or a fixed multiple of your risk, and treat a WHALE SELL or red divergence candles near a high as a reason to protect a long position.
The dashboard, row by row
- LTF / Exchanges: e.g. '1 / 1' (lower timeframe used / exchanges that delivered data)
- Whale flow: whale net as % of total volume over the flow window, green / red
- Retail flow: retail net %, green / red
- Whale strength: whaleSumZ (0.00), green when whaleBuy, red when whaleSell
- Gold premium: PAXG premium over spot gold in % and its deviation from the average, e.g. '0.42% (+0.03)', or 'n/a
- OI vs peak: OI change from its 10-bar peak in %, or 'n/a
- Buy / Sell score: e.g. '2/3 | 0/3
- State: ACCUMULATION / DISTRIBUTION / Neutral
Everything Whale vs Retail Flow does for you
Whale and retail flow split
One-minute PAXG volume sorted by trade size into whale and retail, with net buying for each side over a 20-bar window, from up to four exchanges.
Three-part score
Whale flow against retail, the PAXG premium over spot gold and an open interest flush or build. A signal needs whale flow plus at least one more, shown as a score out of 3.
Signals near the extremes
WHALE BUY only near the 50-bar low and WHALE SELL only near the 50-bar high by default, with a 10-bar cooldown between two labels of the same side.
Divergence candles
Falling candles turn bright green when whales buy, rising candles bright red when whales sell, so a disagreement between price and large flow stands out on the chart.
Levels on three timeframes
Expected low, red break level and orange squeeze target for the chart timeframe, 4 hours and daily, each labelled with its timeframe and price.
Dashboard of the flow
Lower timeframe and exchanges used, whale flow and retail flow in percent, whale strength, gold premium, OI against its peak, buy and sell score, and the state: accumulation, distribution or neutral.
Seven alerts
Whale buy and whale sell confirmed, red candle with whales buying, green candle with whales selling, breaking low, low swept and broken low reclaimed.
Auto-tune for daily charts
On daily and higher charts sensitivities, lengths and the near and OI percentages adapt automatically, and the lower timeframe steps up from 1 minute to 15 or 60 minutes.
Whale vs Retail Flow, feature by feature
Each picture is built from real platform screenshots of the shipped indicator at its default settings, labelled so you can see what every part does. Tap any picture to open it full size.




How traders put it to work
Micro gold futures on 5 minutes
On MGC at 5 minutes the indicator reads 1 minute PAXG flow, about five intrabars per chart bar. Reduce Within % of low or high to 0.5 to 1.0, because 3 % of the gold price is far wider than an intraday move, so the near-low filter actually filters.
Gold futures on 15 minutes
GC at 15 minutes is the default intraday view. The 4 hour and daily level sets give you the larger lows under price, and the break level of the nearest one is the line the guide uses as a stop reference for a WHALE BUY.
Swing view on 60 minutes
On GC 60 minutes the flow window covers about a day of trading, and the daily levels come into range. WHALE BUY labels are rarer and the expected lows are larger swings; use the daily break level as your invalidation line.
Spot gold and gold CFDs
On OANDA:XAUUSD or another spot gold symbol the flow and confirmations are the same PAXG data, and the levels come from your chart's own bars. Size from the distance to the red break line in your symbol's price units.
Every setting, with its default
The names are the ones in the script's Settings dialog in TradingView (Inputs tab); the defaults are what every chart on this page uses. Open a group to see its settings.
Exchanges (PAXG spot, aggregated) (4)
| Setting | Default | What it does |
|---|---|---|
| (row 1, no title) checkbox + symbol | on, BINANCE:PAXGUSDT | Exchange 1 used for the whale / retail split. |
| (row 2, no title) checkbox + symbol | off, BYBIT:PAXGUSDT | Exchange 2; an unknown symbol is skipped. |
| (row 3, no title) checkbox + symbol | off, KUCOIN:PAXGUSDT | Exchange 3. |
| (row 4, no title) checkbox + symbol | off, KRAKEN:PAXGUSD | Exchange 4. |
Whale Detection (6)
| Setting | Default | What it does |
|---|---|---|
| Lower timeframe (blank = auto) | blank (auto) | Intrabar timeframe; auto = 1 min up to 1 h charts, 5 min up to 4 h, 15 min up to 1 D, else 60 min. |
| Whale size (x avg intrabar volume) | 10 | An intrabar with at least this multiple of the average intrabar volume counts as whale. |
| Volume baseline length (bars) | 50 | Chart bars for the average intrabar volume. |
| Flow window (bars) | 20 | Bars summed for whale and retail flow. |
| Normalisation length (bars) | 100 | Bars for the standard deviation behind whale strength. |
| Whale zone sensitivity (higher = fewer) | 0.5 | Whale strength must exceed this (positive for buy, negative for sell). |
Confirmation: PAXG Premium vs Spot Gold (6)
| Setting | Default | What it does |
|---|---|---|
| Use PAXG premium | on | Counts the premium as a confirmation. |
| PAXG symbol | BINANCE:PAXGUSDT | Token price for the premium. |
| Spot gold symbol | OANDA:XAUUSD | Spot gold price for the premium. |
| Premium smoothing (bars) | 3 | SMA of the premium. |
| Premium average length (bars) | 50 | Average the premium is compared with. |
| Min premium vs average % for buy | 0 | Deviation needed (above for buy, below the negative for sell). |
Confirmation: Open Interest Flush (4)
| Setting | Default | What it does |
|---|---|---|
| Use OI flush | on | Counts the open-interest move as a confirmation. |
| OI symbol | BINANCE:PAXGUSDT.P_OI | Open-interest series of the PAXG perpetual. |
| OI lookback (bars) | 10 | Window for the OI peak / trough. |
| OI drop % from recent peak | 3 | Drop from the peak = flush (buy); the same rise from the trough = build (sell). |
Signals (8)
| Setting | Default | What it does |
|---|---|---|
| Min score to signal (out of 3) | 2 | Confirmations needed (whale flow must be one of them). |
| Require price near recent low | on | Buy only near the recent low, sell only near the recent high. |
| Price extreme lookback | 50 | Bars for the recent low / high. |
| Within % of low / high | 3 | How near is near. |
| Cooldown bars between signals | 10 | Minimum bars between two WHALE BUY (or two WHALE SELL) labels. |
| Buys only (hide all sell signals) | off | Hides sell zones, labels and whale-selling candles. |
| Shade confirmed zones | on | Green / red background on confirmed zones. |
| Auto-tune on daily and above | on | Adapts sensitivities and lengths on daily+ charts. |
Divergence Candles (5)
| Setting | Default | What it does |
|---|---|---|
| Recolour divergence candles | on | Repaints divergence candles. |
| Candle sensitivity (higher = fewer) | 1 | Bar whale strength needed. |
| Candles need premium or OI confirmation | on | A divergence candle also needs the premium or OI to agree. |
| Red candle, whales buying | #00FF00 | Colour of falling candles with whale buying. |
| Green candle, whales selling | #FF0000 | Colour of rising candles with whale selling. |
Low Levels (lines) (5)
| Setting | Default | What it does |
|---|---|---|
| Chart timeframe levels | on | Levels from the chart's own timeframe. |
| (checkbox) Extra timeframe | on, 240 | Second set of levels (4 hours). |
| (checkbox) Extra timeframe | on, D | Third set of levels (daily). |
| Swing strength (bars each side) | 5 | Pivot size for the stored swing lows. |
| Break buffer (x ATR below the low) | 0.25 | Distance from the expected low to the break level. |

The alert events, one by one
In TradingView: Create alert, choose “Whale vs Retail Flow [AlgoFXStore]” as the condition and pick the event. TradingView then notifies you the way you set in that dialog: a pop-up in TradingView, a sound, the TradingView app on your phone or an e-mail.
- Whale buy (confirmed)
- Whale sell (confirmed)
- Red candle, whales buying
- Green candle, whales selling
- Breaking low
- Low swept
- Broken low reclaimed
Whale vs Retail Flow next to the usual options
Where it wins, and where it does not.
| Whale vs Retail Flow | Typical free volume indicator | Reading it by hand | |
|---|---|---|---|
| Who is trading | Whale and retail flow split by trade size | One total volume bar | Not visible on a gold chart |
| Confirmation | PAXG premium and open interest in a score | None | Several symbols in other tabs |
| Levels | Expected low, break level and squeeze target on three timeframes | None | Drawn by you |
| Markets | Gold only: the flow data is gold-token data | Any symbol | Any symbol |
| Signal timing | Changes while the candle is open, final at the close | Usually final at the close | When you look |
| Data needs | One-minute intrabar data from crypto exchange feeds | The chart's own volume | Nothing extra |
| Cost | A one-time purchase | Free | Free |
Honest about who this fits
A good fit if you
- Gold traders on TradingView who want a view of large and small participants that the gold chart itself does not show.
- Traders on GC, MGC or spot gold who buy near lows and want confirmation that bigger players are buying too.
- Traders who like levels with a clear meaning: an expected low, a break line that invalidates it and the next low below.
- Traders who prefer alerts for events such as a swept low or a reclaimed low rather than fixed entry rules.
- Traders who understand that a proxy is a proxy and use it as one input among others.
Not for you if you
- Traders of indices, oil, forex or stocks: the flow comes from gold-token data and means nothing on other markets.
- Anyone who expects exchange order flow from gold futures: the whale and retail split is measured on PAXG trades.
- Traders who want an entry, a stop and targets drawn for them: the indicator draws levels and flow, not a trade plan.
- Anyone who wants orders placed automatically: it draws and alerts and never places a trade.
The full code, one manual, installed in two minutes
- 1Pine Script source codeWhale_vs_Retail_Flow_TradingView_Code.txt (18 KB): the full code. Paste it into the Pine Editor and it appears as “Whale vs Retail Flow [AlgoFXStore]”.
- 15Page PDF manualInstallation, every setting with its default and how to read the chart.
- ✓Every main setting explainedThe table above lists the main settings with the defaults the charts use.
- ✓Alert eventsYou choose which ones are on in the settings.
- 60Day money-back guaranteeIf it is not for you, request a full refund within 60 days through your Digistore24 order e-mail.
Install in five steps
- Download the zip from the page Digistore24 sends you to after checkout and unzip it.
- Open Whale_vs_Retail_Flow_TradingView_Code.txt in a text editor, select all and copy the whole code.
- In TradingView, open the Pine Editor, paste the code over everything that is there and click Save.
- Click Add to chart: “Whale vs Retail Flow [AlgoFXStore]” appears on your chart.
- Read the PDF manual; the defaults are the settings shown on this page.

Kestutis Balciunas
AlgoFXStore · chart indicators
Kestutis Balciunas builds and publishes chart indicators under the AlgoFXStore name. Every product page shows what the indicator draws on real charts, and every number on it comes from the shipped build.
The charts on this page were captured in TradingView from the shipped Whale vs Retail Flow [AlgoFXStore] at its default settings and are shown unedited.
No get-rich claims and no quoted win rates. Every trade is uncertain, and no indicator changes that. If you want to know whether it suits the way you trade before you buy, e-mail [email protected] and you will get a straight answer.
One price, one payment
- The full Pine Script source code of Whale vs Retail Flow and the 15-page PDF manual
- Delivered as a digital download: one zip with the code file and the PDF manual on your download page
- Return period: 60 days, with a full refund if it is not for you
- Free updates to the current version on the same download page
60-day money-back guarantee. Install it, run it on your own charts and read the manual. If Whale vs Retail Flow is not for you within 60 days of purchase, request a full refund from Digistore24, no questions asked: use the refund link in your Digistore24 order e-mail or Digistore24's order page digistore24.com/en/cancel-revoke-contract. Digistore24 refunds to your original payment method. It is a digital download: right after checkout you land on your download page, and the link to it is also in your Digistore24 order e-mail.
About the signals
Does it repaint?
On the forming candle, yes. Whale flow, the score, the WHALE BUY and WHALE SELL labels, the shading and the divergence candles are recalculated as new 1 minute bars arrive, so they can appear or disappear before the candle closes; they are final at the close. The 4 hour and daily levels follow the developing higher-timeframe bar, and all levels are redrawn on the last bar. Use Once Per Bar Close for alerts.
Is this real order flow from gold futures?
No. The whales and retail traders are large and small one-minute PAXG trades on crypto exchanges, Binance by default. PAX Gold is a gold-backed token, so its flow is a proxy for interest in gold, not the order book of gold futures or spot gold.
Why is there green shading but no WHALE BUY label?
Shading marks a confirmed buy zone: whale buying with a score of at least 2. The label also needs price within the set percentage of the 50-bar low and the cooldown to have passed, so a zone away from the low is shaded without a label.
Why does the score never reach 3?
If the open interest symbol does not exist on your account, OI vs peak shows n/a and can never confirm. Then every signal is whale flow plus premium, a score of 2. You can change the OI symbol in Settings or switch the OI confirmation off.
What do the coloured candles mean?
A bright green candle is a falling candle while whales were net buying; a bright red candle is a rising candle while whales were net selling. They show a disagreement between price and large flow. By default they also need the premium or open interest to agree.
Settings and the dashboard
Which charts and timeframes should I use?
Gold charts: GC, MGC, XAUUSD and other spot gold symbols. 5, 15 and 60 minute charts all read 1 minute PAXG flow. Daily and above use the auto-tune and a coarser lower timeframe. The indicator needs about 170 bars after the intrabar data starts before the flow is ready.
Should I keep the defaults?
Mostly. Whale size 10, flow window 20, sensitivity 0.5, score 2 of 3 and the 10-bar cooldown are the shipped values. Within % of low or high at 3.0 is very wide on intraday gold; the guide suggests 0.5 to 1.0 on 5 to 15 minute charts so the near-low condition filters.
What does the dashboard show?
The lower timeframe and number of exchanges that delivered data, whale flow and retail flow as a percent of volume, whale strength, the gold premium and its deviation from the average, open interest against its peak, the buy and sell score, and the state: ACCUMULATION, DISTRIBUTION or Neutral.
Why do older bars show no flow?
One-minute intrabar data only reaches back as far as TradingView provides it for your account. Chart bars older than that have no intrabars, so they get no flow and no signals. How far it reaches can differ between loads and plans.
Alerts and data
Which alerts can I set?
Seven alertcondition alerts: Whale buy (confirmed), Whale sell (confirmed), Red candle with whales buying, Green candle with whales selling, Breaking low, Low swept and Broken low reclaimed. Because the values move during the candle, choose Once Per Bar Close.
Which TradingView plan do I need?
The indicator requests one-minute intrabar data of PAXG plus the PAXG, spot gold and open interest symbols. Because of the lower-timeframe request, the guide recommends a paid TradingView plan; it has not been tested on a free account.
Can I add more exchanges?
Yes. Four exchange rows are built in: Binance on, Bybit, KuCoin and Kraken off. Switch them on in Settings to add their PAXG volume to the split; an unknown symbol is skipped. Changing exchanges, the lower timeframe or the whale size changes every value on the chart.
How it works
Will it place trades for me?
No. Whale vs Retail Flow is an indicator: it draws on the chart and can alert you. It never sends an order.
After you buy
How do I get it after paying?
Digistore24 runs the checkout. Right after payment it takes you to your download page with one zip holding the Pine Script source code file and the PDF guide; the link to that page is also in your Digistore24 order e-mail, so you can download again at any time.
How do I install it?
Open the code file, open the Pine Editor in TradingView, paste the whole code, click Save and then Add to chart: “Whale vs Retail Flow [AlgoFXStore]” appears on your chart. The guide walks through it step by step.
Who is Digistore24?
Digistore24 is the reseller that sells Whale vs Retail Flow for Kestutis Balciunas (AlgoFXStore): it runs the checkout, charges your card or PayPal, collects the VAT for your country and delivers the download. Its name is the one on your statement, and its order e-mail holds your download link and the refund link.
What is the refund policy?
A 60-day money-back guarantee, handled by Digistore24. If Whale vs Retail Flow is not for you within 60 days of purchase, use the refund link in your Digistore24 order e-mail or Digistore24's order page (digistore24.com/en/cancel-revoke-contract) for a full refund, no questions asked. Digistore24 makes the refund to your original payment method.
Do I get the source code?
Yes. You get the full Pine Script source code as a text file for your own use; the licence line at the top of the code does not allow resale, sharing or republishing.
Whale vs Retail Flow for TradingView.
Put whale and retail gold-token flow, its confirmations and the key lows on your own TradingView gold charts and decide which lows are worth your risk. The full code, the manual and every setting explained. Instant download for €47, one payment.
Get instant access