Skip to main content
Skip to templates

Strategy templates

Ready-made strategies. Open one in the terminal and backtest it, no code needed.

12 templates

Templates

Recurring buy

Accumulation

Buys a fixed USD amount on a schedule, optionally only on dips.

Spot · 4h

How it works

Dollar-cost averaging: a recurring buy of the same USD amount every N hours. A dip filter skips the buys while price is near its recent high, and a take profit sells the whole position once it is up by that much. The average cost is drawn on the chart.

Suits: Coins you would hold for months anyway. It smooths the entry price over a decline and needs no timing.

Risk: It keeps buying all the way down a bear market, and with no take profit it never sells. On a coin that never recovers it ends with the largest position at the worst price. Buying stops when the cash runs out.

DCA deal

Accumulation

Opens a deal, adds safety orders as price moves against it, and closes at a take profit on the average.

Perp · 1h

How it works

The DCA bot's deal in a script. A base order opens the deal, and safety orders rest on a ladder against it, each one a set step further and, with the scales above 1, bigger than the last. Every safety fill pulls the average price toward the market, and the deal closes at the take profit measured from that average. The next deal opens at the following close, after the wait if one is set. An optional stop loss from the first price closes the deal and ends the run, and so does a liquidation. The take profit, the average price, the next safety order and the stop are drawn on the chart, with a wash between each pair.

Suits: Choppy markets that dip and recover often, where a small bounce off the average is enough to close each deal.

Risk: A move that runs past the whole ladder. Every safety order fills, the position is at its largest, and the take profit stays out of reach until price comes back. With no stop loss a deal can sit underwater for as long as the move lasts, and at leverage it can be liquidated.

Grid

Grid

Buys and sells at fixed levels around the price and earns each swing back.

Perp · 1h

How it works

A neutral grid: buy levels under the price and sell levels over it, a fixed share apart. Each level that fills is closed one level further on, so every swing that comes back books a small profit. When price breaks past the outer levels the grid closes what it holds and ends, and a new one starts around the new price.

Suits: Sideways markets that chop inside a band, with enough swing to cross several levels a day.

Risk: A trend. Price walks through the levels one way, the grid fills against it, and the break past the outer level closes the whole inventory at a loss. Restarting around the new price can repeat that in a steady trend.

Funding Carry

Carry

Shorts the perp and buys spot while the perp's funding is high.

Perp · 1h

How it works

A cash-and-carry trade. When the perp's funding is high, longs pay shorts. It sells the perp short and buys the same amount of the coin on spot, which cancels out the price move, so what is left is the funding. It opens once funding beats the entry level plus the fees spread over the max hold, and closes once funding stays under the exit level for the confirm bars. Max hold, take profit, or spot and perp drifting 2% apart close the pair and end the run. Run it on the BTC perp chart. For another coin, change BTC in the script's first lines. On any other chart it does not trade.

Suits: Bull markets with crowded longs, when funding stays high for weeks. Large coins whose spot and perp both trade on the chart's venue.

Risk: Fees on four fills eat thin funding. The short perp needs its own margin, so a fast rally can push it towards liquidation. Funding is read and booked only where Tracer has stored the venue's settlements, and the report says when it was not applied.

Best Funding Pair

Carry

Shorts the venue paying the most funding and buys the one paying the least.

Perp · 1h

How it works

A funding spread across venues, with the rules of the Funding carry bot. Each bar it ranks the listed perps by their funding rate, sells the one paying the most and buys the one paying the least at equal notional. The two legs cancel out the price move, so what is left is the gap between the rates. It opens once the gap beats the entry level plus the fees spread over the max hold. Both legs close when the gap stays under the exit level for the confirm bars, or when another pair pays clearly more, and the best pair opens again once it clears the entry level. Max hold and take profit close the pair and end the run. Run it on a perp chart of one of the listed markets.

Suits: The same large coin on venues whose funding drifts apart, such as an hourly venue during a squeeze against 8-hour venues.

Risk: Fees on four fills eat a thin gap, and rates often converge within hours of a spike. The legs sit on different venues, so each needs its own margin, and a fast move can push one leg towards liquidation while the other gains. Funding is read only where Tracer has stored the venue's settlements.

60/40 BTC/ETH

Portfolio

60% BTC and 40% ETH, rebalanced monthly. The hello world of crypto portfolios.

Spot · 1d

How it works

Holds BTC and ETH at fixed shares of equity, 60/40 unless you change them, and moves them back to those shares every month. It shows what rebalancing does to a two-coin holding compared with buying once and holding.

Suits: A simple long-term core holding. Run it on a BTC chart.

Risk: BTC and ETH move together, so it is barely diversified and falls with the market. When one coin trends against the other for a long time, rebalancing keeps adding to the loser.

Equal-Weight Basket

Portfolio

Holds a basket of coins at equal shares, rebalanced on a schedule.

Spot · 1d

How it works

The crypto version of an index fund starter. Pick up to 9 coins and it holds each at the same share of equity. On every rebalance date it sells what has grown past its share and buys what has fallen under, which is a built-in buy low, sell high.

Suits: A long-term holder who wants spread exposure without picking winners. Monthly or quarterly rebalancing.

Risk: It is fully long, so a market-wide crash takes the whole basket down together. Rebalancing keeps buying a coin that keeps falling. Every rebalance pays fees, so a short schedule on a large basket costs more than it earns.

Threshold Rebalance

Portfolio

One coin and cash at fixed shares, rebalanced only when they drift.

Spot · 1d

How it works

Holds one coin at a target share, half by default, and keeps the rest in cash. Instead of a calendar it rebalances only when the coin's share drifts past a threshold, so a quiet market costs nothing and a big move triggers a trade. Compare it with a calendar run to see fewer, larger rebalances.

Suits: A volatile coin you want steady exposure to, with the cash side as the cushion.

Risk: A long one-way trend. In a steady rally it keeps selling the winner, and in a steady fall it keeps buying the loser. The cash earns nothing in the tester.

Momentum Rotation

Portfolio

Holds the top few coins by recent return, rotated monthly.

Spot · 1d

How it works

A classic factor rotation. On each rebalance date it ranks the basket by return over the lookback and holds the top few at equal shares, selling the ones that dropped out. A coin that fell over the lookback is skipped, so in a falling market it moves to cash.

Suits: Broad baskets in trending markets, where leaders keep leading for weeks.

Risk: Sharp reversals. The leaders of the last month are often the first to crash, and it buys them at the top. In a choppy market it rotates in after each pump and out after each dump, paying fees each time.

Long-Short Basket

Portfolio

Ranks up to 20 perps by funding or return, buys the top and shorts the bottom.

Perp · 1d

How it works

A cross-coin factor test. On each rebalance date it scores every perp in the list, buys the top few and shorts the bottom few at equal shares, with as much short as long, so the market's own move mostly cancels out. By funding it owns the coins whose longs pay the least and shorts those whose longs pay the most, so it earns the gap. By return it holds the leaders against the laggards. The signal is one function in the script, so it can rank by anything a script can read. The Portfolio tab shows each coin's part, the turnover and what it held after each rebalance.

Suits: A broad list of liquid perps on one venue, where the ranking holds for longer than a rebalance period, such as a funding gap that stays open for weeks.

Risk: Each rebalance trades many legs, so fees add up fast on a short period. A short leg can be squeezed, and at 1x a coin that doubles takes its whole margin. Funding is read only where Tracer Terminal has stored the venue's settlements, and a coin that lists late is left out until it has a score.

Risk Parity

Portfolio

Weights a basket so every coin adds the same risk, rebalanced monthly.

Spot · 1d

How it works

Equal weights let the wildest coin dominate a basket's swings. Risk parity sizes each coin so that it adds the same share of the basket's variance, measured from the covariance of daily returns over the lookback. Calmer coins get bigger shares. Each coin's share of the risk is drawn on the chart.

Suits: Baskets that mix calm and wild coins, rebalanced monthly on daily bars.

Risk: The lookback is the past. When correlations jump in a crash every coin falls together and the balance of risk is gone. It is fully long, so it does not protect against a falling market, it only spreads the fall.

Minimum Variance

Portfolio

Solves for the lowest-risk weights of a basket, or a mean-variance trade-off.

Spot · 1d

How it works

On each rebalance date it estimates the covariance of the coins' returns over the lookback and solves for the long-only weights with the lowest variance. In mean-variance mode it also rewards recent average return, weighed against risk by the aversion setting. A small solver runs inside the script, no outside library.

Suits: Baskets of coins that do not all move together, when lower swings matter more than the top return.

Risk: It trusts the past covariance, which changes fast in crypto, and it piles into the calmest coin. Mean-variance mode chases recent winners and is very sensitive to the lookback.