Systematic Feature Discovery for Digital Asset Markets

insights.glassnodeXuất bản vào 2025-11-10Cập nhật gần nhất vào 2025-11-10

At Glassnode, we monitor blockchain activity through hundreds of on-chain metrics, many of which are employed as features in machine learning models for trading. A key challenge arises from the vast feature space: each metric can be transformed via countless indicators and combined in virtually infinite ways. In this case study, we introduce a bottom-up feature discovery framework designed to systematically navigate this complexity and identify potentially non-trivial, high-value indicator combinations.

Executive Summary

  • We present a structured bottom-up methodology for exploring the combinatorial space of on-chain trading indicators, demonstrating an alternative to manual top-down feature engineering.
  • Applied to a specific case study of Bitcoin uptrend detection using only 2-feature models, the exploration revealed unexpected patterns: optimal context windows of 800-1,200 days rather than conventional shorter periods.
  • The top-performing metric combinations included realized market cap and user retention metrics, though these represent just the surface of potential indicators.
  • This analysis serves as a starting point for practitioners, demonstrating how structured exploration can complement traditional approaches.

The Combinatorial Challenge

To understand why structured exploration matters, consider the scale of the challenge facing analysts today. Modern financial markets generate data at an enormous scale. The cryptocurrency ecosystem presents a particularly rich example: Blockchains settle billions of transactions every day with an unprecedented transparency. Glassnode tracks hundreds of fundamental indicators across different assets, timeframes, and network segments. Each metric can be transformed using dozens of technical indicators, each with their own parameter ranges. When combined into multi-feature models, the number of possible configurations quickly explodes into an intractable search space, known as the "curse of dimensionality." This makes exhaustive exploration impossible.

Top-down vs. Bottom-up Feature Engineering

Traditional top-down feature engineering relies on domain experts who select metrics based on economic theory, market understanding, and historical precedent. Features are chosen for interpretability and theoretical soundness, efficiently leveraging expertise but naturally focusing on theoretically motivated combinations.

In contrast, bottom-up exploration samples the feature space without predetermined preferences, potentially uncovering patterns intuition might miss. Rather than starting with hypotheses about which metrics should work, this approach lets the data reveal unexpected combinations.

Systematic Discovery Methodology

Given this computational impossibility, we need a structured approach that can sample a representative subset of the feature space while maintaining statistical rigor. Our approach probes this universe through rigorous exploration and evaluation.

We generate feature combinations by sampling from the full space of available metrics, transformations, and parameter ranges, ensuring broad coverage and preventing bias from limiting the search to familiar patterns. Each combination is evaluated using simple, low-complexity machine learning models (decision trees with limited depth) to identify genuine patterns rather than overfitted noise, keeping the focus on discovering robust indicators more likely to generalize beyond the training data.

Every feature combination undergoes testing across multiple time-based folds, with performance consistency across folds being as important as overall performance, helping identify features that work reliably across different market conditions. The generated dataset of features and their respective performances enables post-hoc analysis to understand not just which combinations perform well, but under what circumstances.

Case Study Setup: Bitcoin Trend Detection

To demonstrate this methodology in practice, we apply it to a specific and market-relevant objective: Bitcoin uptrend detection. Our implementation employs a three-phase sampling strategy to methodically explore the feature space for uptrend identification. This way, we balance computational feasibility with comprehensive coverage of potential indicator combinations.

Investment Objective and Labels

The focus lies on identifying optimal periods for Bitcoin long exposure during uptrending market phases. Our labeling employs hierarchical trend segmentation that recursively identifies trend cycles by detecting local peaks and preceding troughs. This captures what practitioners might call "mini bull runs" - periods of sustained upward momentum within larger market cycles.

The algorithm applies minimum duration thresholds to filter noise, resulting in binary classification where Label 1 indicates uptrending periods and Label 0 marks downtrending or sideways markets. That means, in periods of "Label 1" we want to be in the market, whereas during "Label 0" time ranges the model should predict to be "out of the market." Note that this specific labeling choice fundamentally shapes all downstream results, different objectives would yield different findings.

Figure 1: Hierarchical trend segmentation applied to Bitcoin. Green indicates uptrending periods (Label 1), gray shows downtrending/sideways markets (Label 0).

Evaluation Framework

Having established our trend definition framework, we need an evaluation approach that increases the chance of findings that generalize. We employ time-based cross-validation simulating different market structures by training on all data up to each test year, with individual years (2017-2025) serving as test folds. Feature selection is based on the 2017-2023 period, while 2024-2025 is reserved for out-of-sample validation.

Performance is measured using net returns after transaction costs, relative to a buy-and-hold strategy. This metric is chosen for illustration purposes - the algorithmic approach can equally optimize for risk-adjusted measures like Sharpe or Sortino ratios, classical ML metrics such as accuracy or F-beta scores, or implementation-focused criteria like signal frequency and drawdown characteristics. Alternative optimization targets will surface different optimal feature combinations, and the choice of the performance indicator fundamentally shapes which relationships the exploration discovers.

Feature Space Configuration

With our evaluation framework defined, we face the practical challenge of making our vast search space computationally tractable. For interpretability, we configure a constrained search space using 1,600 Bitcoin metrics (including sub-traces), limiting transformations to Z-Score and RSI only, allowing context windows up to 1,536 days, and restricting models to exactly 2 features. Even with these constraints, the theoretical search space reaches:

(1,600 metrics × 2 transformations × 1,536 context windows)² = 24 trillion combinations

This computational challenge necessitates methodical dimensionality reduction. We achieve this using a three-phase approach, as described below.

Three-Phase Exploration Process

Phase 1: Single-Feature Screening

We evaluate 153,600 single-feature combinations, sampling across metrics, transformations, and context windows. Rather than seeking definitive winners, we look for metrics that show potential.

Top 10 Individual Metrics:

  1. MVRV by Age: 1 month to 3 months
  2. MoM Activity Retention Supply: churned supply
  3. Market Cap by Profit and Loss: -10% to 0%
  4. Realized Cap by Profit and Loss: -10% to 0%
  5. SOPR by Age: 1 month to 3 months
  6. Realized Cap by Wallet Size: above 100k
  7. Spent Volume in Loss by Age: 1 month to 3 months
  8. Cost Basis Distribution Quantiles: 91%
  9. Supply Held by Entities with Balance: above 100k
  10. Short Term Holder NUPL: less than 155 days

These metrics span valuation ratios, holder behavior, and profit/loss distributions - a diverse and reasonable set that evaluation identified without any preselection.

Figure 2: Performance heatmap of top 50 single features. Rows show metrics, columns represent context window buckets (0-1,535 days). Color intensity indicates median annual performance for 2017-2023.

Results for this first phase are shown in Fig. 2. For example, the metric "MVRV by Age: 1 month to 3 months" in combination with a context window of 64-95 days resulted in an average performance of 1.152 relative to a simple Buy-and-Hold strategy. Note though, that these findings constitute only the first step in our process and by themselves are most likely not related to any robust trading signals.

Phase 2: Metric Pair Discovery

Extending this analysis, we use the top 50 metrics from Phase 1 to sample 100,000 evaluations from approximately 23 million possible combinations. The goal is identifying potentially synergistic pairs, not definitive optimization.

Figure 3: Pairwise performance matrix for top 50 metrics. Cell color indicates combination performance.

Initial findings suggest certain combinations warrant deeper investigation:

  • Realized Cap metrics show consistent effectiveness
  • Activity Retention metrics appear complementary to valuation indicators
  • Some pairs exhibit stronger combined results than individual components

Phase 3: Parameter Optimization

While Phase 2 reveals compelling metric combinations, we have yet to optimize their historical context windows. For the most notable metric pairs, Realized Cap and Activity Retention, identified in our pairwise analysis, we conduct focused parameter searches across context windows. What timeframe would you expect optimal for Bitcoin trend detection - days, weeks, months?

Simulation results are summarized in Fig. 5. Interestingly, an unexpected relationship emerges: optimal windows range from 800-1,200 days, substantially longer than conventional technical analysis periods.

Figure 5: Context window optimization showing performance across different window combinations for selected metric pairs.

Our findings demand explanation, as they contradict conventional wisdom in technical analysis. While Bitcoin's heartbeat often guides the way, we discovered Bitcoin's slow breathing patterns over 3+ years seem to map the real path for this objective. One key factor is our label construction: the hierarchical trend segmentation identifies uptrend segments that typically span multiple weeks or months. Longer context windows may better capture the gradual build-up and establishment of these extended trend periods, while shorter windows might react to noise within the broader trend structure. The 800-1,200 day windows could be detecting the slower-moving underlying conditions that precede and sustain the extensive uptrend phases.

However, we emphasize these are observations from a limited case study specific to our labeling methodology. Modified label definitions targeting shorter-term movements will favor different context windows.

Temporal Performance Analysis

Our exploration revealed compelling combinations, but a crucial question remains: how stable are these relationships over time? To address this, we examine how different feature architectures behave across time periods. We categorize combinations by their metric types:

  • Realized Cap × Realized Cap: Both metrics based on on-chain cost basis
  • Activity × Realized Cap: Mixed behavioral and valuation indicators
  • Activity × Activity: Both metrics based on user behavior patterns

Figure 10: Architecture performance trajectories across test years (2018-2023). Each cluster on the x-axis represents a unique combination of metric pair and context window bucket, with bars showing annual performance.

Key observations from the in-sample period:

  • Realized cap combinations show lower variance but moderate returns
  • Mixed architectures balance consistency with effectiveness
  • Activity-only pairs exhibit high variance with period-specific outcomes

Importantly, all architectures show declining results over time during 2017-2023, suggesting increasing market efficiency or changing market dynamics.

Out-of-Sample Results: A Reality Check

While live trading remains the ultimate test, evaluating algorithmic discoveries on previously excluded data provides insight into potential real-world effectiveness. The 2024-2025 validation period provides this crucial perspective on our findings:

Figure 7: Out-of-sample performance (2024-2025). Same architecture categories as training period.

The out-of-sample period reveals several phenomena: some previously strong performers like pure activity retention blends show reduced effectiveness while certain realized cap combinations maintain consistent results. These shifts in outcomes raise fundamental questions about market evolution. Why do effectiveness characteristics change? Multiple explanations are possible, such as genuine changes in ecosystem structure or participant behavior, the impact of new market infrastructure such as ETFs and increased institutional adoption, or something else entirely.

These results underscore that structured exploration is a starting point for investigation, not an endpoint for trading system development.

Practical Implications and Limitations

What This Analysis Shows

Our structured exploration reveals non-obvious relationships that wouldn't emerge from traditional analysis, particularly the preference for long context windows of 800-1,200 days. Even with our constrained search using only 2 features from a limited set of metrics, we uncover behaviors worth investigating further, demonstrating that valuable insights can emerge from structured sampling even with strict limitations. The approach shows how bottom-up exploration and top-down feature engineering can complement each other, with computational discovery informing where to focus domain expertise. Most importantly, this framework represents a scalable methodology that can be applied to different investment objectives, various assets, and alternative constraints, providing practitioners with a tool for exploring their specific use cases.

What This Analysis Doesn't Show

However, acknowledging these capabilities requires equal attention to constraints. The analysis does not present a complete trading strategy - two features using simple decision trees cannot capture the full complexity of cryptocurrency markets. The results are specific to our particular choice of labels, metrics, and time period, and should not be interpreted as universal truths about market behavior. Since we sampled only a tiny fraction of even our constrained feature space, optimal solutions or the best possible features remain elusive. Furthermore, this is fundamentally a historical analysis where past relationships offer no guarantee of future effectiveness, reinforcing the need for continuous validation rather than static implementation.

Future Research Directions

These constraints point toward several compelling avenues for future work. With thousands of available individual traces and unlimited transformation possibilities, the vast unexplored configuration space holds substantial potential for discovering valuable indicators. The methodology can be scaled to different prediction targets such as volatility forecasting, drawdown risk assessment, and regime change detection, as well as alternative time horizons including intraday, weekly, and monthly analysis periods. Multi-asset combinations across different cryptocurrencies can help identify universal versus asset-specific behaviors, providing deeper insights into crypto markets generally. Additionally, exploring more complex feature interactions beyond simple pairs is essential for building robust predictive models, since more diverse inputs provide both, enhanced individual predictive indicators and allow to capture interactions between features that single metrics cannot reveal.

The tooling we developed enables us to explore different hypotheses with relatively low effort, opening possibilities for customized research tailored to specific objectives and constraints.

Conclusion

The empirical findings, while specific to our case study, illuminate broader questions about computational discovery in financial markets and point toward both immediate applications and future research directions. Our work demonstrates how structured bottom-up exploration can complement traditional top-down approaches, for instance, by revealing the unexpected effectiveness of extended context windows. While our analysis only scratched the surface of endless possible combinations, it illustrates a methodology that practitioners can adapt to their specific needs.

The out-of-sample results serve as a crucial reminder: cryptocurrency markets remain challenging environments requiring not just discovery but ongoing adaptation. For Glassnode clients and algorithmic traders, this framework offers a starting point where the methodology itself - unbiased by preconceptions - helps navigate the significant complexity of blockchain data.

As cryptocurrency markets evolve, so must analytical approaches. Computational exploration doesn't replace expertise but augments it, helping uncover relationships hidden in plain sight.


Disclaimer: This report is for informational and educational purposes only. The analysis represents a limited case study with significant constraints and should not be interpreted as investment advice or definitive trading signals. Past performance patterns do not guarantee future results. Always conduct thorough due diligence and consider multiple factors before making investment decisions.

Nội dung Liên quan

Giải Mã TapeOut: Một Đứa Trẻ Đã Tạo Ra Một CPU Trên Chuỗi

TapeOut, một giao thức thử nghiệm trên BNB Chain, cho phép người dùng "đúc" một bộ vi xử lý vật lý thực sự trên blockchain. Lõi của giao thức này là việc biến các cổng logic NAND cơ bản thành token ERC-1155. Người dùng có thể kết nối các "transistor token" này trong một hệ thống canvas trình duyệt để tạo ra các mạch, sau đó "xuất bản" chúng thành NFT mạch ERC-721 bất biến. Nhà phát triển Blonskr đã sử dụng 2300 transistor để tạo ra Behemoth, một CPU 4-bit mô phỏng Intel 4004 chạy trên BNB Chain. CPU này hoạt động vĩnh viễn, được đồng bộ hóa bởi thời gian tạo khối (tần số ~2.22 Hz). Mọi người đều có thể truy vấn nó miễn phí. Tính năng đáng chú ý là khả năng kết hợp an toàn: các mạch trên chain không có quyền gọi hay trạng thái có thể ghi, chỉ trả về kết quả tính toán, loại bỏ rủi ro bảo mật. Giao thức mở ra một hướng đi mới: thiết kế mạch chuyên dụng để "đào" coin, biến thợ đào từ người tiêu thụ năng lượng thành nhà thiết kế logic. Mặc dù rất kỹ thuật và chuyên sâu, TapeOut đặt ra một câu trả lời độc đáo cho câu hỏi "blockchain có thể chứa gì?", bằng cách tái tạo nền tảng tính toán vật lý trên một môi trường phi tập trung, mở và có thể kết hợp vô hạn.

marsbit56 phút trước

Giải Mã TapeOut: Một Đứa Trẻ Đã Tạo Ra Một CPU Trên Chuỗi

marsbit56 phút trước

Chủ Sở Hữu XRP Có Thể Giao Dịch Quyền Chọn Trên Nền Tảng Derive Bằng Cách Sử Dụng FXRP Làm Tài Sản Thế Chấp

Flare thông báo từ ngày 12/8, các nhà nắm giữ XRP giờ đây có thể sử dụng FXRP (một phiên bản XRP được đảm bảo trên mạng lưới Flare) làm tài sản thế chấp để giao dịch quyền chọn (options), hợp đồng tương lai vĩnh viễn (perpetuals) và giao dịch giao ngay (spot) trên nền tảng Derive. FXRP cho phép người dùng mở các vị thế trực tiếp từ ví tự lưu trữ trong khi XRP cơ bản vẫn được giữ trên XRP Ledger. Theo thông báo, việc tích hợp này đáp ứng nhu cầu của cộng đồng nắm giữ XRP lâu dài về một thị trường quyền chọn không cần cấp phép để tạo lợi nhuận hoặc phòng ngừa rủi ro. Derive kết hợp tính toán giao thức với sổ lệnh do Derive Trading Co. quản lý, cho phép người dùng kiểm soát tài sản trong khi các nhà tạo lịch sự chuyên nghiệp cung cấp thanh khoản. Các hợp đồng quyền chọn XRP trên Derive được thanh toán bằng USDC (tiền mặt), và lợi nhuận/thua lỗ khi đáo hạn sẽ được phản ánh trên số dư USDC của nhà giao dịch. Hệ thống ký quỹ danh mục (Portfolio Margin V2) được sử dụng để đánh giá rủi ro và giảm yêu cầu ký quỹ cho các vị thế phòng ngừa lẫn nhau. Tuy nhiên, các vị thế không đủ ký quỹ vẫn có thể bị thanh lý. FXRP là một phần trong hệ sinh thái XRPFi mở rộng của Flare, cho phép XRP tương tác với hợp đồng thông minh. Ngoài Derive, FXRP cũng đã được tích hợp vào các nền tảng giao ngay và thị trường cho vay phi tập trung (như Morpho), mở rộng các trường hợp sử dụng. Trước đó, quyền chọn XRP cũng đã xuất hiện trên thị trường phái sinh được quy định như CME Group, nhưng Derive nhắm đến người dùng phi tập trung với quy trình thanh toán bằng USDC và truy cập trực tiếp qua ví. Bên cạnh quyền chọn, nền tảng cũng cung cấp hợp đồng tương lai vĩnh viễn.

cryptonews.ru1 giờ trước

Chủ Sở Hữu XRP Có Thể Giao Dịch Quyền Chọn Trên Nền Tảng Derive Bằng Cách Sử Dụng FXRP Làm Tài Sản Thế Chấp

cryptonews.ru1 giờ trước

Nhà giao dịch đầu tư 120 USD vào memecoin NiuLai và thu về lợi nhuận 205.000 USD

Một nhà giao dịch tiền điện tử đã biến khoản đầu tư 120 USD thành 205.000 USD nhờ vào đồng memecoin NiuLai trên chuỗi BNB. Ông đã mua 19,1 triệu token NiuLai chỉ với 120 USD trước khi giá token tăng mạnh. Nhà đầu tư may mắn này đã bán 9,1 triệu token để thu về 25.900 USD, trong khi vẫn giữ lại 10 triệu token trị giá khoảng 180.200 USD, theo dữ liệu từ Lookonchain. Tổng lợi nhuận đã thực hiện và chưa thực hiện là 205.800 USD, tương đương lợi nhuận gấp 822 lần số vốn ban đầu. Dữ liệu chuỗi khối cho thấy nhà giao dịch đã mở vị thế khi vốn hóa thị trường của token chỉ là 6.270 USD. Sự quan tâm đến tài sản này sau đó đã đẩy vốn hóa thị trường của NiuLai lên hàng chục triệu USD. NiuLai, có nghĩa là "Con bò đang tới", là một memecoin lấy cảm hứng từ một bộ phim hoạt hình Trung Quốc cùng tên. Bộ phim ngân sách thấp ban đầu ít được chú ý nhưng sau đó trở nên viral trên các nền tảng mạng xã hội Trung Quốc, tạo ra nhiều meme và thu hút sự chú ý. Cơn sốt trên mạng nhanh chóng lan sang thị trường tiền điện tử, dẫn đến sự ra mắt của tài sản đầu cơ này. Những người mua NiuLai đầu tiên đã thu được lợi nhuận khổng lồ khi vốn hóa thị trường tăng từ vài nghìn USD lên 18-20 triệu USD, nhờ hoạt động giao dịch sôi nổi trên PancakeSwap và các sàn giao dịch phi tập trung khác. Vốn hóa thị trường từng đạt đỉnh 29 triệu USD trước khi giảm mạnh.

cryptonews.ru1 giờ trước

Nhà giao dịch đầu tư 120 USD vào memecoin NiuLai và thu về lợi nhuận 205.000 USD

cryptonews.ru1 giờ trước

Giao dịch

Giao ngay
活动图片