Gold Sniper — Liquidity Sweep + RSI Divergence at a glance

Kind of ruleChart turning points (price action and market structure)
Buys or sellsIt can buy, and it can bet on falling prices.
Built onATR, Donchian Channels, RSI
Where it was publishedTradingView, by its author, as a Pine Script strategy
Tested on66 cells: 15 coins, October 2021 to June 2026, no fee
Cells that placed a trade51 of 66
Middle result before fees−42.5%
Cells above zero8 of 51
Middle drawdown before fees58.3%
Page updated2026-11-08

Gold Sniper — Liquidity Sweep + RSI Divergence backtest results, every cell

Every cell is in the picture, not only the strongest. To the right of the black line is above zero. The orange line, when you see one, is the middle.

The middle result at each chart speedEach bar is the middle result for that chart speed. The number in parentheses is how many cells. The black line is zero.15-minute (13)−57hourly (12)−3830-minute (13)−504-hour (13)−13−620+14
Each bar is the middle result for that chart speed. The number in parentheses is how many cells. The black line is zero.
Every cell, one dotEach dot is one cell, lined up by chart speed. Dots to the right of the black line finished above zero. The orange line is the middle.15-minutehourly30-minute4-hour−1080+42
Each dot is one cell, lined up by chart speed. Dots to the right of the black line finished above zero. The orange line is the middle.

How Gold Sniper — Liquidity Sweep + RSI Divergence works

Rules in this group usually work like this. It tries to act the way a person reading a chart would: at spots where price turned, at gaps, and at places where many people are likely to have set a stop. In code those ideas become counts of bars. The result depends on how those spots are defined. The next paragraph is this particular rule, which can be narrower than the group.

It can buy, and it can bet on falling prices. It acts only when several checks agree at once. It leans on ATR, RSI; those names are explained on their own pages, further down. The exact line is in the list below, in the author's names, and you can skip that list. When it enters, it also sets a stop or a target, so a trade can close without a new signal.

Each trade uses 50 percent of the account. It holds one trade at a time.

The exact condition, from the code

Same rule, translated from the code, in the author's names. You can skip this list if the paragraph above was enough.

  • Enters long when Enable Liquidity Sweep Reversal (on) and bull sweep and (run low − the previous low) is above 0 and in session and daily trades is below Max Trades per Day (10) and (Trade Direction (Both) equals 'Both' or Trade Direction (Both) equals 'Long Only') and no position is open.
  • Enters short when Enable Liquidity Sweep Reversal (on) and bear sweep and (the previous high − run high) is above 0 and in session and daily trades is below Max Trades per Day (10) and (Trade Direction (Both) equals 'Both' or Trade Direction (Both) equals 'Short Only') and no position is open.
  • Enters long when Enable RSI Divergence Scalp (on) and bull div and in session and daily trades is below Max Trades per Day (10) and (Trade Direction (Both) equals 'Both' or Trade Direction (Both) equals 'Long Only') and no position is open.
  • Enters short when Enable RSI Divergence Scalp (on) and bear div and in session and daily trades is below Max Trades per Day (10) and (Trade Direction (Both) equals 'Both' or Trade Direction (Both) equals 'Short Only') and no position is open.
  • On entry, places a stop at (the previous low − ((run low − the previous low) × SL Buffer (× sweep depth) (0.5))), a target at (the close + ((the close − (the previous low − ((run low − the previous low) × SL Buffer (× sweep depth) (0.5)))) × Reward : Risk Ratio (2))).
  • On entry, places a stop at (the previous high + ((the previous high − run high) × SL Buffer (× sweep depth) (0.5))), a target at (the close − (((the previous high + ((the previous high − run high) × SL Buffer (× sweep depth) (0.5))) − the close) × Reward : Risk Ratio (2))).
  • On entry, places a stop at (the close − (the 14-period ATR × ATR Multiplier for SL (1))), a target at (the close + ((the 14-period ATR × ATR Multiplier for SL (1)) × Reward : Risk Ratio (1.5))).
  • On entry, places a stop at (the close + (the 14-period ATR × ATR Multiplier for SL (1))), a target at (the close − ((the 14-period ATR × ATR Multiplier for SL (1)) × Reward : Risk Ratio (1.5))).
Buys or sellsIt can buy, and it can bet on falling prices.
Tools it calculatesATR, Donchian Channels, RSI
A second chart speedNo. It uses one chart speed only.
Only at certain hoursNo.
Adding to a tradeIt holds one trade at a time.
How much it tradesEach trade uses 50 percent of the account.
Cost the author assumedThe author assumed a trading cost of 0.01 percent per side.

Default settings

The test used the defaults in the middle column. Nothing was turned to help a coin.

SettingDefaultGroup
Enable Liquidity Sweep Reversalon
Enable RSI Divergence Scalpon
Trade DirectionBoth
Lookback Period (bars)30
Buffer Bars Before Sweep3
Reward : Risk Ratio2
SL Buffer (× sweep depth)0.5
Max Hold (bars)20
RSI Length14
RSI Oversold Threshold40
RSI Overbought Threshold60
Divergence Lookback (bars)10
Reward : Risk Ratio1.5
ATR Length for SL/TP14
ATR Multiplier for SL1
Max Hold (bars)15
Filter by Trading Sessionon
Session Start Hour (UTC)8
Session End Hour (UTC)20
Risk per Trade (%)1
Max Trades per Day10
Show SL / TP Lineson
Show Sweep Level Lineson
Show Stats Dashboardon

How the backtest was run

Every strategy was tried the same way, on the settings the author published.

The years are October 2021 to June 2026. The prices are from Bybit, for 13 widely traded coins, mostly on hourly, 4-hour and daily charts, with some faster charts. That was 47,242 tries. The window stored in the files is 2021-09..2026-06.

599 rules produced a finished try. A rule that finished above zero on at least 12 cells, before any fee, was tried again with a fee of 0.12 percent per side. Only buys are counted in that second try. 273 rules got it.

The method, the aggregate results and a downloadable table are on the study page. What the desk does with the results beyond these pages is its own.

Before any fee, it was tried on 66 cells. It placed a trade on 51 of them. 8 of the cells that traded finished above zero (15.7%).

It was not run a second time with a fee. That second pass happens only when at least 12 cells finished above zero before fees. 273 rules got that pass.

Cells tried66
Cells that placed a trade51
Finished above zero8 (15.7% of the cells that traded)
Middle result, before fees−42.5%
Strongest cell, the top of the rangeAVAX 4-hour: +33.9%
Weakest cell, the bottom of the rangeADA 15-minute: −100.0%
Middle drawdown, before fees58.3%

Label: backtest · old prices, zero commission · Oct 2021 – Jun 2026. Hypothetical results; see the risk disclosure.

How to read the result

How to read the number

The median of every cell that traded is the result. No fee has been taken off, so the number is a ceiling. A fee comes off each trade, and this page does not guess that cost, because this rule did not get the second pass where the fee is applied. The weakest and the strongest cells are not a result on their own.

The middle drawdown, on the cells that traded, was 58.3%.

What this does not show

The useful question is how the turning points are counted in the code. A person can be vague. The code has to count bars.

Nothing on this page was fit to the cell that finished highest. One coin, one chart speed, or one strong stretch is a single row. It is not the rule. Other years, another exchange, or another fee would be a different measurement.

Questions about Gold Sniper — Liquidity Sweep + RSI Divergence

What is Gold Sniper — Liquidity Sweep + RSI Divergence?

Gold Sniper — Liquidity Sweep + RSI Divergence is a price action and market structure trading strategy published on TradingView as a Pine Script. In plain terms it is a rule of the kind this site calls chart turning points. It can buy, and it can bet on falling prices. It is built on ATR, Donchian Channels, RSI. This page reads the rules from the code and reports what they did on old crypto prices.

How does Gold Sniper — Liquidity Sweep + RSI Divergence work?

It can buy, and it can bet on falling prices. It acts only when several checks agree at once. It leans on ATR, RSI; those names are explained on their own pages, further down. The exact line is in the list below, in the author's names, and you can skip that list. When it enters, it also sets a stop or a target, so a trade can close without a new signal.

Is Gold Sniper — Liquidity Sweep + RSI Divergence profitable in a backtest?

Before any fee, 8 of 51 cells that traded finished above zero, and the median of those cells was −42.5%. No fee has been taken off, so that number is a ceiling. The rule did not reach the second pass where a fee is charged on every trade.

Where can I find the Gold Sniper — Liquidity Sweep + RSI Divergence script?

It is published on TradingView by its author. Search TradingView for the title to find the original script. This page is an independent reading and is not affiliated with the author.

What does backtest mean on this page?

Backtest means the rule was replayed on old prices from Bybit. No real money moved. Every number on this page carries that label, and old prices do not promise anything about new ones.

Words used on this page

Backtest
The rule was tried on old prices. No real money moved.
Cell
One coin on one chart speed. Bitcoin every 4 hours is one cell. Bitcoin once a day is another.
Chart speed
How often a new price bar is drawn. 15m means every 15 minutes, 1h means hourly, 4h means every 4 hours, 1D means once a day.
Fee, per side
A cost taken each time the rule trades. Per side means once on the way in and once on the way out.
Median
Line the cells up from the biggest loss to the biggest gain. The median is the middle one. Half the cells did better and half did worse.
Drawdown
The deepest fall from a high point along the way, as a percent of the account at that high.
Above zero
The account finished with more than it started.

The indicators Gold Sniper — Liquidity Sweep + RSI Divergence uses

Each has its own page: what it measures, how it is read, where it misleads.

"Gold Sniper — Liquidity Sweep + RSI Divergence" was published on TradingView by its author, under the author's own license. This page is an independent reading of those rules and of what they did on these old prices. It is not written with the author, and it is not a recommendation. Not every detail survives the translation onto this page, so read the original before you rely on it.