Systematic Feature Discovery for Digital Asset Markets

insights.glassnodePubblicato 2025-11-10Pubblicato ultima volta 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.

Letture associate

The Tokenization of Gold: A Financial Revolution Driven by Regulation

The Tokenization of Gold: A Regulation-Driven Financial Revolution In early 2025, anticipation of US tariffs triggered a rush to withdraw physical gold from the Bank of England, exposing the friction in London's $1.2 trillion gold market. While daily trading of $737 billion occurs via ownership certificates without moving bullion, demand for physical metal revealed a pricing split based on deliverability. This article explores why the UK's Financial Conduct Authority (FCA) is developing rules for tokenized gold, focusing regulation squarely on the ledger system. London's gold market, cleared by four major banks, performs four key functions: physical storage, quality verification, ownership registration, and credit provision. Tokenization excels at the third—offering cheap, precise ownership records—but fundamentally challenges the fourth by potentially rendering banks' credit intermediation obsolete. Currently, most gold is held in "unallocated" accounts, where investors are unsecured creditors of banks, trading speed for credit risk. Tokenized gold combines the instant transfer of unallocated accounts with the direct ownership claim of allocated bullion, eliminating bank risk. The FCA is prioritizing its use as collateral, where speed is critical, unlocking this vast pool of currently illiquid assets for margin calls. This shift is partly driven by post-2008 banking regulations like Basel III's Net Stable Funding Ratio, which penalized banks for holding unallocated gold. The push now comes from the清算 banks themselves, like HSBC, which have launched proprietary tokenization systems. The crucial regulatory decision will be whether these tokens are allowed to circulate outside their creators' closed ecosystems. True adoption will be visible in LBMA data: high overall trading volume paired with a decline in settlements through the traditional central ledger, as transactions move to instant blockchain transfers. Ultimately, tokenization doesn't replace the physical vaults, security, and assayers but could elevate their importance, shifting their revenue to standardized service fees. The revolution lies not in moving the gold, but in reinventing how its ownership is recorded and transferred.

marsbit1 min fa

The Tokenization of Gold: A Financial Revolution Driven by Regulation

marsbit1 min fa

Yield Leverage and Liquidity Leverage: The STONKBROKER Mechanism is Very Suitable for the RWA Scenario

The article argues that the STONKBROKER mechanism is highly suitable for Real-World Asset (RWA) tokenization scenarios due to its two key leverages: **Profit Leverage** and **Liquidity Leverage**. **Profit Leverage:** Traditional RWA models simply tie tokens to real-world asset yields. STONKBROKER's model is more engaging by allowing NFT holders to earn not only the underlying real-world cash flows but also additional yields generated from the on-chain system's own operations and transaction activity (like fees and slippage). This creates a dual income stream. **Liquidity Leverage:** Standard RWA asset bundles often suffer from poor liquidity. STONKBROKER's mechanism, which allows fixed-ratio swapping between NFTs and a platform's fungible token (and vice versa), solves this. It provides real-time market pricing and flexible exit options for each "RWA asset" NFT by unifying NFT liquidity with ERC-20 token liquidity via an AMM pool. This enhances capital efficiency and attracts more trading activity. The article further speculates on applying this model to broader RWAs (e.g., real estate, bonds). The core idea is to create a more dynamic, liquid, and profitable ecosystem where ordinary users can participate, combining real-world yields with the speculative and transactional energy of a crypto-native system. The author mentions being inspired by the launch of a project called @TheCardWall, which tokenizes high-grade physical trading cards.

marsbit22 min fa

Yield Leverage and Liquidity Leverage: The STONKBROKER Mechanism is Very Suitable for the RWA Scenario

marsbit22 min fa

Deciphering TapeOut: A Child Built a CPU On-Chain

**Title: Understanding TapeOut: A Kid Built a CPU On-Chain** **Summary:** The article explores a remarkable experiment where a young developer named Blonskr has used blockchain technology to build a functional, on-chain CPU. Named "Behemoth," this CPU is based on the 1971 Intel 4004 processor specification. It runs on the BNB Chain, uses block production as its clock (running at a glacial 2.22 Hz), and is perhaps the slowest CPU in existence, yet it represents a novel and intriguing concept in the on-chain space. The core concept is the TapeOut protocol, named after the final "tape out" stage in semiconductor manufacturing. It treats the blockchain as a silicon wafer, with tokens representing fundamental logic components. The protocol's atomic unit is an ERC-1155 token representing a single NAND gate, the fundamental building block of digital logic. Users can visually design circuits on a "canvas," connecting these logic tokens. Once a design is finalized, the underlying tokens are burned, and an ERC-721 NFT representing the permanent, immutable circuit is minted. Blonskr used 2,300 such tokenized NAND gates to construct the Behemoth CPU. Key features of this and any TapeOut circuit include **permanent operation** (running as long as the chain exists), **free, permissionless evaluation** (anyone can query it without gas), and **safe composability** (circuits cannot call external contracts or modify state, making them inherently safe to use). This enables a new form of open, collaborative hardware design, where anyone can build upon and integrate components created by others. While highly niche, TapeOut reimagines the foundations of computation using blockchain's properties of permanence and openness. It pushes the boundaries of what can be built on-chain, potentially enabling future applications like custom mining circuits or decentralized, specialized processors. The experiment demonstrates an exciting combination of extreme technical vision and creative curiosity.

marsbit56 min fa

Deciphering TapeOut: A Child Built a CPU On-Chain

marsbit56 min fa

Novig Sues Wisconsin as Sports Prediction Market Dispute Heats Up

Novig, a sports event prediction market operator, has filed a lawsuit against Wisconsin's attorney general. The legal dispute centers on whether prediction markets fall under federal derivatives regulations or state gambling laws. The lawsuit, filed in a U.S. district court, seeks a declaratory judgment after Novig began offering event contracts to Wisconsin residents. This case is part of a broader conflict. In April, Wisconsin sued other prediction market platforms like Kalshi and Polymarket, alleging their sports-related contracts violate state gambling laws. Novig argues its contracts are "swaps" regulated exclusively by the federal Commodity Futures Trading Commission (CFTC), under the Commodity Exchange Act. Wisconsin contends they are sports betting. Federal courts have issued conflicting rulings on similar cases, creating legal uncertainty. The outcome is significant as prediction markets are a fast-growing sector, with trading volume reaching $9.5 billion on a single day in August. These markets are also increasingly intertwined with cryptocurrency infrastructure. Simultaneously, Novig is pursuing a nationwide legal strategy, having filed similar lawsuits in four other states. The company also recently secured a marketing partnership with the New York Mets, marking the first such deal with an MLB team. The Wisconsin case's resolution will influence whether prediction markets can operate as national financial products or remain constrained by individual state laws.

cryptonews.ru1 h fa

Novig Sues Wisconsin as Sports Prediction Market Dispute Heats Up

cryptonews.ru1 h fa

Держатели XRP могут торговать опционами на платформе Derive, используя FXRP в качестве залога

XRP holders can now trade options on the Derive platform using FXRP as collateral, as announced by Flare on August 12. This integration allows users to open positions from self-custody wallets while the underlying XRP backing the FXRP remains on the XRP Ledger. According to DeFi analyst Will Procheska, this provides XRP's dedicated holder base with a permissionless options market for generating yield or hedging. Derive's platform combines protocol-level settlements with an order book managed by Derive Trading Co., enabling users to retain asset control while professional market-makers provide liquidity. XRP options on Derive are cash-settled in USDC, so profits or obligations adjust the trader's USDC balance without transferring XRP or FXRP. The platform's portfolio margin system assesses overall account risk but may still trigger liquidations if margin levels fall below requirements. The launch expands Flare's XRPFi ecosystem. FXRP, introduced via the FAssets system in September 2025, creates an on-chain representation of XRP for use in smart contracts. It has since been integrated into spot trading and, more recently, permissionless lending markets on Morpho. This addition of options on Derive offers XRP holders hedging and premium-earning capabilities comparable to other major assets. While regulated XRP options debuted on CME Group in October 2025, Derive provides a decentralized alternative with USDC settlement and direct wallet access. The platform also supports perpetual futures, offering further trading strategies. Flare and Derive are exploring automated "strategy vaults" to simplify yield-generating options approaches for users.

cryptonews.ru1 h fa

Держатели XRP могут торговать опционами на платформе Derive, используя FXRP в качестве залога

cryptonews.ru1 h fa

Trading

Spot
活动图片