5 Free Pine Script Strategies, 6.5 Years of Bitcoin, Tested
Part of the guide: Strategy tests
In short
Of five free Pine Script strategies backtested on BTC/USDT 4h from April 2020 to October 2026 with fees, two made no profit with any setting, and none clearly beat holding the same share of the account in Bitcoin. The top setting of Double Supertrend made +1,101% (buy & hold +1,055%), but only +30.9% without its five best positions.
Free Pine Script strategies are easy to find: TradingView’s public library and GitHub hold thousands of them, and many come with an equity curve that climbs from the bottom left to the top right. The question a trader has to answer before putting money on one is not “did it make money in the backtest?” but “was that skill or luck?”
So we took five open-source strategies from one author, tested every one over six and a half years of Bitcoin with fees and slippage, and ran the same checks on each top result. The short version: two of the five made no profit with any setting, none of the five beat holding Bitcoin with the same share of the account, and for four of them the walk-forward found no clear difference from picking a setting at random (for the fifth it gives no verdict).
The test setup
- Strategies: five open-source Pine Script strategies by Alorse, published under the Mozilla Public License 2.0. Each one has its own page in our strategy library with the code and what it does.
- Market and period: BTC/USDT on Binance, 4h candles, 4 April 2020 to 30 October 2026 – about 6.5 years, including the 2021 top, the 2022 crash and the 2024 rally. Buy & hold over the whole period: +1,055%.
- Costs: 0.1% commission per order and 2 ticks of slippage.
- Sizing: as set in each script. Double Supertrend and Omar MMR put 100% of the account into every trade, Supertrend + RSI and RSI + EMA 20%, Tendency EMA + RSI 10%. A strategy that invests a fifth of the account is compared fairly with holding a fifth of the account in Bitcoin: +211% over the period (+106% for a tenth).
- Grid: 240 to 450 settings per strategy – the input ranges of each library page. A setting is one combination of input values.
- Checks: a hold-out (the setting picked on the first 70% of the period, measured on the last 30%), the result without the five most profitable positions, and a walk-forward (every 6 months, pick the setting with the top return-to-drawdown ratio over the previous 24 months and trade it for the next 6). The methodology page explains each method and its limits.
The results at a glance
| Strategy | Share per trade | Settings | Settings with a profit | Top setting | Hold-out pick: first 70% → last 30% | Walk-forward | Buy & hold, same months |
|---|---|---|---|---|---|---|---|
| Double Supertrend | 100% | 240 | 240 | +1,101% | +1,198% → −12.9% (rank 227 of 240) | +148% | +106% |
| Supertrend + RSI | 20% | 240 | 176 | +34.9% | +49.8% → −10.0% (rank 230 of 240) | −4.6% | +106% |
| Tendency EMA + RSI | 10% | 324 | 197 | +7.3% | +9.1% → −1.8% (rank 298 of 324) | +4.4% (no verdict) | +170% |
| RSI + EMA | 20% | 450 | 0 | −5.3% | −5.9% → +0.6% (rank 121 of 450) | −12.9% | +292% |
| Omar MMR | 100% | 243 | 0 | −16.7% | −4.2% → −19.2% (rank 176 of 243) | −21.3% | +132% |
Double Supertrend: beats buy & hold – and still a warning sign
Double Supertrend is the strategy most traders would stop at. All 240 settings made a profit, and the top one turned 10,000 USD into about 120,000 USD (+1,101%) – slightly more than simply holding Bitcoin (+1,055%), with 92 trades.
The hold-out tells a different story. The setting that ranked first on the first 70% of the period (+1,198% until November 2024) lost 12.9% on the last 30%, and ranked 227th of 240 there. Bitcoin itself was roughly flat over those 23.7 months (+1.5%), and the median setting lost 3.0%. The pick that looked strongest in hindsight was one of the weakest on data it was not tuned on.
Two more numbers point the same way. Without its five most profitable positions, the top setting’s +1,101% shrinks to +30.9% – most of the profit came from a handful of trades. And its largest drawdown was 44%: a trader running it with real money would have watched almost half of the account disappear on the way.
The walk-forward looks better at first: re-picking every 6 months made +148% against +106% for buy & hold over the same months, with 7 of 9 windows in profit. But the median setting made +117% over those months too, and against 20,000 random picks the walk-forward ended above only 67% of them. That is no clear difference from choosing a setting at random – with only 9 windows, the test has little power either way.
Supertrend + RSI and Tendency EMA + RSI: small profits that fade
Supertrend + RSI made a profit with 176 of 240 settings; the top one earned +34.9% with a drawdown of 10% – with a fifth of the account per trade, where holding a fifth of the account in Bitcoin made +211%. Its hold-out pick (+49.8% on the first 70%) lost 10% afterwards and ranked 230th of 240 on the last part. Without its five best positions, +3.0% are left, and the walk-forward ended at −4.6% while buy & hold made +106% over the same months.
Tendency EMA + RSI puts only a tenth of the account into each trade – a top result of +7.3% with an 8% drawdown and a 76% win rate, where holding a tenth of the account in Bitcoin made +106%. Its hold-out pick went from +9.1% to −1.8% and ranked 298th of 324. The walk-forward made +4.4% with 7 of 8 windows in profit, but PineTester gives no walk-forward verdict here: the script reads the account state, so picking from one continuous run is no fair stand-in for re-optimising each window. Buy & hold made +170% over the same months.
RSI + EMA and Omar MMR: no setting made a profit
With fees and slippage included, not one of the 450 settings of RSI + EMA and not one of the 243 settings of Omar MMR ended in profit over the 6.5 years. The top settings lost 5.3% and 16.7%. Omar MMR puts the whole account into each of its 126 trades, and its fees added up to more than its loss: without costs, the same backtest would have looked like a small profit. RSI + EMA lost even before fees. It also shorts on a spot market, which a real account can only do with borrowed coins and their costs.
This is the most useful result of the whole test, even if it is the least exciting one: finding it out costs one backtest, not a year of live trading.
What this means if you use free strategies
- Compare with buy & hold first – at the same share of the account. On Bitcoin since 2020, none of the five did clearly better than holding the same share in Bitcoin; the one that did slightly better took a 44% drawdown.
- Test with fees. For Omar MMR, the fees were larger than the loss – a backtest without costs would have shown a small profit.
- Do not trust the top of the list. In all three strategies with profitable settings, the setting picked on the first 70% of the data landed near the bottom on the last 30%.
- Look at what is left without the best trades. +1,101% that becomes +31% without five positions rests on a few lucky trades, not on a repeatable edge.
- Ask whether picking by past results beats picking at random. That is what the walk-forward measures; four of the five showed no clear difference, and the fifth got no verdict.
None of this says the strategies are useless or that their author did anything wrong – they are honest, readable code that anyone can study and change. It says that a free strategy with its default inputs, or with the inputs that look best in a backtest, is a starting point for testing, not a trading plan. The same checks apply to your own scripts.
Each of these five strategies is one click away in our library, and your first backtest is free. PineTester backtests the input ranges of your Pine Script v6 strategy on crypto spot data – up to your plan’s limit per backtest, a larger grid as a random sample – and every verdict on the results page names the documented method it rests on. Results can differ from TradingView’s Strategy Tester.
Test a strategy from the library for freeSimulated results on historical market data. Past performance is not indicative of future results. Not investment advice.