AVA Algorithm · AlgoFuego · Volatility-Adaptive Engine

It's Not Where Price Is. It's How It Got There.

AVA Backtest [AlgoFuego]

Every candle tells a structural story — contracting, expanding,
pushing higher, breaking lower. AVA reads that story first,
and only then decides what the trend line should do.

Read the structure
Candle Classification
Volatility Smoothing
Signal vs Cross Entries
Built-In Backtesting
SL + TP
Performance Table
4 Alert Types
7-Day Guarantee
I
The Problem

Standard Averages
Don't Read Structure.

A moving average treats every bar identically — it only sees the closing price, never the shape of the move that produced it. A bar that broke wildly in both directions and a bar that quietly consolidated can produce the same average value, even though they describe completely different market states. That blindness is exactly where false signals come from.

"

By blending adaptive volatility metrics with a refined moving-average algorithm, AVA offers traders a dynamically responsive framework for trend identification — designed for both novice and advanced traders seeking data-driven decision-making.

Amit · Lead Developer & Market Strategist, AlgoFuego
AVA
AVA closes that gap by reading how each candle moved, not just where it closed. Every bar's high-low relationship is classified into one of four structural types before any averaging happens. The trend line that emerges reflects real expansion and contraction in the market — not an arithmetic mean blind to the shape of price.
II
The Mechanism

Classify First.
Smooth Second.

The algorithm operates in two sequential layers: structural classification of each candle, then exponential volatility smoothing across those classifications. Price alone never touches the final output directly — its structure does.

1
Every Candle Gets Classified

Each bar's high-low relationship to the prior bar is evaluated and sorted into one of four structural types — inside, outside, higher high, or lower low. This happens on every single bar, continuously, before any smoothing is applied.

2
Classifications Drive Weighted Averages

These four structural types feed specialized volatility-weighted averages that encode the character of price movement — contraction, expansion, bullish pressure, bearish pressure — rather than just position.

3
Exponential Volatility Filter Applied

An exponential smoothing layer suppresses isolated spikes and choppy oscillations in the classification stream. The trend line updates meaningfully only when sustained structural change accumulates — not on every noisy tick.

4
A Stable, Context-Aware Trend Line Emerges

The result is the AVA trend line — significantly more stable than standard adaptive averages in ranging conditions, because it requires real structural evidence before it moves, not just a shift in closing price.

What Every Candle
Is Telling You.

Inside Bar
High and low contained within the prior bar. Volatility contraction — the market is consolidating.
Outside Bar
High and low both exceed the prior bar. Volatility expansion — the range is widening in both directions.
Higher High
High exceeds the prior bar's high without a new low. Directional bullish pressure building.
Lower Low
Low breaks the prior bar's low without a new high. Directional bearish pressure building.
AVA AlgorithmVolatility-Adaptive Trend
4 Structure TypesInside · Outside · HH · LL
AVA Signal · AVA CrossDual Entry Trigger Logic
Long & ShortBuilt-In Backtesting
SL · TPRisk Management
Commission SimRealistic Net Returns
4 AlertsEntry · Exit · SL · TP
Pine v6Latest Version
All TFAny Timeframe
7 DaysMoney-Back
III
The Signal

Structure Shifts.
Trend Line Flips.

Sustained structural change accumulates until the AVA trend line flips direction. From there, the entry trigger you choose determines exactly when that flip becomes a trade.

Candle Structure
Higher Highs Build
Sustained bullish pressure
AVA Trend Line
Flips Bullish
Down → Up direction change
LONG
Entry · Stop Loss · Take Profit
Performance analytics updated

Two Entry Triggers. Same Trend Line.

AVA Signal reacts to the trend line's own direction change — earlier, more frequent. AVA Cross reacts to price interacting with the line — confirmed by price behavior, typically fewer but more validated entries.

Internal Trend Flip
AVA Signal

Entry triggers the moment the AVA trend line itself flips direction — bearish to bullish for Long, bullish to bearish for Short. Reacts to accumulated volatility structure changes inside the algorithm. Earlier, higher-frequency entries.

Price Confirmation
AVA Cross

Entry triggers when price crosses above or below the AVA trend line. Reacts to price interacting with the trend structure rather than the line's own direction — entries confirmed by actual price behavior, not just internal state.

IV
The Engine

Not Just a Trend Line.
A Complete Trade System.

The structural flip or price cross triggers entry. Everything after — risk management, performance tracking, candle coloring, bars remaining — runs automatically. You configure the structure logic. The engine measures every result across your full chart history.

AVA Backtest · Performance Table
Live Statistics
Signal TypeLong · AVA Signal → Cross
Total Trades34
Wins / Losses22 / 12
Win Rate64.7%
Max Return+17.8%
Avg Return+4.2%
Compound Return+152.6%
Bars Until Close

Equity Curve (Illustrative)

Compound Return+152.6%
Win Rate64.7%
Max Single Trade+17.8%

Performance data is illustrative. Statistics auto-update with each completed trade. Commission simulation deducts entry and exit fees from all compound return figures.

Proprietary AVA Algorithm

Classifies each candle into one of four volatility structure types, then applies exponential smoothing to produce a trend line that reacts to real market expansion and contraction — not just raw price levels.

Sensitivity & Length Control

Tune Sensitivity to control how reactive the trend line is to volatility shifts, and adjust the smoothing Length to match the volatility profile of your specific market — from scalping to swing strategies.

Built-In Backtesting Engine

Simulate Long or Short strategies directly on-chart with configurable entry (AVA Signal or AVA Cross), exit (Signal, Cross, or Bar Count), and full risk management — all running automatically against your chart history.

Stop-Loss & Take-Profit Management

Percentage-based stop-loss and take-profit levels render visually on the chart as labeled lines — customizable in color and label size from Tiny to Huge. Both feed into every backtesting calculation.

On-Chart Performance Statistics

Signal type, total trades, wins/losses, max/min/avg return per trade, win rate, compound equity before and after commission, and bars remaining — live on every new signal, directly on your chart.

Four Independent Alerts

Entry, exit, stop-loss, and take-profit alerts are individually toggleable through TradingView. Push notifications and email supported — never miss a structural flip, even away from the chart.

V
AVA Signal vs. AVA Cross

See the Difference
in Real Time.

Watch the same trend flip produce two different entry timings depending on which trigger is active. AVA Signal fires the instant the line itself turns. AVA Cross waits one extra step — for price to actually confirm it by crossing through.

AVA Signal
AVA Signal

Trade the Trend Line
the Moment It Turns.

As soon as accumulated structural change flips the AVA trend line's direction, the entry fires — even if price hasn't moved past the line yet. Earlier entries, but exposed to the line reversing again before price confirms.

Structure accumulates

Sustained higher-high bars build bullish pressure in the classification stream.

AVA line flips up

The trend line itself turns bullish — entry fires immediately on this internal flip.

Price follows (usually)

Price typically moves to confirm the new direction shortly after — but the trade is already open.

Trigger
Line Flip
Timing
Earlier
Frequency
Higher
Entry Trigger
Trend line direction flips
vs
Price crosses the line
Timing
Earlier, internal state
vs
Later, price-confirmed
Trade Frequency
Higher
vs
Lower
Best For
Early movers
vs
Confirmation seekers
The Full Library

One Subscription.
Every Indicator.
Including This One.

AVA Backtest is part of the complete AlgoFuego library. One subscription unlocks all 6+ indicators — MA-DNA, Original Time Cycles, Gann Astrology, Radio Wave, Timeseries-Driven Trading, and every future addition. No individual purchases. No upsells.

Instant TradingView access after payment
All 6+ indicators · All assets · All timeframes
Lifetime updates during active subscription
Priority 24/7 support
7-day money-back guarantee · No questions
Monthly
Annual −37.5%
$50 / month
$40
per month · billed monthly
Save 20% vs list price
All 6+ AlgoFuego indicators included. One plan, the entire library.
Subscribe — $40/month Browse the full library
7-day money-back guarantee. Not satisfied for any reason — full refund.
$40 / month
Get Access