AIResearch AIResearch
Back to articles
AI

AI Trading System Outperforms Market by Learning Asset-Specific Rules

A reinforcement learning approach achieves 262% returns on stocks and cryptocurrencies by adapting to unique market behaviors without human intervention.

AI Research
November 14, 2025
3 min read
AI Trading System Outperforms Market by Learning Asset-Specific Rules

Financial markets are notoriously volatile, making consistent profits a challenge even for seasoned investors. A new study demonstrates how artificial intelligence can learn tailored trading strategies for specific assets, such as stocks and cryptocurrencies, significantly boosting returns while managing risk. This research, conducted by Mehran Taghian, Ahmad Asadi, and Reza Safabakhsh from Amirkabir University of Technology, introduces a deep reinforcement learning system that adapts to market dynamics, offering a potential edge in automated trading.

The key finding is that AI agents can generate asset-specific trading rules that outperform both traditional strategies and state-of-the-art methods. The researchers developed a model using reinforcement learning, which learns from historical price data to make buy, sell, or hold decisions. In tests on assets like Apple stock (AAPL) and Bitcoin (BTC/USD), their best model achieved a total return of nearly 262% over the evaluation period, compared to 78% for the top existing benchmark. This shows that customizing strategies for each asset's unique patterns leads to higher profitability.

Methodologically, the team employed two main approaches: a SARSA(λ) algorithm and a deep Q-network (DQN). SARSA(λ) uses a lookup table to generalize from known candlestick patterns—a visual representation of price movements—while DQN leverages neural networks to extract features from raw price data, such as open, high, low, and close (OHLC) values. The DQN model includes modules for feature extraction and decision-making, trained jointly to optimize trading signals. Inputs varied from binary pattern indicators to full OHLC prices, with the system learning through trial and error in simulated market environments.

Results analysis, based on metrics like total return, Sharpe ratio, and value at risk, revealed that the DQN with a multi-layer perceptron (MLP) as the feature extractor performed best across diverse assets. For instance, on AAPL stock, this model yielded an arithmetic return of 164% and a Sharpe ratio of 0.139, indicating strong risk-adjusted performance. Figure 4 in the paper illustrates profit curves where the DQN models consistently surpassed benchmarks like buy-and-hold and rule-based strategies. The study also found that using simple OHLC price inputs worked better than complex time-series data, as short-term fluctuations can hinder decision-making.

In real-world context, this AI system matters because it automates the discovery of profitable trading rules without relying on human expertise, which is often limited by bias or inability to process vast datasets. For everyday investors, it could lead to more reliable automated trading tools that adapt to market changes, potentially reducing losses during downturns. The approach's focus on asset-specific learning means it could be applied to various financial instruments, from tech stocks to volatile cryptocurrencies, helping portfolios grow with lower risk.

Limitations of the study, as noted by the authors, include the need for further research into time-series feature extractors and the model's ability to detect and adapt to sudden market shifts. The performance may vary in highly unpredictable environments, and the current methods do not fully address all dynamic aspects of financial markets. Future work could explore integrating change detection mechanisms to enhance adaptability.

Original Source

Read the complete research paper

View on arXiv

About the Author

Guilherme A.

Guilherme A.

Former dentist (MD) from Brazil, 41 years old, husband, and AI enthusiast. In 2020, he transitioned from a decade-long career in dentistry to pursue his passion for technology, entrepreneurship, and helping others grow.

Connect on LinkedIn