TradeTruth: A Leakage-Aware Walk-Forward Machine Learning Framework to Analyse Future Price Direction in Stocks and Cryptocurrencies
Year: 2026
Type: article
Abstract: This paper provides an overview of how accuracy is often cited in papers discussing the predictive power of machine learning in financial markets. However, many do not mention whether this accuracy is significantly better than what could be achieved using a naive approach, and whether the accuracy would be profitable once transaction costs are considered. In this paper, we present a novel validation-based framework, called TradeTruth, which uses a single pipeline to facilitate predictions of future price direction in stocks and cryptocurrencies. The pipeline integrates backward-looking features, Logistic Regression and Random Forest models, a majority class baseline, forward validation with expanding windows, automated leakage testing, statistical significance and transaction-cost-aware backtesting. We examine six assets: two cryptocurrencies and four Indian stocks listed on the NSE. We ensure our models are robust by performing feature ablation, permutation importance, a volatility regime analysis and a sweep through transaction costs. Finally, news sentiment is only used as context in real time, as we do not assume access to a time-consistent list of past headlines. The framework determines whether a predictive model provides a prediction that can be validated chronologically, statistically and realistically. The accuracy varies between 48.7% and 53.2%, with the majority class baseline varying between 50.5% and 53.0%. One of twelve binomial tests is nominally significant, and none survives Bonferroni correction. Furthermore, the Random Forest strategy shows lower performance than buy-and-hold on all six assets at 0.15% transaction costs. Licenses & Copyright
Language: English
Field: Decision Sciences
Domain: Social Sciences
Open Access status: green
OpenAlex ID: W7238776574
FWCI:
Cites:
Cited by:
Related to:
