ANN MACD BTC v2.0
Oct 21, 2019

The ANN MACD BTC v2.0 indicator is a deep learning-based momentum tool designed to enhance trend identification for Bitcoin and other liquid assets by utilizing an Artificial Neural Network (ANN). It integrates multiple technical inputs—including RSI, MACD, Momentum, Bollinger Bands, and a full suite of Guppy EMAs—to produce a filtered signal that adapts to market volatility and trend shifts.
Usage
The script can be used to identify potential trend reversals or trend continuations based on the deep learning output. Users can interpret the indicator through visual changes on the chart and the optional bar coloring feature.
- Trend Confirmation: Use the ANN output to confirm directions suggested by traditional MACD or RSI. When the neural network aligns with these momentum indicators, it suggests a higher probability trend.
- Bar Coloring: When enabled, the "Barcolor" setting changes the color of the price bars based on the internal neural network's state, providing an immediate visual cue for bullish or bearish sentiment.
- Volatility Context: The integration of Bollinger Bands allows the script to factor in volatility, making the signals more robust during periods of price expansion or contraction.
Details
This tool is the second iteration of a deep learning series focusing on BTC price action. The architecture utilizes a hyperbolic tangent (Tanh) activation function to process 19 distinct inputs derived from various technical indicators.
The inputs are processed through a hidden layer of "neurons" (represented as variables n19 through n28 in the logic) which assign weights to the rate of change (tangent difference) of:
- Standard Momentum indicators (RSI, MACD Histogram, MOM).
- Volatility boundaries (Bollinger Bands upper, lower, and basis).
- Guppy Exponential Moving Averages (divided into fast and slow groups).
By analyzing the relative change in these values rather than just the absolute price, the ANN attempts to identify underlying structural shifts in market momentum.
Settings
Indicator Settings
- Barcolor I / 0?: Toggles the bar coloring feature ON or OFF.
- BB Length: Sets the lookback period for the Bollinger Bands calculation.
- BB Mult: Determines the standard deviation multiplier for the Bollinger Bands width.
EMA Configuration
- Fast EMAs (1-6): Sets the lengths for the short-term Guppy EMA group (defaults: 3, 5, 8, 10, 12, 15).
- Slow EMAs (7-12): Sets the lengths for the long-term Guppy EMA group (defaults: 30, 35, 40, 45, 50, 60).
FAQ
How do I use the bar coloring feature?
Navigate to the "Settings" menu of the indicator and set the "Barcolor I / 0 ?" option to "ON". This will color the price candles based on the ANN's trend detection.
Can this be used on assets other than BTC?
While optimized for BTC based on its development history, the underlying neural network logic is based on relative momentum and moving average relationships, making it applicable to other high-volume tickers.
How do I access this tool?
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.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.