All indicators

Dependent Variable Odd Generator For Machine Learning Techniques

Sep 14, 2019

Static chart image
Volume BasedOscillatorsMachine LearningCorrelation

The Dependent Variable Odd Generator indicator provides a mathematical framework for estimating market state probabilities—bullish, bearish, or stagnant—using dependent variables for machine learning integration. By utilizing a Venn diagram logic and probability set theory, it aims to categorize market regimes and provide normalized odds that sum to 100%.

Usage

The Usage section describes how the script can be used to identify market regimes. It serves as a pre-processor for quantitative analysis or machine learning models, such as Markov Processes, by generating data points that represent the "odd" or probability of a specific market state.

  • Regime Identification: The indicator plots three distinct histograms. A dominant green histogram suggests high bullish probability, red suggests bearish probability, and blue suggests a stagnant or sideways market.
  • Machine Learning Input: The generated values are designed to be used as dependent variables, helping models distinguish between trending and non-trending environments.
  • Correlation Filtering: By selecting the appropriate market type, the script uses global indices (like the S&P 500 or Crypto Index) to calculate a "Dow Factor," which adjusts the odds based on broader market correlation.

Details

The script operates on the concept that markets are not merely binary (up/down) but exist in a probability set where stagnant phases are an intersection of bullish and bearish forces.

  1. Normalization: The script calculates gross bullish and bearish values using either the Money Flow Index (MFI) or Relative Strength Index (RSI).
  2. Dow Factor: It calculates an adjusted R-squared correlation between the asset price, volume, and a global index. This factor weights the odds toward the prevailing macro trend.
  3. Venn Logic: To ensure the total probability equals 1 (or 100%), the script treats the "stagnant" market as the mathematical intersection of the bull and bear sets. It then normalizes these values to create a clean probability distribution.

Settings

  • Market Type: Selects the external benchmark used for correlation (Markets excluding USD/X, FX USD/X, or Cryptocurrencies). This determines which global index is used to calculate the Dow Factor.
  • Method: Choose between MFI (Money Flow Index) or RSI (Relative Strength Index) as the base calculation for price momentum and volume flow.
  • Length: Sets the lookback period (default 5) for all internal calculations, including RSI, MFI, and correlation coefficients.

FAQ

How do I interpret the histogram values? The values represent the percentage probability (0-100) of the current market state. If "Stagnant Odds" are higher than "Bull" or "Bear" odds, the market is likely consolidating.

Is this indicator suitable for direct trading signals? The indicator is designed as a research tool for machine learning and regime identification; it is not intended to be used as a standalone strategy without further development or validation.

How can I access the Dependent Variable Odd Generator? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.

Free indicator

Get free access to this indicator on the platforms below.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.