Comparison

LuxAlgo Backtest Loop vs PineScripter Strategy Search

Both products now have an AI that writes a strategy, backtests it, revises it and tries again until it meets your goals. That is the most useful thing an AI can do for a strategy, and the easiest way to fool yourself. Here is how each one guards against that, and what each costs to run.

•12 min read

In November 2026 LuxAlgo shipped Quant 2.0 with the Backtest Loop: describe a strategy and some goals, and Quant writes, backtests and revises versions of it on its own, then tests the result on data it held back. PineScripter's AI strategy search works the same broad way. On the surface the two look alike. Underneath, they make different choices about the part that matters most, which is how a search avoids handing you a strategy that only fits the past. We make PineScripter, so read this with that in mind; we have tried to describe LuxAlgo's loop from its own docs and from using it, and to say where it does things ours does not.

Short answer

LuxAlgo's Backtest Loop and PineScripter's strategy search both write and revise Pine Script strategies against goals you set and check the result on bars held out of the search. Backtest Loop runs on Vela across stocks, crypto, forex and more, plans the run with you first, and since 24 November 2026 adds purged cross validation, the probability of backtest overfitting (PBO) and the deflated Sharpe ratio; it executes only on the Ultimate ($119.99 a month) and Ultra plans. PineScripter's search runs on 308 crypto spot markets, never shows the AI or you anything from the held-back bars until it stops, checks the kept script there once, refuses to pass any attempt with fewer than 30 trades, penalises scripts whose gains come from only part of the history or that tune more than 4 numbers, and reports the deflated Sharpe ratio; it is on Pro ($19.99 a month) and up. Neither result is proof a strategy will work.

Key facts

  • Backtest Loop is LuxAlgo Quant's goal-driven search. It writes and backtests strategies on its own until they meet your goals, testing in-sample and on held-out data.
  • On Free, Essential and Premium a Backtest Loop can be planned, but running it needs Ultimate ($119.99 a month, $59.99 billed yearly) or Ultra ($229.99 a month).
  • LuxAlgo added purged cross validation, PBO and deflated Sharpe ratio checks to Backtest Loop on 24 November 2026.
  • PineScripter strategy search is on Pro ($19.99 a month), Ultra ($39.99) and Power ($99.99). It holds back the later 30% or 50% of the bars as a true holdout.
  • PineScripter's search never shows the AI results from the held-back bars, and checks the one kept script on them once, when the search stops.
  • An attempt with fewer than 30 closed trades cannot pass in PineScripter's search, whatever its other goals say.
  • PineScripter's search runs 30 minutes, 1, 2 or 4 hours, makes at most 60 attempts, and every attempt uses credits like any other AI request.
  • Backtest Loop runs on Vela's markets (stocks, ETFs, crypto, forex, commodities, futures on paid plans); PineScripter's search runs on 308 crypto spot markets.
LuxAlgo Backtest LoopPineScripter strategy search
Cheapest plan that runs itUltimate, $119.99/mo ($59.99/mo yearly)Pro, $19.99/mo
Before it runsClarifying questions, then a plan card with the split, criteria and a feasibility noteA goals form: rules, market, timeframe, bars, direction, goals
Data splitIn-sample and out-of-sample (70/30 in the plan we saw)Search window plus the later 30% or 50% held back
Who sees held-back results during the runNot documented in the pages we readNobody: not the AI, not the user, until it stops
Minimum tradesA pass criterion you can setFewer than 30 closed trades can never pass
Consistency across the historyPurged cross validationTrades cut into 3 stretches; gains from only some rank lower
Too many tuned numbersNot documented in the pages we readMore than 4 tuned numbers ranks lower
Correcting for many attemptsPBO and deflated Sharpe ratioDeflated Sharpe ratio
VerdictPass or fail per split against your criteriaHeld up or did not hold up, with how many goals it met
MarketsStocks, ETFs, crypto, forex, commodities, futures308 crypto spot markets

Why an automated strategy search needs guard rails

Ask an AI to keep rewriting a strategy until its backtest looks good and it will succeed, every time, because history is full of patterns that happened once. With enough attempts, one of them will line up with the noise in your particular stretch of bars. The more attempts the search makes, the better its best result looks and the less that result means. Statisticians call this multiple testing, and it is the reason a search that reports only its best backtest is worse than no search at all: it manufactures confidence.

So the useful question about any strategy search is not how good its best result looks. It is what the search does to stop itself from fitting noise, and what it tells you when it fails. Both LuxAlgo and PineScripter take this seriously, which is to their credit and ours, and both still leave the final judgement with you.

How LuxAlgo's Backtest Loop works

You start the loop from a Quant chat. When we set one up on 24 November, Quant first asked two structured questions, each with a recommended answer and an option to skip. It then put a plan card in the chat: a small price chart with the in-sample and out-of-sample split drawn on it (70/30 in our case, with the bar counts shown), pass criteria for each split that you can edit (profit factor, trade count and drawdown in ours, with an Add criterion button), money management settings, and a feasibility note. Ours was marked "an ambitious plan" with an explanation of which constraint made it hard. That plan-first design is genuinely good. You see what the search will be judged on before any usage is spent.

Running the plan needs Ultimate or Ultra. On Free, Essential and Premium the plan is shown but the button to execute it is replaced with an upgrade prompt. Once it runs, Quant writes and backtests versions of the strategy on its own, in-sample and on held-out data, for as long as the plan allows. On 24 November LuxAlgo added three checks that come from the academic literature on backtest overfitting: purged cross validation, which tests on several folds of the history while removing the bars next to each fold boundary so information does not leak across; the probability of backtest overfitting, an estimate of how likely it is that the chosen strategy only looks best because it was picked from many tries; and the deflated Sharpe ratio, which discounts a Sharpe ratio for the number of trials. Those are serious tools, and PBO and purged cross validation are two that PineScripter's search does not have.

Two cautions, both from LuxAlgo's own framing. Its docs say backtesting is research, not prophecy, which is exactly right. And the loop runs on Vela, where Pine Script executes on PineTS, LuxAlgo's own runtime, so a strategy that passes there should still be compiled and re-tested in TradingView's Strategy Tester before you rely on it.

How PineScripter's strategy search works

You describe the strategy's rules in a sentence or two, pick the market, the timeframe, the number of bars (200 to 20,000) and the direction (long, short or both), and set up to 8 goals: closed trades, win rate, maximum drawdown and profit factor by default, plus net profit, Sharpe, Sortino and CAGR if you want them. The search writes a Pine Script v6 version of the rules, checks that it compiles (with one fix attempt if it does not), simulates it with the capital, position size, commission and slippage you set, scores it, and tries again starting from the best attempt so far.

The history is split in two. The earlier bars are the search window; the later 30% or 50% is held back. Every goal has a threshold for each part. The search writes, scores, ranks and passes attempts on the search window only. The AI is never shown results from the held-back bars, and while the search runs nothing from them is shown to you either. When the search stops, the one script it kept is checked on the held-back bars once, and the result says plainly whether it held up, meaning it met every goal there too, or did not hold up, with how many goals it met.

Three more guards work on the search window. An attempt with fewer than 30 closed trades cannot pass, however good its other numbers are. The trades are cut into 3 consecutive stretches, and a script whose gain comes from only some of them ranks lower. A script that tunes more than 4 numbers (inputs and indicator lengths) ranks lower too, and the AI is told to keep rules simple, use round conventional values and never key on dates, bar numbers or price levels from the history. The report then gives the kept script's deflated Sharpe ratio, after Bailey and López de Prado, corrected for how many attempts the search made, with 95% as the usual bar.

A search runs for 30 minutes, 1, 2 or 4 hours, makes at most 60 attempts, and stops early once 1 to 5 scripts (your choice) pass every goal on the search window, after three failed attempts in a row, or when the account runs out of credits. Each attempt gets a score from 0 to 100 that says how close it came to your goals on the search window, nothing more. Nothing is put in the editor until you choose Load into editor.

Where the two approaches differ

The biggest design difference is how each treats the held-out data. A held-out test is only worth something if the search never learns from it. Once results from the later bars feed back into the next attempt, even indirectly through a person looking at them and nudging the goals, those bars stop being unseen and become part of the search. PineScripter is strict about this: nothing from the held-back bars is shown to the AI or to you until the search has stopped, and the kept script is checked there exactly once. LuxAlgo's pages describe in-sample and out-of-sample testing but, in what we read, do not say whether out-of-sample results inform later attempts or what is shown during the run. That may simply be undocumented, so ask LuxAlgo or check it yourself before treating a pass as a clean out-of-sample result.

On statistics, LuxAlgo now has more of them. Purged cross validation looks at consistency across several folds of the history; PineScripter's 3-stretch check asks a simpler version of the same question, whether the gain is spread across the history or comes from one lucky stretch. PBO is an extra estimate PineScripter does not produce. Both report the deflated Sharpe ratio. On the other side, PineScripter's hard 30-trade floor and its penalty on scripts with more than 4 tuned numbers are built into the ranking rather than left as criteria you might forget to set.

Sample size is where we saw the difference most clearly, though in Quant's ordinary backtest rather than the loop. In our 24 November session Quant reported a 12-trade backtest as the answer in the chat with no warning about the sample, and only the Prop Firms tab said that 12 trades should be treated as a rough read. Twelve trades tell you almost nothing: a few lucky exits can swing every figure. In PineScripter's search a 12-trade attempt cannot pass at all. You can set a trade-count criterion in Backtest Loop, and we would.

On scope, Backtest Loop wins clearly. It searches on stocks, ETFs, crypto, forex and commodities, with futures on paid plans, while PineScripter's search runs on 308 crypto spot markets only. If your strategy is for an index or a currency pair, PineScripter can still write and test the rules on crypto data, but the search is not run on the market you care about.

What each costs to run

On LuxAlgo, running a Backtest Loop needs Ultimate at $119.99 a month ($59.99 a month billed yearly) or Ultra at $229.99 ($119.99 billed yearly). Loops use Quant usage like any other request, which on LuxAlgo is a multiple of the Free allowance that refills every five hours and weekly, and Quant asks before any build that would use a large share of your session or week. Prepaid extra usage is available.

On PineScripter, strategy search is on Pro at $19.99 a month (1,000 credits), Ultra at $39.99 (2,000) and Power at $99.99 (10,000). Every attempt uses credits according to its size and the model, and the search stops when the credits run out. Credits reset monthly and do not roll over. The units on the two products are different, so the comparison that holds is the entry price: $19.99 against $119.99 a month, or $59.99 if you pay LuxAlgo for a year up front.

The higher LuxAlgo price includes much more than the loop: a multi-asset charting platform, the full indicator library and trading connections. If you would use those anyway, the extra cost of the loop is smaller than it looks.

Re-check any result in TradingView

Neither search runs on TradingView. Vela runs Pine Script on PineTS, and PineScripter simulates strategies on its own engine with Binance spot data. Both are built to behave like TradingView's Strategy Tester, and small differences in fills, commission handling, higher-timeframe requests and bar states are normal for any reimplementation. Before you trust a strategy from either search, paste it into TradingView, set the same capital, commission and slippage, and compare the Strategy Tester's list of trades with the tool's. If you want the full report from TradingView's own run, PineScripter's free backtest report tool reads a Strategy Tester trades CSV in your browser.

pine
//@version=6
strategy("Search result, recheck", overlay = true,
     initial_capital = 10000,
     default_qty_type = strategy.percent_of_equity, default_qty_value = 10,
     commission_type = strategy.commission.percent, commission_value = 0.1,
     slippage = 2)
// Set these to the same values the search used, then compare
// TradingView's list of trades with the tool's trade log.

TradingView's defaults differ from most tools' defaults, and a mismatch in capital, sizing or costs changes every figure without producing an error. Putting the settings in the strategy() call makes the comparison like for like.

How to read a passing result from either tool

A strategy that passed has met your thresholds on past bars it was not chosen on. That makes it a better starting point than one picked on its best backtest, and that is all it makes it. Most ideas do not hold up when tested this way, and a search that says so is doing its job. The useful habit is to look past the headline: how many trades, how the gain is spread through time, how many numbers were tuned, and what the deflated Sharpe ratio says about the number of tries behind it.

Then test it forward. Put the strategy on a paper account or watch its alerts on live bars for a few weeks, and compare what happens with the backtest. Neither PineScripter nor LuxAlgo can tell you whether a strategy will make money, and neither claims to.

PineScripter writes the strategy in Pine Script v6 and runs it on the chart, so every attempt is code you can read

Frequently asked questions

What is LuxAlgo Backtest Loop?

Backtest Loop is part of LuxAlgo Quant 2.0, launched in November 2026. Quant writes and backtests versions of a strategy on its own until they meet goals you set, testing in-sample and on held-out data, and since 24 November 2026 it adds purged cross validation, PBO and deflated Sharpe ratio checks. It can be planned on any plan but runs only on Ultimate and Ultra.

What is the PineScripter equivalent of Backtest Loop?

AI strategy search. You describe the rules, set goals for an earlier search window and a later held-back stretch, and the search writes, simulates and revises Pine Script v6 versions on the search window only, then checks the one it kept on the held-back bars once. It is on the Pro, Ultra and Power plans.

Which is cheaper to run?

PineScripter. Strategy search starts on Pro at $19.99 a month. Backtest Loop needs LuxAlgo Ultimate at $119.99 a month, or $59.99 a month billed yearly. Both consume AI usage per attempt, measured in different units, and LuxAlgo's price also includes its charting platform and indicator library.

Does a strategy that passes either search work?

Not necessarily. A pass means the strategy met your thresholds on past bars it was not chosen on. Markets change, and costs and fills in live trading differ from any simulation. Treat a pass as a candidate to test further, not as proof.

What is the deflated Sharpe ratio?

It is a Sharpe ratio corrected for how many strategies were tried before this one was picked, from work by David Bailey and Marcos López de Prado. The more attempts a search makes, the higher a Sharpe ratio has to be before it means anything. Both LuxAlgo and PineScripter report it.

Can PineScripter's strategy search run on stocks or forex?

No. It runs on 308 crypto spot markets from Binance public data. The Pine Script it writes runs on any TradingView market, so you can take the script to TradingView and test it there on other markets.

The practical takeaway

LuxAlgo's Backtest Loop is a well-designed search with a better planning step than ours, more markets and two statistical checks we do not have, at a top-tier price. PineScripter's strategy search is stricter about keeping the held-back bars unseen and builds its trade-count and simplicity rules into the ranking, on crypto data only, from $19.99 a month. Either way, judge the result by how it was reached rather than by how good it looks, and re-run it in TradingView before you trust it.

We make PineScripter, so weigh our description of LuxAlgo's loop accordingly. It is based on LuxAlgo's docs and changelog as of 29 November 2026 and on our own session on 24 November; the loop is new and changing fast.

Sources

Related reading: LuxAlgo Quant and Vela vs PineScripter, how the strategy search works, why backtests differ from live trading, why win rate misleads.

Disclaimer: PineScripter is a coding tool for Pine Script development. It does not provide financial advice and does not guarantee trading profits. Always backtest strategies thoroughly and understand the risks before live trading.