What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
To backtest an indicator without curve fitting, turn it into fixed, executable trading rules; limit and record every setting you try; select rules using earlier development data; then test the unchanged rules on later data, with realistic costs and fills. Check results across relevant markets and periods, and treat them as uncertain historical evidence—not proof of future performance.
What does it mean to backtest an indicator?
An indicator is a calculation or display based on market data, not a complete trading strategy. A backtest needs rules that map indicator values to simulated orders, specify position size and exits, and say how and when those orders are filled. For example, “buy when the line crosses above its average” is incomplete unless you also define the instrument, timeframe, order timing, position size, exit, and cost assumptions.
TradingView’s Strategies FAQ describes one platform-specific way to convert an indicator script into a strategy: use a strategy declaration and order-placement commands. Other software or a custom simulator can implement the same underlying process. A simulation reports outcomes under its data and execution assumptions; it does not establish that live orders would receive those fills.
How do you define a test before optimizing?
Write the hypothesis and rules first
State why the indicator might contain useful information and what result would count against that explanation. Then record the test specification before searching for attractive settings:
#1 Best Overall
- Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
- Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
- Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
- Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
- 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
- The instruments or instrument universe and the timeframe.
- When a signal is evaluated and when an order can be placed.
- The exact entry and exit conditions, position-sizing rule, and order type.
- The data period, benchmark, and execution-cost assumptions.
This specification makes it harder to quietly change the entry, exit, market, or test window after seeing disappointing results. Keep a dated record of the rules and any later changes.
Make every rule deterministic
Two people implementing the same written rules should get the same signals and simulated orders from the same data. Define what happens when a signal repeats, when an order cannot be filled at the assumed price, and whether a position can reverse or add exposure. If these details are left implicit, the reported result may reflect the tester’s interpretation rather than the indicator hypothesis.
How many indicator settings should you test?
There is no universal safe number. Test a small set of values justified by the proposed behavior or the instrument, rather than scanning a broad range simply to find the best historical result. Record all variants tried—not only the winning configuration. A “variant” includes changes to parameters, entry or exit logic, symbols, timeframes, and test periods.
Rank #2
- 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
- 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
- Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
- 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
- What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.
The reason is selection bias: among enough trials, one can look unusually strong because it fits random features of the sample. Bailey, Ger, López de Prado, Sim, and Wu discuss this problem in Statistical Overfitting and Backtest Performance. Under a scenario they describe using five years of daily market data, their paper says that after selecting from 45 or more independent variations, the best strategy is more likely than not to have a Sharpe ratio of at least 1.0. That is a result under the paper’s assumptions, not a universal threshold or a rule that 44 trials are safe.
Recommended Free Tools
The paper also includes an illustrative simulation in which a selected variant’s in-sample Sharpe ratio was 1.59 and its out-of-sample Sharpe ratio was -0.18. Those figures describe that particular example, not typical outcomes for trading indicators. A separate explanatory article in Significance reports that, in a cited study of 452 anomaly indicators, 65% did not reach the stated single-test threshold of t = 1.96 or greater when analyzed correctly; the reported failure share was 82% under the more stringent criterion of t = 2.78 at the 5% significance level. Those figures belong to that study and should not be read as an expected failure rate for any one indicator. (Bailey and López de Prado, 2021.)
How do you test whether an indicator works out of sample?
Keep development and evaluation separate
Use earlier observations to develop and select the rules, and reserve later observations for a final, chronological test. The later segment should not influence parameter choices, logic changes, or decisions about which result to report. There is no single split ratio that is right for every market and timeframe; choose and document a separation that leaves enough data on both sides to make the exercise meaningful.
Rank #3
- Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
- Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
- Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
- Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
- What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
Once you inspect the holdout and change the strategy in response, that data has become development data. A new final evaluation then requires data that has not influenced those choices. This is why a holdout is not a cure for selection bias if it is repeatedly reused or if many strategies are tested against it and only the best is disclosed. TradingView’s strategy documentation explains in-sample and out-of-sample testing and cautions that no backtest can guarantee future performance.
Use additional checks without calling them proof
Repeated walk-forward windows can show whether a rule behaves similarly as the development and evaluation periods move through time. Multiple-testing methods can address selection risk more directly; for example, Bailey and colleagues’ Probability of Backtest Overfitting proposes a framework using combinatorially symmetric cross-validation. These approaches have assumptions and limitations. They can add evidence about robustness, but none turns a historical test into a guarantee.
How should you model costs, fills, and signal timing?
A strategy that trades frequently or has small apparent gains can look very different once trading frictions are included. Set commissions appropriate to the instrument and use plausible spread and slippage assumptions where your platform or simulator permits. Specify whether a signal observed at a bar’s close can only be acted on at a subsequent executable price; do not assume a fill at a price that was already known only after the signal decision.
Rank #4
- Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
- Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
- Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
- Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
- Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
TradingView’s strategy publishing rules require commissions unless a zero-commission assumption is clearly justified, and say strategies without commissions or with unrealistic cost assumptions will not be approved. That is a platform policy, not a universal cost model. Your assumptions still need to fit the market and order behavior being simulated.
Audit for lookahead and repainting
- Check that the signal uses only information available at the stated decision time. Final bar prices or volume cannot be treated as known before the bar completes.
- Check whether signals can change after they appear, or whether the script uses data from a later point in time. TradingView documents repainting and lookahead risks, including cases involving historical intrabar calculations.
- Review calculation settings. TradingView notes that
calc_on_order_fillscan create lookahead bias when historical calculations use current-bar final prices or volume for intrabar executions. - Verify the chart type and the prices that drive the simulation. Nonstandard charts can use synthetic prices that may not represent executable market prices.
The relevant behavior depends on how a particular script and platform are configured; a setting name alone does not establish that a test is biased. Inspect the data and timing assumptions in context. TradingView discusses these execution and historical-versus-real-time issues in its strategy documentation and FAQ.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.What should you compare besides the best return?
Evaluate the same candidate rules on consistent assumptions. Do not select a winner solely because it has the highest in-sample return or Sharpe ratio. Review:
Best Value
- 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
- Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
- Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
- HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
- What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
- In-sample results versus untouched out-of-sample results.
- Net performance after commissions and plausible execution costs.
- Drawdown, exposure, time in and out of the market, and trade count alongside returns.
- Performance across relevant instruments, periods, and market regimes.
- Sensitivity to small parameter changes: a sharp collapse around the selected setting can signal a fragile result.
- The number of variants tried and whether the full search was disclosed.
- Data timing, chart construction, and fill assumptions.
Compare with a simple baseline that makes sense for the market, such as an appropriate passive or no-signal alternative, using the same period and cost conventions. A result that depends on one instrument or a narrow market episode is weaker evidence of a repeatable effect than one that persists across relevant conditions. Historical relationships can also change, so even consistent past performance may decay.
Is 100 trades enough to trust a backtest?
No trade count is a universal statistical threshold. TradingView requires at least 100 trades for strategies it reviews for publication, but its rules also say timeframe matters and shorter-timeframe strategies need more trades for results to be considered reliable. Treat that as a platform publication rule, not proof that a strategy with 100 trades is valid or that one with fewer is automatically useless. The number needed to interpret a result depends on the strategy, market, period, and variability of outcomes.
Why can a strategy work in a backtest but fail live?
A strong historical result can be an artifact of selecting from many variants, a narrow market period, or assumptions about costs and fills that live trading does not match. It can also rely on information that was unavailable when the signal supposedly occurred, or on chart prices that are not executable. Review the trial log, holdout integrity, costs, data timing, and performance by period and instrument to identify which explanation is plausible; the backtest alone cannot settle live execution quality.
TradingView is one example of a platform that documents strategy simulation and reporting. Before relying on any platform’s result, verify that its data, features, cost settings, chart prices, and fill model fit the case you are testing. TradingView states: “No trading strategy can guarantee future performance, regardless of the data used for optimization and testing, because the future is inherently unknown.”
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

