Concept

Neural Networks

Neural Networks are Machine Learning concepts. The Library holds 3 implementations, each one a working definition you can pull into Quant.

MLP

Top Neural Networks indicators

3 total

What are Neural Networks?

A neural network is a function approximator built from layers of simple units. Each unit computes a weighted sum of its inputs, adds a bias, and passes the result through a nonlinear activation function; stacking such units in layers lets the network represent nonlinear relationships that a single linear model cannot. The weights are learned by minimizing prediction error on historical examples, almost always by gradient descent with backpropagation supplying the gradients. In trading tools the usual form is a small multilayer perceptron (MLP): an input layer of hand-built features, one or two hidden layers, and an output read as a forecast value or, through a sigmoid or softmax, as class probabilities.

Flexibility is both the appeal and the hazard. A network with enough parameters can fit training data almost perfectly by memorizing noise, so in-sample accuracy means little; what counts is performance on data the model never saw, which makes an in-sample / out-of-sample split or walk-forward test non-negotiable. Chart-based implementations add constraints of their own: small datasets, features limited to what the platform computes, and retraining schemes that can quietly leak future information. A neural network is a fitting method, not a strategy; its value is set by the features it is fed, the label it is trained to predict, and the honesty of its validation.

How traders use it

  • As a direction classifier: oscillator readings, returns, and volatility measures feed a small MLP whose output is read as the probability that price closes higher or lower over some horizon, then plotted as a signal line or entry arrows.
  • As a learned composite: the network compresses several familiar inputs into one adaptive confluence score, which is then treated like any oscillator, with zones, crossovers, and divergence reads.
  • As a filter on a base system: a rule-based setup only fires when the network's reading agrees, on the theory that the model captures conditions the fixed rules miss.
  • With repaint discipline: models retrained every bar or normalized over the full visible history can rewrite past outputs, so repaint-safe engineering (frozen weights, causal normalization) is what keeps the historical track honest.

Neural Networks vs other learned models

Support Vector Machines: SVMs separate classes with a maximum-margin boundary and a fixed kernel-defined feature map, trained by convex optimization; networks learn their own representation but train non-convexly, so different runs can land on different solutions.

Random Forest: A random forest averages many decision trees, is robust to feature scaling, and rarely collapses from one bad hyperparameter; a network is a single continuous fitted function, more sensitive to tuning and easier to overfit on small trading datasets.

kNN Analog Forecasting: kNN stores the history and compares the present against it at query time, with no training step; a network compresses history into fitted weights and discards the examples themselves.

Related concepts · Learned models

Concept family

Machine Learning

32 concepts mapped · 21 in the Library

Neural Networks FAQ

Can a neural network predict the market?

It can approximate whatever stable relationship exists between its inputs and target in the training data. Whether that relationship persists is the real question: markets are noisy and non-stationary, and much of what a flexible model fits is noise. Out-of-sample results, not training accuracy, are the only evidence worth weighing, and even those can decay as regimes change.

What is an MLP in a trading indicator?

A multilayer perceptron, the simplest feedforward network: an input layer holding feature values, one or more hidden layers of weighted sums passed through nonlinear activations, and an output layer producing the forecast or class score. Most chart-based neural indicators are small MLPs over familiar inputs such as RSI, momentum, or normalized price changes.

Why do neural network trading models overfit?

Because parameters are plentiful and independent examples are scarce. Overlapping windows, autocorrelated returns, and regime drift mean a few thousand bars carry less information than they appear to, while even a small network can hold hundreds of weights. The standard mitigations apply: fewer parameters, regularization, early stopping, and walk-forward validation that never lets the model touch its test data.

Build Neural Networks your way.

Quant writes, tests, and refines it with you — then it runs on LuxAlgo charting or ports to TradingView.