Outside Bar Strategy at a glance

Kind of ruleA rule of its own (rules-based)
Buys or sellsIt can buy, and it can bet on falling prices.
Built onprice only
Where it was publishedTradingView, by its author, as a Pine Script strategy
Tested on25 cells: 8 coins on 6 chart speeds (5m, 15m, 30m, 1h, 4h, 1D), October 2021 to June 2026
Fee in the test0.12 percent per side, buys only
Middle result after fees, every cell−0.5%
Cells above zero2 of 25
Cells that cleared the quality check0 of 25
Middle drawdown, every cell0.5%
Page updated2026-11-08

Outside Bar Strategy 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.

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-minutedailyhourly30-minute4-hour5-minute−840
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.
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 (8)−11daily (4)−0.31hourly (2)−1130-minute (5)−9.24-hour (5)−1.15-minute (1)−0.98−120+2.7
Each bar is the middle result for that chart speed. The number in parentheses is how many cells. The black line is zero.

How Outside Bar Strategy works

Rules in this group usually work like this. This one does not sit in the usual groups. The buy and sell lines below are what it is. Read it the same way as the others: what it assumes, how many trades it took, and what happened on many coins and chart speeds rather than on one. 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. 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.

The author did not set a size, so each trade uses whatever amount the code assumes. 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 the high is above the previous high and the low is below the previous low and the close is above the open.
  • Enters short when the high is above the previous high and the low is below the previous low and the close is below the open.
  • Places a target at ((the low + ((the high − the low) × (Entry Level (% of Outside Bar) (50) / 100))) + (((the low + ((the high − the low) × (Entry Level (% of Outside Bar) (50) / 100))) − (the low − pips to price (Stop Loss Offset (Pips) (10)))) × Partial Exit at RR (1))) when the high is above the previous high and the low is below the previous low and the close is above the open and Enable Partial Exit (on).
  • On entry, places a stop at (the low − pips to price (Stop Loss Offset (Pips) (10))), a target at (the high + ((the high − the low) × (Take Profit (%) of Outside Bar Move (100) / 100))).
  • Places a target at ((the high − ((the high − the low) × (Entry Level (% of Outside Bar) (50) / 100))) − (((the high + pips to price (Stop Loss Offset (Pips) (10))) − (the high − ((the high − the low) × (Entry Level (% of Outside Bar) (50) / 100)))) × Partial Exit at RR (1))) when the high is above the previous high and the low is below the previous low and the close is below the open and Enable Partial Exit (on).
  • On entry, places a stop at (the high + pips to price (Stop Loss Offset (Pips) (10))), a target at (the low − ((the high − the low) × (Take Profit (%) of Outside Bar Move (100) / 100))).
Buys or sellsIt can buy, and it can bet on falling prices.
Tools it calculatesprice only
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 tradesThe author did not set a size, so each trade uses whatever amount the code assumes.
Cost the author assumedThe author assumed no trading cost.

Default settings

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

SettingDefaultGroup
Entry Level (% of Outside Bar)50
Enable Alertson
Enable Partial Exiton
Enable Breakeven After Partial Exiton
Entry Line Width2
Stop Loss Line Width2
Take Profit Line Width2
Take Profit (%) of Outside Bar Move100
Partial Exit at RR1
Partial Exit (%)50
Stop Loss Offset (Pips)10

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.

This is the second pass. A fee of 0.12 percent per side is taken on the buy and again on the sell. Only buys are counted. If the rule also bets on falling prices, those trades are not in these numbers.

After fees, 2 of 25 cells finished above zero (8.0%). The median of every cell was −0.5%.

0 of the cells cleared a quality check: at least 50 trades, gains that are not one lucky trade, and a drawdown that is real without taking the whole account.

Finished above zero by chart speed: 15-minute chart, 15m 0 of 8; daily chart, 1D 1 of 4; hourly chart, 1h 0 of 2; 30-minute chart, 30m 0 of 5; 4-hour chart, 4h 1 of 5; 5-minute chart, 5m 0 of 1.

Before fees, it sat 13th on a list sorted by average Sharpe. That list charges no fee.

Cells tried after the fee25
Finished above zero2 (8.0%)
Middle result, the median of every cell−0.5%
Middle drawdown, every cell0.5%
Cells that cleared the quality check0
Middle result, over the cells above zero+0.0%
Extra, Calmar on the rows above zero. Result divided by the deepest fall0.00
Extra, Sharpe on the rows above zero. Result divided by how bumpy the path was0.14
Middle drawdown, the rows above zero0.0%
Deepest fall, the rows above zero0.0%
Middle number of trades, the rows above zero480

Label: backtest · old prices, buys only, a fee of 0.12 percent per side, every cell · 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 is the result of the rule. The author's settings were not changed to help any coin. The weakest and the strongest cells are not a result on their own.

What the number leaves out

The table also shows +0.0%, taken only over the cells that finished above zero. Cells that finished down are left out of that figure, which is why it stands away from the median of every cell. It describes those rows only.

0 of 25 cells cleared a quality check: at least 50 trades, a profit factor that is not one lucky trade, and a drawdown that is real without taking the whole account. Profit factor means the gains divided by the losses. Clearing the check describes this sample. It says nothing about the next set of years.

The count above is also split by chart speed. A speed that finished higher, in these years, is one slice of the same rule. It is not a separate strategy.

A place on the no-fee list is not the result after fees. The middle number above is the one after fees.

What this does not show

The useful question is what the rule assumes, how many trades it took, and what happened across coins and chart speeds rather than in one cell.

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 Outside Bar Strategy

What is Outside Bar Strategy?

Outside Bar Strategy is a rules-based trading strategy published on TradingView as a Pine Script. In plain terms it is a rule of the kind this site calls a rule of its own. It can buy, and it can bet on falling prices. It is built on price only. This page reads the rules from the code and reports what they did on old crypto prices.

How does Outside Bar Strategy work?

It can buy, and it can bet on falling prices. It acts only when several checks agree at once. 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 Outside Bar Strategy profitable in a backtest?

In this backtest, more cells lost than gained. After a fee of 0.12 percent per side, 2 of 25 cells finished above zero and the median of every cell was −0.5%. A backtest is a replay on old prices, so it describes these coins and these years, not a future result.

What was the drawdown of Outside Bar Strategy?

The median drawdown across every cell was 0.5%, and the deepest fall in any cell was 79.3%. Drawdown is the deepest fall from a high point along the way, as a percent of the account at that high.

Which timeframe suited Outside Bar Strategy?

Counted by cells above zero: 5-minute (5m) 0 of 1; 15-minute (15m) 0 of 8; 30-minute (30m) 0 of 5; hourly (1h) 0 of 2; 4-hour (4h) 1 of 5; daily (1D) 1 of 4. The daily chart had the largest share above zero in these years. A chart speed that did better here is one slice of the same rule, not a separate strategy.

Where can I find the Outside Bar Strategy 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.

"Outside Bar Strategy" 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.