EMA SHIFT & PARALLEL [n_dot] at a glance
| Kind of rule | A rule of its own (rules-based) |
|---|---|
| Buys or sells | It can buy, and it can bet on falling prices. |
| Built on | price only |
| Where it was published | TradingView, by its author, as a Pine Script strategy |
| Result | no finished try; every run errored or timed out |
| Page updated | 2026-11-08 |
EMA SHIFT & PARALLEL [n_dot] backtest results, every cell
There is no cloud of cells to draw. The frame below says why.
How EMA SHIFT & PARALLEL [n_dot] 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. It gets out when another set of checks agrees. That line is in the list below too.
Each trade uses 70 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 Long: (on) and (pine EMA (rsrc, EMA FAST ws: (20)) × EMA FAST down shift: (0.98)) is above pine EMA (round down (Source: (close), 8), EMA SLOW ws: (420)) and the previous (pine EMA (rsrc, EMA FAST ws: (20)) × EMA FAST down shift: (0.98)) is at or below the previous pine EMA (round down (Source: (close), 8), EMA SLOW ws: (420)) and no long position is open.
- Enters short when Short: (on) and (pine EMA (rsrc, EMA FAST ws: (30)) × EMA FAST up shift: (1.02)) is below pine EMA (round down (Source: (close), 8), EMA SLOW ws: (500)) and the previous (pine EMA (rsrc, EMA FAST ws: (30)) × EMA FAST up shift: (1.02)) is at or above the previous pine EMA (round down (Source: (close), 8), EMA SLOW ws: (500)) and no short position is open.
- Closes the position when Long: (on) and (pine EMA (rsrc, EMA FAST ws: (20)) × EMA FAST down shift: (0.98)) is above pine EMA (round down (Source: (close), 8), EMA SLOW ws: (420)) and the previous (pine EMA (rsrc, EMA FAST ws: (20)) × EMA FAST down shift: (0.98)) is at or below the previous pine EMA (round down (Source: (close), 8), EMA SLOW ws: (420)) and no long position is open and a short position is open.
- Closes the position when Long: (on) and not ((pine EMA (rsrc, EMA FAST ws: (20)) × EMA FAST down shift: (0.98)) is above pine EMA (round down (Source: (close), 8), EMA SLOW ws: (420)) and the previous (pine EMA (rsrc, EMA FAST ws: (20)) × EMA FAST down shift: (0.98)) is at or below the previous pine EMA (round down (Source: (close), 8), EMA SLOW ws: (420)) and no long position is open) and is stop loss long (on) and round down (Source: ….
- Closes the position when Long: (on) and not ((pine EMA (rsrc, EMA FAST ws: (20)) × EMA FAST down shift: (0.98)) is above pine EMA (round down (Source: (close), 8), EMA SLOW ws: (420)) and the previous (pine EMA (rsrc, EMA FAST ws: (20)) × EMA FAST down shift: (0.98)) is at or below the previous pine EMA (round down (Source: (close), 8), EMA SLOW ws: (420)) and no long position is open) and not (is stop loss long (on) and round down (Source: ….
- Closes the position when Short: (on) and (pine EMA (rsrc, EMA FAST ws: (30)) × EMA FAST up shift: (1.02)) is below pine EMA (round down (Source: (close), 8), EMA SLOW ws: (500)) and the previous (pine EMA (rsrc, EMA FAST ws: (30)) × EMA FAST up shift: (1.02)) is at or above the previous pine EMA (round down (Source: (close), 8), EMA SLOW ws: (500)) and no short position is open and a long position is open.
| Buys or sells | It can buy, and it can bet on falling prices. |
|---|---|
| Tools it calculates | price only |
| A second chart speed | No. It uses one chart speed only. |
| Only at certain hours | No. |
| Adding to a trade | It holds one trade at a time. |
| How much it trades | Each trade uses 70 percent of the account. |
| Cost the author assumed | The author assumed a trading cost of 0.05 percent per side. |
Default settings
The test used the defaults in the middle column. Nothing was turned to help a coin.
| Setting | Default | Group |
|---|---|---|
| Source: | close | |
| End Close: | off | |
| Lot proportional to free cash(%): | 80 | |
| Plot short | on | |
| Plot long | on | |
| Long: | on | EMA LONG Settings |
| EMA FAST ws: | 20 | EMA LONG Settings |
| EMA SLOW ws: | 420 | EMA LONG Settings |
| EMA FAST down shift: | 0.98 | EMA LONG Settings |
| is stop loss long | on | EMA LONG Settings |
| Stop Loss long(%): | 2 | EMA LONG Settings |
| Trailer | on | EMA LONG Settings |
| Enter(%): | 6 | EMA LONG Settings |
| Offset(%): | 3 | EMA LONG Settings |
| Close at signal | on | EMA LONG Settings |
| Short: | on | EMA SHORT Settings |
| EMA FAST ws: | 30 | EMA SHORT Settings |
| EMA SLOW ws: | 500 | EMA SHORT Settings |
| EMA FAST up shift: | 1.02 | EMA SHORT Settings |
| is stop loss short | on | EMA SHORT Settings |
| Stop Loss short(%): | 2 | EMA SHORT Settings |
| Trailer | on | EMA SHORT Settings |
| Enter(%): | 3 | EMA SHORT Settings |
| Offset(%): | 1 | EMA SHORT Settings |
and 1 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.
It was one of the over 600 rules in the screen, but every try errored or timed out, so it has no result. That is a problem running this script, not a finding about the market.
How to read the result
How to read the number
There is no finished result on this page. A try that did not finish is not a finding about the market.
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.
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 EMA SHIFT & PARALLEL [n_dot]
What is EMA SHIFT & PARALLEL [n_dot]?
EMA SHIFT & PARALLEL [n_dot] 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 EMA SHIFT & PARALLEL [n_dot] 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. It gets out when another set of checks agrees. That line is in the list below too.
Is EMA SHIFT & PARALLEL [n_dot] profitable in a backtest?
There is no result to judge. Every run of this script errored or timed out in the screen. That is a problem running the script, not a finding about the market.
Where can I find the EMA SHIFT & PARALLEL [n_dot] 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.
"EMA SHIFT & PARALLEL [n_dot]" 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.