Featured AVA Algorithm Volatility & Trend PRO Available Now

AVA Backtest
[AlgoFuego]

Developed by Amit — Lead Developer & Market Strategist at AlgoFuego

An innovative indicator that blends volatility-adaptive trend detection with rigorous backtesting and performance analytics — providing actionable, data-driven insights directly within TradingView.

"A volatility-adaptive trend engine that dynamically responds to how price expands and contracts — creating trend lines that adapt to real-time market conditions while reducing noise."

— AVA Algorithm · AlgoFuego
4.8 147 ratings 1,890 active users
TradingView
All Timeframes
Updated: Jan 2025
English
Monthly
Annual −37%
$99 $59 / month Save 40%
This indicator is included in the Full Library subscription — one price unlocks access to all 6+ indicators.
Instant TradingView access after payment
All 6+ indicators included
Lifetime updates during subscription
Priority 24/7 support
Subscribe — $59/month
7-day money-back guarantee — not satisfied? Full refund, no questions asked.
AVA AlgorithmVolatility-Adaptive Trend
Inside · Outside BarsCandle Pattern Analysis
Built-In BacktestingLong & Short Modes
AVA Signal · AVA CrossDual Entry Trigger Logic
Stop Loss · Take ProfitPercentage-Based Risk Control
Commission SimulationRealistic Net Returns
Win Rate · Compound ReturnOn-Chart Performance Table
7 DaysMoney-Back Guarantee
Overview
Features
How to Use
Specifications
FAQ

The AVA Algorithm — Volatility-Adaptive Engine

AVA analyzes each candle's high-low relationship to classify its volatility structure, then applies exponential smoothing across those classifications to build a context-aware, noise-filtered trend line that reacts to real market expansion and contraction — not just raw price levels.

Inside Bars — Volatility Contraction
Outside Bars — Volatility Expansion
Higher Highs — Bullish Pressure
Lower Lows — Bearish Pressure
AVA Trend = Volatility Structure + Exponential Adaptive Smoothing
Default Configuration
Trade SideLong
Entry TriggerAVA Signal (Trend Flip)
Exit ModeAVA Signal · Cross · Bar Count
Commission SimulationOptional (Entry % + Exit %)

What is AVA Backtest?

AVA Backtest is an advanced volatility-adaptive indicator that identifies trend direction, generates entry and exit signals, and includes a comprehensive built-in trade simulation engine. Unlike static moving averages, the AVA algorithm dynamically responds to how price expands and contracts — producing a smoother, context-aware trend line that is effective across all markets and timeframes.

What does it provide?

  • Volatility-adaptive trend line built from real candle structure analysis
  • Automatic trend reversal detection via AVA Signal flips and price crossovers
  • Full backtesting engine with configurable entry, exit, and risk rules
  • Stop-loss and take-profit management with visual chart-level rendering
  • On-chart performance table: win rate, per-trade returns, compound equity
  • Real-time alerts for entries, exits, stop-loss, and take-profit events
  • Commission-aware calculations for accurate, non-inflated backtesting results

Who is this for?

AVA Backtest is designed for traders who want an integrated system covering volatility-based trend identification, signal generation, and rigorous strategy testing — all without exporting data or writing custom scripts. Simple enough for beginners to apply immediately, and deep enough for advanced traders to build fully rules-based, data-verified strategies.

Algorithm Core
Volatility-Adaptive
Candle Patterns
4 Structure Types
Entry Triggers
Signal · Cross
Trade Engine
Entry · SL · TP

Full Strategy Analytics Included

Subscribers gain access to the built-in performance statistics panel — displaying signal type, win rates, total trades, max/min/average returns, and compound performance — directly inside the indicator on TradingView.

Monthly Plan
All indicators · Cancel anytime
$59/mo
Annual Plan BEST VALUE
Save 37% vs monthly
$449/yr
Get Access Now
Candle Patterns
4
Inside · Outside · HH · LL
Alert Types
4
Entry · Exit · SL · TP
Markets
All
Forex · Crypto · Stocks
Pine Script
v6
Latest version

The AVA algorithm does not react to price — it reacts to how price moves. By classifying each bar's volatility structure before smoothing, it filters the noise that causes standard trend tools to generate excessive false signals in choppy and ranging market conditions.

— AVA Backtest · AlgoFuego Design Principles
Proprietary AVA Algorithm

Analyzes each candle's high-low structure to classify it as an inside bar (contraction), outside bar (expansion), higher high (bullish pressure), or lower low (bearish pressure). These classifications drive volatility-weighted averages that are then exponentially smoothed — producing a trend line that reflects real market structure, not just price levels.

Sensitivity & Length Control

Control how reactive the AVA trend line is to volatility shifts via the Sensitivity parameter — higher values produce faster responses to expansion events. Adjust the smoothing Length to match the volatility profile of your specific market and timeframe, from high-frequency scalping to weekly swing strategies.

Exponential Volatility Smoothing

After candle structure classification, AVA applies an exponential volatility filter that reduces short-term noise and limits responses to isolated price spikes. The trend line updates meaningfully only when sustained volatility expansion or directional pressure occurs — making it significantly more stable than standard adaptive averages in ranging conditions.

Built-In Backtesting Engine

Simulate Long or Short strategies directly on-chart with full parameter control: choose entry trigger (AVA Signal flip or AVA Cross), define exit conditions (signal-based, crossover-based, or fixed bar count), enable optional entry and exit filters, and run the simulation against the full visible chart history automatically.

Stop-Loss & Take-Profit Engine

Define percentage-based stop-loss and take-profit levels applied to every simulated trade. Both levels render as labeled lines directly on the chart with configurable colors and label sizes from Tiny to Huge — providing clear visual confirmation of trade structure at every historical signal.

Commission-Aware Backtesting

Model real trading costs with separate entry and exit commission percentages. All profit/loss calculations, win rate, and compound return figures in the performance table automatically incorporate these costs — producing accurate, non-inflated results that reflect what live trading with your actual broker would generate.

Performance Statistics Table

A complete on-chart analytics panel displaying: Signal Type (trade direction + entry/exit mode), Total Trades, Wins and Losses, Maximum/Minimum/Average Returns per trade, Win Rate percentage, Compound Return (before and after commission), and Bars Remaining until the current trade closes. All metrics update automatically as new signals complete.

Visual Trade Levels & Candle Coloring

Entry, exit, stop-loss, and take-profit levels are plotted directly on the chart for every simulated trade. Candles automatically color to reflect the active trade state — bullish color during Long trades, bearish during Short trades, and neutral during flat periods — creating instant visual clarity across the full backtesting history.

Four-Event Alert System

Enable or disable individual alerts for Entry signals, Exit signals, Stop-Loss hits, and Take-Profit hits. Each alert type is independently configurable — receive only the notifications relevant to your active strategy without noise from unused event types. Alerts work across all TradingView notification channels.

Long & Short Simulation Modes

Run the full AVA signal engine in Long or Short mode independently to study directional strategy performance. Compare Long vs Short results on the same market and timeframe to determine which directional bias aligns better with the AVA algorithm's historical behavior on that specific instrument.

Bar Count Exit Mode

Configure trades to close automatically after a fixed number of bars rather than waiting for a signal flip or price crossover. Enables time-based holding period strategies — useful for testing fixed-duration approaches independent of the AVA signal state, or for limiting exposure on instruments with slow trend development.

Fully Modular Configuration

Every component of AVA Backtest is independently toggleable. Use only the AVA trend line for direction context, or combine it with the full backtesting engine, trade levels, performance table, and alerts. Each module can be enabled or disabled without affecting the others — adapting the indicator to exactly how you work.

1
Add the Indicator & Configure AVA Settings

Apply AVA Backtest to any TradingView chart from the Invite-Only Scripts section after subscribing. The indicator works on every asset and timeframe without additional configuration to get started. Under AVA Settings, adjust Sensitivity to control how reactive the trend line is to volatility shifts — start with the default and modify after observing behavior on your target market. Set the smoothing Length to match your trading timeframe: shorter for scalping, longer for swing or position strategies.

2
Read the AVA Trend Line & Signal Flips

Watch the AVA trend line color change between Up (bullish) and Down (bearish) states. A flip from Down to Up is a potential Long signal; a flip from Up to Down is a potential Short signal. The exponential volatility filter suppresses false flips in choppy conditions — only sustained candle structure changes trigger direction changes. Observe the historical flip sequence on your chart before configuring the backtesting engine to understand the signal frequency and character on your specific instrument.

3
Select Trade Direction & Entry Trigger

Choose Long or Short depending on the directional hypothesis you want to test. Then select your entry trigger: AVA Signal mode opens a trade whenever the AVA line flips direction — reacting to internal trend changes. AVA Cross mode opens a trade when price crosses over or under the AVA line — reacting to price interacting with the trend structure. Test both on your market and compare the resulting win rates and average returns in the performance table.

4
Configure Exit Conditions

Set exit logic independently from entry logic. Signal exit closes the trade when the AVA line flips against the position. Cross exit closes when price crosses back through the AVA line. Bar Count exit closes after a fixed number of bars regardless of signal state — ideal for testing time-limited holding periods. You can combine these with optional entry and exit filters to reduce false signals during flat or low-volatility market phases.

5
Set Risk Management Parameters

Enable stop-loss and take-profit and define their percentage distances from each trade's entry price. These act as protective boundaries — capping downside and locking in profits independently of the exit trigger logic. Begin with wider stops (10–15%) during initial research to avoid excessive exits distorting the signal statistics. Enable commission simulation and enter your actual broker's entry and exit fee percentages to generate realistic, cost-adjusted performance metrics.

6
Enable Trade Visualization

Turn on Trade Levels display to plot entry, stop-loss, and take-profit lines directly on the chart for every simulated trade. Enable dynamic candle coloring to distinguish Long trades (bullish color), Short trades (bearish color), and neutral flat periods at a glance. These visualizations allow immediate assessment of how each trade unfolded against the price action — revealing whether the AVA signal captured meaningful moves or produced false entries during the backtesting period.

7
Review the Performance Table & Optimize

Analyze the on-chart statistics panel: total trades, win rate, maximum, minimum, and average returns per trade, and compound equity growth across the full simulated history. Iterate systematically — adjust AVA Sensitivity and Length, compare Signal vs Cross entry modes, test Long vs Short, and evaluate bar count exit lengths. Document which combinations produce the highest win rates and compound returns on your specific market before committing capital to live signals.

8
Activate Real-Time Alerts & Go Live

Once your backtested configuration produces consistent, statistically meaningful results, activate the alerts for the events you need to monitor: Entry for new signal notifications, Exit for position close, Stop-Loss and Take-Profit for automated level monitoring. Each alert type is independently toggleable. Receive push notifications on mobile or email through TradingView's alert system so you never miss a signal, even when away from the chart.

Platform
TradingView
Language
Pine Script v6
Timeframes
All Timeframes
Assets
Forex, Crypto, Stocks, Commodities
Entry Triggers
AVA Signal · AVA Cross
Backtesting Modes
Long & Short
Exit Modes
Signal · Cross · Bar Count
Alert Types
Entry · Exit · SL · TP
Commission Simulation
Entry % + Exit %
Performance Table
✓ On-Chart
Updates
Lifetime (active subscription)
Latest Version
Jan 2025
Settings Modules

What You Can Configure

AVA Settings

Toggle the AVA trend line visibility and set its width. Define bullish (Up) and bearish (Down) colors. Configure Sensitivity to control volatility reactivity and set the smoothing Length parameter for trend direction modeling across different market profiles.

Backtesting Parameters

Select trade direction (Long or Short), define entry trigger (AVA Signal or AVA Cross), configure exit condition (signal-based, crossover-based, or bar count), and set the number of bars for bar count exit mode. Optional entry and exit filters available to reduce false signals.

Trade & Risk Settings

Enable Trade Levels display on chart. Toggle stop-loss and take-profit with percentage inputs from entry price. Set separate entry and exit commission percentages. Choose label sizes from Tiny to Huge. Full color customization for all on-chart trade level markers.

Table & Bar Color Settings

Toggle the performance table on or off, set its chart position (Top Right, Bottom Center, etc.), customize text size and frame/border colors. Enable dynamic candle coloring by trade state with independent Bullish, Bearish, and Neutral color pickers.

Important Disclosure

AVA Backtest [AlgoFuego] is a technical analysis and strategy testing tool — not a guaranteed profit system. While this indicator provides actionable, statistically measurable insights into volatility-adaptive trend strategies, past backtested performance is not necessarily indicative of future results. Market conditions are also shaped by fundamental events and macroeconomic factors that purely technical systems do not account for. Always apply sound risk management practices alongside any technical tool.

What makes AVA different from a standard moving average?
Unlike static moving averages that apply a fixed formula uniformly to price data, the AVA algorithm first classifies each candle's high-low structure into one of four volatility types: inside bars (contraction), outside bars (expansion), higher highs (bullish pressure), or lower lows (bearish pressure). These classifications drive volatility-weighted averages, which are then processed with exponential smoothing that adapts to real-time market structure. The result is a trend line that responds to how price moves — not just where it is — reducing false signals significantly in choppy or ranging conditions where standard moving averages fail.
What is the difference between AVA Signal and AVA Cross entry modes?
AVA Signal triggers an entry when the AVA trend line itself flips direction — from bearish to bullish for Long entries, or bullish to bearish for Short entries. This mode reacts to internal trend state changes driven by volatility structure. AVA Cross triggers an entry when price crosses over or under the AVA trend line — responding to price interacting with the trend structure rather than the line's own direction. Both modes can also serve as exit conditions independently, giving full flexibility to mix entry and exit logic within the backtesting engine.
What markets and timeframes does AVA Backtest work on?
AVA Backtest works on every asset available on TradingView — all Forex pairs, cryptocurrencies, US and international equities, commodities (Gold, Oil, Silver), and major indices (S&P 500, Nasdaq, DAX). There are no restrictions on timeframes: the algorithm operates identically from 1-minute scalping charts to monthly investment charts. Adjust AVA Sensitivity and Length to match the volatility profile of your specific market and chosen timeframe — faster, more sensitive settings for high-volatility assets; longer, slower settings for stable or trending markets.
Can I use AVA Backtest without the backtesting features enabled?
Yes. AVA Backtest is fully modular. You can use it purely as a volatility-adaptive trend visualization tool — showing the AVA line with Up/Down direction coloring — without enabling the backtesting engine, trade levels, performance table, or alerts. Each component is independently toggleable, so you can add only the layers you need. Many traders use the AVA line alone as a dynamic trend filter for their existing strategies before adding the full simulation engine for systematic testing.
How does the Bar Count exit mode work?
When Bar Count exit mode is selected, trades automatically close after a specified number of bars have elapsed since entry — regardless of whether the AVA signal has flipped or price has crossed the trend line. This enables time-based holding period strategies, limiting exposure on instruments with slow trend development, or testing fixed-duration approaches independently of the AVA signal state. The number of bars is fully configurable in the Backtesting Parameters settings and can be combined with stop-loss and take-profit to create a complete time-and-risk-bounded trade framework.
Is this a subscription or a one-time purchase?
Subscription-based: $59/month or $449/year (saving 37%). Both plans include access to the full AlgoFuego indicator library — not just AVA Backtest. All updates during your active subscription are included at no additional cost, along with priority 24/7 support.
What is the money-back guarantee?
We offer a 7-day money-back guarantee from the date of purchase. If you are not satisfied with the indicator for any reason within that window, contact our support team and we will issue a full refund — no conditions, no questions asked.
Can I use this on more than one TradingView account?
Each subscription grants TradingView indicator access to one account. For multi-seat licensing (teams or institutions), contact our support team for a custom arrangement.
Related Indicators

Also in the Library

All indicators below are included in your subscription at no additional cost.

$59 / month
Subscribe Now
!
Important Notice
Risk Disclosure & Responsibility
Trading financial markets involves substantial risk and may not be suitable for all investors. AI-generated signals do not guarantee results. Past performance is not indicative of future results. You are fully responsible for your trading decisions. Only trade with capital you can afford to lose.