Features

TradingView Strategy Optimizer

Learn how Pineify's TradingView strategy optimizer runs parameter sweeps in Chrome, compares backtest results, and exports CSV for careful validation.

A TradingView strategy optimizer tests multiple input combinations in TradingView Strategy Tester so you can compare historical results instead of changing one value at a time. Pineify's TradingView strategy optimizer is a Chrome extension that runs a controlled parameter sweep over supported strategy inputs, records each run, and exports the table for further analysis. It does not choose a profitable or deployable strategy for you.

Pineify TradingView Supercharged Strategy Optimizer extension

What is a TradingView strategy optimizer?

The optimizer is a TradingView optimization extension for Chrome. It works with a strategy that is already loaded on a TradingView chart and uses the open Strategy Tester to evaluate the input grid you define. This makes strategy parameter optimization repeatable, while TradingView remains the source of the chart, order logic, and backtest settings.

Instead of manually adjusting inputs and running backtests one by one, the optimizer performs a multi-parameter grid search. It tests every combination of the values you specify and lets you compare the results by net profit, win rate, profit factor, maximum drawdown, and other recorded metrics.

TradingView Strategy Optimizer extension interface

How do you install the Strategy Optimizer extension?

Install from the Chrome Web Store

Installing from the Chrome Web Store is recommended because Chrome manages extension updates automatically.

Strategy Optimizer access requires an Advanced plan or higher.

Install manually

Use the manual installation method when you need the downloadable ZIP build.

Manual installation steps

Download the latest extension package:

Download extension ZIP

After the download completes, unzip the package and open Chrome.

Download and unzip the TradingView Supercharged extension

Open chrome://extensions, enable Developer mode, and select Load unpacked.

Enable Chrome Developer mode and choose Load unpacked

Select the extension folder you just unzipped.

Select the unpacked TradingView Supercharged extension folder

After installation, pin the extension from the Chrome extensions menu so it is easy to open from the toolbar.

Open the Chrome extensions menuPin TradingView Supercharged to the Chrome toolbar

What do you need before a backtest parameter sweep?

Prepare the chart and the account before starting. You need:

  • Google Chrome with the TradingView Supercharged extension installed
  • A Pineify account with optimizer access
  • A TradingView strategy that exposes the inputs you want to test
  • The strategy added to a chart with Strategy Tester open
  • Clear assumptions for the test period, commission, slippage, capital, and order size

If the strategy does not expose an input, the optimizer cannot vary it. Build or revise it with the Pine Script AI Coding Agent, or use the Visual Pine Script Editor for a visual workflow.

How do you sign in to the extension?

Click the login button in the upper-right corner of the extension popup. You will be redirected to the Pineify website to sign in. After authentication completes, open the extension again to confirm that your account is connected.

Sign in to Pineify from the TradingView Supercharged extension

After a successful login, open My Account in the extension to view the connected account and plan information.

View the connected Pineify account in TradingView Supercharged

How do you run a backtest parameter sweep?

The workflow is an ordered grid search over the inputs that you select. Keep the TradingView tab available while the extension works.

  1. Add the strategy to a TradingView chart and open Strategy Tester.
  2. Open the extension and sign in to Pineify if prompted.
  3. Select the strategy inputs you want to vary.
  4. Set the start, end, step, state, option, or timeframe values for each input.
  5. Review the resulting combination count before starting the run.
  6. Start the optimization and keep the chart tab open while each combination is tested.
  7. Sort or filter the results, then export the table to CSV when you need to review it elsewhere.

The total number of runs is the product of the selected values for every input. A narrow, hypothesis-driven grid is easier to review than a large grid without a defined question.

Open the strategy settings in TradingView

Open TradingView, find the strategy you want to optimize, and add it to the chart. The example below uses SuperTrend STRATEGY.

Add a TradingView strategy to the chart

Open Strategy Tester, then open the strategy's Settings panel from the chart legend.

Open Strategy Tester and the TradingView strategy settings

The extension adds a button beside each supported input in the Inputs tab. Click the add button beside an input to include that parameter in the optimization project.

Add a TradingView strategy input to the optimization project

Open the extension popup to configure the parameter's start value, end value, and step size. The total iteration count is shown near the Start Optimization button.

Configure an optimization parameter in the extension popup

Configure timeframe values

TradingView Supercharged can include the chart timeframe as an optimization item. The current chart interval is included by default, and you can add other intervals to compare the strategy across multiple timeframes.

Add multiple TradingView timeframes to an optimization

Configure integer and decimal values

Number inputs support integer and decimal ranges. Set a start value, end value, and step value. For example, start=5, end=10, and step=1 tests 5, 6, 7, 8, 9, and 10.

Configure a numeric strategy input range

Configure dropdown values

Dropdown inputs can also be optimization parameters. Open the strategy settings and add the dropdown input to the optimization project.

Add a TradingView dropdown input to the optimization project

Use the copy button beside the dropdown to copy its current value. Paste that value into the matching parameter in the extension popup and add it to the list of values to test. Repeat this process for every dropdown option you want to include.

Copy and add a TradingView dropdown value

Start the optimization

After confirming the selected inputs and iteration count, click Start Optimization. Keep the TradingView chart tab open while the extension applies each combination and records the corresponding Strategy Tester result.

Start a TradingView strategy optimization run

The progress display shows the completed iterations and estimated remaining time.

View optimization progress and estimated remaining time

View and export the results

When optimization finishes, the extension opens the optimization results page. If the result page does not appear, refresh it. Results are sorted by net profit in descending order by default, and you can select a different column for sorting.

Use the CSV export action in the upper-right corner when you need to analyze or archive the result table elsewhere.

Review and export TradingView optimization results

Open the Results tab in the extension popup to review previous optimization runs.

View saved optimization history in the extension popup

Which TradingView inputs can you optimize?

The extension supports the following parameter patterns. The exact values depend on the inputs exposed by your strategy.

Input patternConfigurationExample research question
Integer or decimalStart, end, and step valuesDoes changing a length or threshold alter the result?
CheckboxTest enabled and disabled statesDoes an optional filter change the historical profile?
DropdownSelect the values to includeWhich available mode should be compared?
TimeframeAdd the chart intervals to compareDoes the behavior differ across selected intervals?

Use the same data range and TradingView settings when comparing rows. Changing the chart, date range, or cost assumptions during a run makes the table harder to interpret.

How should you rank and inspect the results?

No single metric answers whether a parameter combination is robust. Sort by one metric to find candidates, then inspect the same rows across return, risk, and trade behavior.

MetricWhat it describesWhat to check next
Net profitHistorical result under the current test settingsCompare drawdown, sample size, and costs
Win rateShare of trades that closed profitablyCheck average win, average loss, and payoff distribution
Profit factorGross profit relative to gross lossConfirm that a few trades do not dominate the result
Maximum drawdownLargest peak-to-trough decline in the testDecide whether the path fits your risk limits

The result table ranks tested combinations; it does not create a new strategy or verify live execution. For a wider review of an exported Strategy Tester file, use Backtest Deep Report. Record the question and settings in Trading Journal so later decisions can be compared with the original test.

How do you reduce in-sample overfitting?

The highest in-sample row can be a historical fit rather than a durable edge. A larger grid increases the chance that one combination matches noise in the chosen sample, so treat the sweep as an exploratory screening step.

  • Reserve a separate out-of-sample period for confirmation.
  • Look for a stable region of similar results instead of one isolated maximum.
  • Compare net profit with drawdown, profit factor, trade count, and return distribution.
  • Re-test with realistic commission, slippage, capital, and order-size assumptions.
  • Compile and run the selected values in TradingView again before using them elsewhere.

Past backtest results do not predict future returns. Parameter selection also does not remove market, execution, liquidity, or model risk.

Who can access the TradingView strategy optimizer?

Optimizer access currently requires an Advanced plan or higher. Use the Pineify access page and pricing page to confirm the current entitlement before installing or planning a large run.

TradingView Strategy Optimizer FAQ

Is this a standalone backtesting engine?

No. The extension operates on a strategy loaded in TradingView and uses its Strategy Tester. It automates input changes and result collection; the chart and test settings remain in TradingView.

Which parameter types are supported?

Integer and decimal ranges, checkbox states, dropdown selections, and selected timeframes are supported. The strategy must expose an input before the extension can include it.

Does the optimizer find the best strategy?

It ranks the combinations tested on the selected historical sample. A top row is not proof of future performance or a deployable strategy; validate it on separate data and with realistic costs.

Can I export the optimization results?

Yes. Export the reviewed result table to CSV for filtering, documentation, or analysis in another tool.

What plan is required?

The current access requirement is Advanced or higher. Plan entitlements can change, so confirm the access page or pricing page immediately before use.

On this page