*Backtesting System Template at a glance

Kind of ruleTime of day (session and opening range)
Buys or sellsIt can buy, and it can bet on falling prices.
Built onADX / DMI, ALMA, ATR, Donchian Channels, EMA, Hull MA, Linear regression, MACD, RSI, Standard deviation, bars since, falling, rising, running total, value when
Where it was publishedTradingView, by its author, as a Pine Script strategy
Tested on13 cells: 13 coins, October 2021 to June 2026, no fee
Trades placednone
Page updated2026-11-08

*Backtesting System Template backtest results, every cell

There is no cloud of cells to draw. The frame below says why.

No tradesThe rule was tried and never placed a trade, so there is no shape to draw.No trades
The rule was tried and never placed a trade, so there is no shape to draw.

How *Backtesting System Template works

Rules in this group usually work like this. It only acts during set hours, such as the London or New York morning. Crypto never closes, so those hours are a choice, not a fact of the market. The question is whether those hours behave the same way on more than one coin. 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 ALMA, ATR, DMI, EMA; 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 10 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 signal equals 1 and Long Deals (on) and ok to trade and filter long ok.
  • Enters short when signal equals −1 and Short Deals (on) and ok to trade and filter short ok.
  • Closes the position when Close Early # Bars (0) is above 0 and (((bars below entry + 1) + 1) + 1) is at or above Close Early # Bars (0) and (not ((𝐒𝐭𝐨𝐩 𝐋𝐨𝐬𝐬 ([1] S.ᴠᴏʟᴀᴛʏ) equals 'Trailing' or 𝐒𝐭𝐨𝐩 𝐋𝐨𝐬𝐬 ([1] S.ᴠᴏʟᴀᴛʏ) equals 'Fast Trail' or 𝐒𝐭𝐨𝐩 𝐋𝐨𝐬𝐬 ([1] S.ᴠᴏʟᴀᴛʏ) equals 'MA' or 𝐒𝐭𝐨𝐩 𝐋𝐨𝐬𝐬 ([1] S.ᴠᴏʟᴀᴛʏ) equals 'Activator' or 𝐒𝐭𝐨𝐩 𝐋𝐨𝐬𝐬 ([1] S.ᴠᴏʟᴀᴛʏ) equals 'HILOEST' or 𝐒𝐭𝐨𝐩 𝐋𝐨𝐬𝐬 ([1] S.ᴠᴏʟᴀᴛʏ) equals 'SAR')) or (𝐒𝐭𝐨𝐩 𝐋𝐨𝐬𝐬 ([1] S.ᴠᴏʟᴀᴛʏ) ….
  • Closes the position when signal equals 1 and Long Deals (on) and ok to trade and filter long ok and ReOpen Deal (off) and in long and signal equals 1 and Long Deals (on) and ok to trade and filter long ok.
  • Closes the position when signal equals −1 and Short Deals (on) and ok to trade and filter short ok and ReOpen Deal (off) and in short and signal equals −1 and Short Deals (on) and ok to trade and filter short ok.
  • Keeps a target at (build leveles ((na (float) when 𝐓𝐚𝐤𝐞 𝐏𝐫𝐨𝐟𝐢𝐭 (R:R) differs from 'None', else na (float)), 0) when 𝐓𝐚𝐤𝐞 𝐏𝐫𝐨𝐟𝐢𝐭 (R:R) differs from 'None', else na (float)), a stop at (na (float) when 𝐓𝐚𝐤𝐞 𝐏𝐫𝐨𝐟𝐢𝐭 (R:R) differs from 'None', else build leveles ((na (float) when 𝐓𝐚𝐤𝐞 𝐏𝐫𝐨𝐟𝐢𝐭 (R:R) differs … working while the position is open.
Buys or sellsIt can buy, and it can bet on falling prices.
Tools it calculatesADX / DMI, ALMA, ATR, Donchian Channels, EMA, Hull MA, Linear regression, MACD, RSI, Standard deviation, bars since, falling, rising, running total, value when
A second chart speedNo. It uses one chart speed only.
Only at certain hoursYes. It only acts during set hours.
Adding to a tradeIt holds one trade at a time.
How much it tradesEach trade uses 10 percent of the account.
Cost the author assumedThe author assumed a trading cost of 0.04 percent per side.

Default settings

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

SettingDefaultGroup
𝐄𝐱𝐭𝐞𝐫𝐧𝐚𝐥 𝐒𝐨𝐮𝐫𝐜𝐞close
Long Dealson
Short Dealson
Close at Session Endoff
Wait End Dealon
Reverse Signaloff
ReEntry Dealoff
ReOpen Dealoff
𝐓𝐚𝐤𝐞 𝐏𝐫𝐨𝐟𝐢𝐭R:R
𝐒𝐭𝐨𝐩 𝐋𝐨𝐬𝐬[1] S.ᴠᴏʟᴀᴛʏ
ᵀ¹off
qtake120
ᵀ²off
qtake220
ᵀ³off
qtake320
ᵀ⁴off
qtake420
ᵀ⁵off
qtake520
s⁰off
qstop050
Custom Timezoneoff
timezone strUTC

and 91 more settings, left at the author's defaults.

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 13 cells, and it placed no trades.

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 tried13
Cells that placed a trade0
Finished above zero0

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

No cell took a trade, so there is no return to read. The rule above is the whole note.

What this does not show

The useful question is whether the same hours work on other coins. Crypto has no closing bell, so the hour is a choice.

There is no cell to single out, and this note does not invent one. Other years, another exchange, or another fee would be a different measurement.

Questions about *Backtesting System Template

What is *Backtesting System Template?

*Backtesting System Template is a session and opening range trading strategy published on TradingView as a Pine Script. In plain terms it is a rule of the kind this site calls time of day. It can buy, and it can bet on falling prices. It is built on ADX / DMI, ALMA, ATR, Donchian Channels, EMA, Hull MA, Linear regression, MACD, RSI, Standard deviation, bars since, falling, rising, running total, value when. This page reads the rules from the code and reports what they did on old crypto prices.

How does *Backtesting System Template work?

It can buy, and it can bet on falling prices. It acts only when several checks agree at once. It leans on ALMA, ATR, DMI, EMA; 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 *Backtesting System Template profitable in a backtest?

There is no result to judge. The rule was tried on 13 cells and never placed a trade, usually because a condition never came true on these coins and chart speeds with the author's default settings.

Where can I find the *Backtesting System Template 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 *Backtesting System Template uses

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

"*Backtesting System Template" 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.