Concept

LSTM / Recurrent Networks

LSTM / Recurrent Networks are Machine Learning concepts. A reference entry: the Library explains it rather than implements it.

What are LSTMs and recurrent networks?

Recurrent networks are neural networks built for sequences: they process one step at a time while carrying a hidden state forward, so earlier bars influence how later bars are read. The LSTM (long short-term memory), introduced by Hochreiter and Schmidhuber in 1997, adds gated memory cells that learn what to keep, update, and forget, countering the vanishing-gradient problem that made plain recurrent nets forget long-range context. The GRU is a lighter variant with similar behavior.

In financial machine learning, LSTMs were the default sequence model of the mid-2010s wave: fed windows of returns and engineered inputs (see feature engineering) to predict next-period direction, return, or volatility. What the network is asked to predict matters as much as the architecture, which is the territory of label definition and prediction horizon.

The honest track record is sobering. On liquid markets, LSTMs regularly fail to beat much simpler baselines once evaluated strictly out of sample with costs, and attention-based architectures have displaced them across most of the research literature. They remain a reasonable tool where sequence memory genuinely helps, notably volatility, which is far more persistent than returns.

Why there's no indicator for this

An LSTM is not a formula; it is a trained artifact. Producing one requires machinery no charting engine contains: a large labeled dataset, time-ordered train/validation/test splits, feature scaling fitted only on past data, compute-heavy optimization, and scheduled retraining as markets drift, the problem online and incremental learning exists to manage. A chart script sees one symbol's loaded history and none of that pipeline.

Scripts marketed as on-chart LSTMs therefore do one of two things. Either they ship tiny frozen weights, meaning you run a stale model trained at an unknown time on unknown data, or they fit themselves to the visible chart history, which is in-sample curve fitting that looks prophetic backward and fails forward. Neither delivers the validated out-of-sample behavior that justifies using a learned model at all.

How traders use it

  • Volatility and direction forecasting research, where LSTM outputs are benchmarked against classical models; volatility is the friendlier target because it clusters and persists.
  • Learned compression: a trained network's hidden state summarizes a sequence into a vector that feeds downstream models or an ensemble vote.
  • Regime-aware stacks: pipelines gate network outputs by market state from Markov-switching models, trusting the net only in regimes resembling its training data.
  • Probability outputs: classification variants emit scores that pass through calibration before anyone sizes a position off them.

LSTMs vs adjacent sequence models

Neural Networks: Feedforward nets map a fixed snapshot of inputs to an output; recurrent nets carry state across time steps, buying sequence memory at the cost of harder, slower training.

Hidden Markov / Markov-switching Regimes: Both model sequences through hidden state, but an HMM uses a few interpretable discrete states estimated statistically, while an LSTM learns thousands of opaque continuous parameters.

Concept family

Machine Learning

32 concepts mapped · 32 in the Library

LSTM / Recurrent Networks FAQ

Turn LSTM / Recurrent Networks into a trading strategy.

Describe your LSTM / Recurrent Networks idea to Quant. It builds the strategy with you and backtests it on real data.