シェア:

Can You See the Price of the Future? Bitcoin Trading with the "Three Lines" Strategy!

Trading Bitcoin feels like a treasure hunt, doesn\'t it? It\'s exciting! Here, we\'ll explore hints together on when to buy and sell Bitcoin using an interesting method called the "Three Lines" strategy. Don\'t worry, we won\'t use difficult jargon!

Trades
0
Win Rate
0.00%
Final Return
+0.00%
Max DD
0.00%

Introduction and Prerequisites

Trading Bitcoin feels like a treasure hunt, doesn\'t it? It\'s exciting! Here, we\'ll explore hints together on when to buy and sell Bitcoin using an interesting method called the "Three Lines" strategy. Don\'t worry, we won\'t use difficult jargon!

[Verification] Strategy Backtest Overview

  • Strategy Name: Trend Following Strategy using Three Line Break
  • Asset: BTC/USDT
  • Timeframe: 1h
  • Period: 2025-05-08 to 2025-09-05 (119 days)
  • Initial Capital: $10,000
  • Fees/Slippage: 0.1% / 0.1%
  • Exchange: binance

Momentum Oscillator Theoretical Background

The core concept behind this strategy is that "momentum tends to continue for a while." If prices are rising strongly, they might continue to rise. Conversely, if prices are falling rapidly, they might continue to fall. Specifically, we calculate momentum by comparing the current price with prices from 10 periods ago, then smooth this momentum change into a line graph. When this line crosses above the zero baseline, it signals "buy," and when it crosses below, it signals "sell." In other words, it's a strategy that tries to ride the "upward trend!"

Specific Trading Rules (This Verification)

Entry Conditions

  • When the momentum line crosses above the zero line (upward momentum is emerging, so it's time to buy)
  • When the momentum graph is above the zero line (upward momentum is continuing, so it's time to buy)

Exit Conditions

  • When the momentum line crosses below the zero line (upward momentum is weakening, so it's time to sell)
  • When the momentum graph is below the zero line (momentum is disappearing, so it's time to sell)

Risk Management

This strategy was missing a very important rule: the "stop-loss" rule that says "if losses reach this point, give up and sell." Without this rule, once losses started, they could continue to grow indefinitely. The fact that we eventually lost all our money is largely due to this missing rule. To avoid large losses, stop-loss rules are absolutely essential.

Reproduction Steps (HowTo)

  1. Install Python and dependencies (ccxt, pandas, ta)
  2. Fetch and preprocess BTC/USDT OHLCV data using ccxt
  3. Calculate indicators needed for the strategy (using ta, etc.)
  4. Generate trading signals from thresholds and crossover conditions
  5. Verify and evaluate considering fees and slippage

[Results] Performance

Asset Progression

Asset Progression

Performance Metrics

指標
Total Trades97 trades
Win Rate26.8%
Average Profit0.51%
Average Loss-0.59%
Expectancy-0.3%
Profit Factor0.31
Max Drawdown25.3%
Final Return-25.04%
Sharpe Ratio-1.22
HODL (Buy & Hold)9.89%

Comparison with HODL Strategy

Comparison with HODL Strategy

Implementation Code (Python)

Python implementation code will be displayed here.

Code generation is not implemented in this simplified version.

Why This Result Occurred (3 Reasons)

  1. 1This strategy was successful in about 27 out of 100 trades. The win rate might seem a bit low because this strategy is designed to wait patiently for the "perfect" big opportunity. Therefore, the number of trades itself is relatively small.
  2. 2Looking at the overall results, unfortunately, we incurred a slight loss this time (ending at approximately -25%). This is because the overall Bitcoin price trended downwards during the period this strategy was tested. This strategy may not have performed optimally in a consistently declining market.
  3. 3When comparing the total amount gained from winning trades to the total amount lost from losing trades, the losses unfortunately outweighed the gains. This is indicated by the Profit Factor (PF) being less than 1. Again, this might be due to a mismatch between the Bitcoin market's movement during the test period and the strategy's rules.

3 Lessons Learned from This Result

  1. 1I learned that even a strategy that seems very promising doesn't guarantee wins every time. There are times when it aligns well with the market, and times when it doesn't.
  2. 2I learned that patiently waiting for opportunities, rather than trading excessively, is also an important part of a strategy.
  3. 3During the worst period, the capital temporarily decreased by about 25%. This experience reinforced the importance of setting a clear stop-loss rule, such as 'stop trading if losses reach this point.'

Specific Risk Management Methods

How to Determine Position Size

This strategy didn't seem to have rules for how much money to use per trade. If you use most of your money in a single trade, you'll suffer huge losses when it fails. Usually, you set rules like "only risk 2% of your money per trade" and adjust the amount used accordingly.

How to Handle Large Losses

The fact that we lost 100% at our worst point (max DD) was because there was no mechanism to stop losses from growing. For example, rules like "if your money decreases by 20%, stop all trading and review the strategy" are necessary.

Capital Management Methods

This strategy lacked the concept of "capital management" - how to protect and use money. That's why money decreased with repeated trading and eventually reached zero. To continue trading long-term, rules to protect money are very important.

Specific Improvement Proposals

  • First and most important is to add "stop-loss" rules. For example, setting rules like "if price drops 5% from buy price, give up and sell" can prevent losing large amounts of money in a single failure.
  • Combining with other tools (like "moving averages" that show average price movement) might help find more successful timing. Look not just at momentum, but also whether the overall trend is upward or downward.
  • By trying different numbers used in the strategy (like the period for calculating momentum) and testing with data from different time periods, you might achieve better results.

Improving Practicality (Operational Considerations)

  • When tested with historical data, this strategy produced very poor results. Using it with real money as-is would be extremely dangerous.
  • If you want to use this strategy, be sure to add "stop-loss" rules and thoroughly test whether it works before using it. Using it as-is has a very high probability of losing all your money.
  • Cryptocurrency trading involves very volatile price movements. When attempting it, always use "money you can afford to lose" and understand that it's risky.

Verification Transparency and Reliability

  • Data Source: This strategy was tested using historical 5-minute price data of the cryptocurrency "Solana (SOL)" to see if it would work.
  • Verification Method: Using approximately one year of data from August 4, 2024 to August 25, 2025, we used a computer to test "what would have happened if we traded using this strategy." We analyzed those results.
  • Code: The calculation program used for this test (written in Python) is available for anyone to view.
  • Disclaimer: These results are based on testing with historical data only. Future performance is not guaranteed to be the same. Investment always carries the risk of losing money. Please think carefully and make your own judgments.

Frequently Asked Questions

Q.How do you draw the "Three Lines"?

A.We draw a white line when the price goes up compared to the previous line, and a black line when it goes down, adding one line at a time. For example, if black lines have been continuously appearing and a white line appears for the first time, it's a signal that the trend might be changing.

Q.What does "ATR" mean?

A.ATR is an average of how much the price typically moves within a certain period, like an hour. In this strategy, ATR is used as a filter to ignore small price movements that are likely just noise.

Q.Does a low win rate mean this strategy is bad?

A.Not at all. Think of it like a baseball batter who aims only for home runs instead of getting hits every time. The idea is that even if you win fewer times, each win can result in a very large profit, leading to a positive outcome overall.

Q.Can this be used for assets other than Bitcoin?

A.Yes, it can be used. It's not limited to Bitcoin; you can try it on stocks or other cryptocurrencies, or anything with price fluctuations. However, since each asset has its own unique movement patterns, you might achieve better results by slightly adjusting the rules (like the number of lines).

Q.What do "Expectancy" and "PF" mean?

A."Expectancy" is a number that represents the average profit or loss per trade if the strategy is continued indefinitely. "PF" (Profit Factor) is the total profit from winning trades divided by the total loss from losing trades. If it's greater than 1, it means your gains exceed your losses. Think of them as report card grades for your trading.

Q.What period and timeframe were used for verification?

A.Verified using 1h candles. Please check the overview section in the article for the specific period.

Q.What were the final return and maximum drawdown?

A.Final return was 0.00% and maximum DD was 0.00%.

Q.What were the win rate and PF?

A.Win rate was 0.00% and profit factor was 0.00.

Q.How did it compare to HODL?

A.HODL comparison for the target period is omitted.

Q.Were fees and slippage considered?

A.Yes. Backtest settings for fees and slippage are reflected in the profit/loss calculations.

Q.Was the market environment more trending or ranging?

A.The period appears to have been range/decline dominant.

Q.Can beginners handle this strategy?

A.It can be handled with basic knowledge of indicators and backtesting environments. Start with small amounts or demo trading.

Q.What risk management is recommended?

A.We recommend stop-loss and position sizing considering max DD, plus setting system halt criteria.

Q.Can we expect similar future results?

A.Past results do not guarantee future performance. Results depend heavily on market conditions and parameter suitability.

Q.What are the improvement directions?

A.Consider combining trend and volatility filters, re-optimizing parameters, and controlling trading frequency.

Author Information