Docs
Documentation
TradingView Strategy Optimizer grid-searches the inputs of a Pine strategy through TradingView's own Strategy Tester and ranks the results, all inside your browser. This page explains what it does and how to use it end to end.
Getting started
- Create your account. Sign in with Google. Your free trial starts right away, no card required.
- Install the extension. Add it to Chrome or Firefox.
- Sign in to the extension. Open the side panel and sign in with the same Google account to unlock it. There is no token to copy.
- Attach to a chart. Open a TradingView chart that has a Pine strategy applied, and the panel reads its inputs.
Configuring a search
The panel reads every input the strategy exposes, typed and grouped exactly as the author defined them. For each input you decide how it varies:
- Fixed. Leave it at a single value to hold it constant.
- Range. For numbers, set a start, stop, and step. The tool expands the range into every value in between.
- Value set. Pick specific values (or options for a select or boolean) to test only those.
The panel shows a live count of how many combinations your choices produce, so you can widen or narrow the search before you commit to it.
Running a search
A run applies each combination to the chart, waits for TradingView's Strategy Tester to recompute, and reads the resulting metrics. Runs are built to survive long sweeps:
- Pause and resume. Stop a run and continue the same session later, exactly where it left off.
- Skip already tested. Combinations you have already run successfully are skipped, so re-running never repeats work.
- Randomize order. Test combinations in a shuffled, reproducible order instead of sequentially.
- Throttle. Add pacing and random pauses between combinations to keep the run gentle on TradingView.
Exploring results
Results land in a table you can sort, filter, and compare by any metric TradingView reports (net profit, profit factor, drawdown, trade count, and the rest). Open the full-page explorer for more room, and use the combined view to union several sessions into one ranked table.
Saving and sharing configurations
Save a search as a named configuration, scoped to its strategy, so you can restore it later with every range and value set intact. Export a configuration to JSON to back it up or move it to another machine, and import one to load it straight back into the panel.
Alerts
Turn a winning combination into a TradingView alert directly from a result row. The tool builds the alert with the exact inputs of that combination and a message template, so the strategy you optimized is the strategy that fires.
Your data
The extension is local-first. Every input, combination, and result stays in your browser's local storage, never on our servers. See the privacy policy for the full detail.
Need help?
Stuck, or found a bug? Email us at support@strategy-optimizer.app. Have an idea? Send a suggestion the same way.