💨Quickstart

Optimise your first strategy in just a few minutes

Optimiser Quickstart Video

Follow these steps to optimise your first strategy:

1. Load a TradingView Chart & Strategy

After installing The Optimiser,

Open TradingViewarrow-up-right and select a strategy (not an indicator).

Ensure the strategy is activearrow-up-right on your chart, so The Optimiser can detect its parameters (settings).

2. Open The Optimiser

Click the Optimiser's icon in your browser, while on the TradingView chart.

You’ll see several tabs (e.g., Backtesting Parameters, Strategy Backtest, etc.).

Open the Optimiser while on TradingView

3. Save Parameters to the Optimiser

Go to the Backtesting Parameters tab.

Click Get Parameters to save all adjustable parameters of your strategy to the Optimiser. This will also download a CSV listing these parameters.

circle-check
Get your current parameters
circle-info

Refresh the browser page if nothing happens after clicking Get Parameters

Now, you can either choose to optimize all parameters or select which ones to optimize. If you'd like to optimize all parameters skip the next step.

circle-exclamation

4. Edit and Upload Parameters (Optional)

Open the CSV file and edit it as desired—leaving only the rows of parameters you want to optimize, while deleting the rest.

circle-info

If the CSV doesn't appear correctly formatted (for example, using commas instead of semicolons), in your spreadsheet editor, go to the Data tab, then select Text to Columns to adjust the delimiters.

chevron-rightEditing the CSVhashtag

The CSV file has eight different columns which can be edited to adjust The Optimiser's behavior.

These columns represent the settings used for each parameter.

Here's a quick rundown of what they mean.

CSV file Columns/Settings

  • Parameter: The name of the parameter, corresponding to the setting in TradingView (e.g. “Stop Loss Long %”).

  • From: The minimum value for this parameter.

  • To: The maximum value for this parameter.

  • Step: The increment size used while testing. For example, if step is 0.1 and from is 0.5, it will move in 0.5, 0.6, 0.7… up to the to value.

  • Default: The parameter’s current default value in TradingView.

  • Priority: A number indicating the level of priority of the parameter .

  • Conditions: Optional constraints (e.g. <, >, =, etc.) to avoid unwanted results.

  • Source: This is what the parameter is compared against under the provided condition. For instance, So if your condition is < and your parameter is “Stop Loss Long %” while the source is “Take Profit Long %,” it filters for cases where the stop-loss percentage is lower than the take-profit percentage.

Return to the Backtesting Parameters tab in The Optimiser.

Click Upload Parameters and select your edited CSV.

The Optimiser will now optimize only the uploaded parameters.

5. Select your Strategy Optimization Parameters

Switch to the Strategy Backtest tab.

Tweak the Strategy Optimization Parameters settings to determine what to optimize for, such as max net profit, minimum drawdown, etc.

Set your Strategy Optimization Parameters

You can also set filters and choose a preferred search method to further fine-tune results.

6. Run the Test & Review Results

Click Test Strategy to launch the optimization.

Choose the number of test cycles (the suggested number—44 in the case below—is a good minimum target) then click Save & Run.

circle-info

For best results, choose at least a few hundred test cycles.

Run the optimization

When it completes, a CSV of the test results is downloaded (which logs each test iteration) with the best settings automatically applied to your TradingView strategy.

circle-info

At any time, you can use the Download results button under the Strategy Backtest tab to download the last test results.

7. Re-upload Preferred Settings (Optional)

You can also Sort or filter the downloaded CSV to find the best settings to maximise a preferred outcome, such as max drawdown, average winning trade, etc.

If desired, re-upload the downloaded CSV with your desired “best” row (delete all other rows) to automatically set those parameters in TradingView.

To do this, click the Strategy Settings button in TradingView then the Upload Icon as shown below.

Re-upload settings to TradingView
circle-exclamation

Last updated