We use cookies to understand how the site is used and improve it. We only load analytics after you accept. Privacy Policy
A TradingView strategy that selects among five Supertrend variants using recent closed virtual trades, then filters and manages entries.
Published by AlgoNexta, who builds and documents these tools so you can inspect the logic before using it. About AlgoNexta · Trading Scripts · AlgoNexta Research
One-time payment through Stripe. You get the full source (Pine Script and the other platform versions listed on this page) to use on your own charts.
Adaptive Engine is an overlay strategy, not just a signal plot. It runs five Supertrend variants virtually, selects one using the average R result of its recent *closed* virtual trades, and sends real strategy orders only when a selected-line setup passes its confluence and risk checks.
01 · When a setup qualifies
A confirmed selected-line flip or eligible pullback must agree with the selected direction. The score combines previous completed higher-timeframe close versus EMA 50, 20-bar efficiency, RSI 14, volume versus its 20-bar average, and variant agreement; it needs at least 50 points, a permitted virtual score, and a valid stop within 4.0 ATR(14).
02 · How the position is managed
On a qualifying confirmed bar, a strategy market order is sent with risk-based sizing; the planned entry is the signal close, although the order normally fills next bar. The default stop is 0.10 ATR(14) beyond the selected line; 40% has a 1.5R limit, 30% a 3.0R limit, and the final portion uses a stop that can move to entry and then follow the selected line after target 1.
This script's logic could not be confidently reconstructed into an automated reference backtest, so no performance figures are shown rather than estimated ones.
Verify it in TradingView's Strategy Tester (or the equivalent tool for tradingview) before relying on it.
Vision Grade requires a reference backtest with enough reconstructed entries to measure — not available for this script yet.
Published by AlgoNexta, an evidence-first platform for building, reviewing, and documenting algorithmic trading tools. This page explains the script's actual logic and intended use; it does not promise profitability or replace verification in TradingView.
Adaptive Engine is an overlay strategy, not just a signal plot. It runs five Supertrend variants virtually, selects one using the average R result of its recent *closed* virtual trades, and sends real strategy orders only when a selected-line setup passes its confluence and risk checks.
The selected Supertrend line is green for an uptrend and red for a downtrend; Show all five trend lines = off hides the other, muted lines. Show the optimizer panel = on displays each variant’s factor, recent average R or “learning,” closed-trade count, and state. The status table shows the selection, agreement, regime, last setup, position, stop, target plan, and Strategy Tester-derived statistics; those displayed historical statistics are not live verification.
With Show stop and targets = on, red marks the strategy’s stop and green marks active fixed targets. Number of targets = 3; target 1 is 1.5R and closes 40%, target 2 is 3.0R and closes 30%. Although Target 3 (R) = 5.0 is configured, The last part exits by = A trailing stop means the remaining portion has no fixed target order by default. Trailing becomes eligible after target 1 and uses the selected line when it is on the trade’s side; Trailing distance (ATR) = 3.0 is an input but is not used in the implemented trailing-price calculation. Move the stop = To entry after target 1 and Close the trade when the selected line flips against it = on provide additional exits. Stop changes decided on a bar apply through subsequent exit orders, not retroactively.
No market or chart timeframe is prescribed by the code. The daily bias is most directly interpretable on intraday charts; allow for at least eight closed virtual trades per variant before expecting scored selection. For example, a selected-line flip with a score below 50—or with no positive selected score while the stand-aside setting is on—sends no entry, even if the line changes color. You can change the variant factors, score window, confluence threshold, continuation rules, direction, and risk inputs to inspect different behavior in TradingView Strategy Tester.
Selection updates use confirmed bars and closed virtual trades; the higher-timeframe requests use the previous completed timeframe bar. There is no pivot detector. Orders are submitted after confirmed-bar evaluation and normally fill at the next bar’s open, so the actual fill can differ from the signal close used to calculate size, stop distance, and targets. Intrabar target-reached alerts are inferred from bar highs or lows and do not independently prove an exit fill. Missing or zero average volume earns no volume points; insufficient history can leave scores or continuation timing unavailable. Historical Strategy Tester results, paper trading, and live execution are different evidence levels.
The source is included with the one-time purchase ($49). The chart, signals and documentation on this page stay open to everyone.
It averages each factor’s most recent closed virtual trades in R, using up to 20 trades after at least eight have closed. It switches when another scored factor leads the current one by more than 0.10R, or when the current factor is unscored.
A confirmed flip of the selected Supertrend or a qualifying pullback continuation must pass the positive-score setting, the 50-point confluence minimum, stop-distance checks, direction setting, and daily guard. It sends a strategy order rather than merely plotting a marker.
Selection and entries are evaluated on confirmed chart bars. The higher-timeframe bias requests the previous completed timeframe bar; ordinary market-order fills and intrabar stop or target execution can still differ from the signal-bar close.
The source restricts neither market nor chart timeframe. Its bias defaults to a daily timeframe, and a requested bias timeframe below the chart timeframe is raised to the chart timeframe.
An accepted entry calls `alert()` once per bar close, in plain text by default or JSON when Send entry alerts as JSON (for webhooks) is enabled. Separate alerts report when a bar reaches targets 1 through 3; reaching a level is not, by itself, confirmation of an order fill.
No. This is not financial advice; TradingView Strategy Tester is the source of truth for this strategy’s historical simulation, while paper-trading and live results require separate observation and may differ.
Describe the change in plain English and AlgoNexta rebuilds it as a fresh Pine v6 script — with its own explanation, evidence, and walkthrough.
Buy this script to build your own version of it, or describe a new idea in the Studio.
Educational content only — not financial advice. TradingView is the source of truth for live data, compilation, and Strategy Tester results.