r/TradingviewPinescript • u/ttc_pine • 12d ago
Tired of guessing the best inputs for your strategy? Here’s how I systematically find the top 5 settings
Ever spent hours (or days) tweaking two inputs on a strategy, only to realise the “good” settings stop working when the market regime changes?
That’s exactly why I built TTC Strategy + TTC Optimiser.

TTC Strategy looks at trend + support/resistance levels and paints coloured columns:
columns Turn Green → long signal
columns Turn Red → short signal
It has just two adjustable inputs. Simple idea… but finding the right combination for a specific symbol and timeframe is the real challenge.
that's where the optimiser comes in!

Instead of guessing, the Optimiser automatically tests hundreds of combinations (800 by default).
For every combination it runs a backtest on the available chart data, then ranks the results and shows you the top 5 based on either:
Highest Profitability, or
Highest Accuracy (win rate)
You can also filter by minimum/maximum number of trades, minimum PnL, minimum accuracy, set commission, and choose Long-only / Short-only / Both.
How to use the scripts
Drop the Optimiser on your chart
Choose custom ranges or one of the pre-built ranges
Pick your ranking criteria + filters
Run it → get the top 5 parameter sets
Plug the best ones into the actual TTC Strategy and review the full backtest report
Performance Reports
The following video present's the backtesting results of the TTC strategy using the best-performing parameter combinations identified by the TTC optimiser, based on the available chart data for the NIFTY 50 Index across eight timeframes: 1-minute, 3-minute, 5-minute, 10-minute, 15-minute, 30-minute, 1-hour and 4-hour.
detailed explanation of the scripts:
https://ttc-pine.github.io/TTC-strategy-and-optimiser/
Video tutorial on how to use the scripts:
youtu.be/wTk0xiiGbqU
TTC Strategy Link:
https://in.tradingview.com/script/xOOSVCnq-TTC-Strategy/
TTC Optimiser Link:
https://in.tradingview.com/script/tm3H7ppK-TTC-Optimiser/
We’d be happy to provide you with access to both scripts!
Simply share your TradingView username in the comments on Reddit or YouTube or TradingView, and we’ll arrange access for you.
We’d also love to hear your feedback! Please feel free to share your suggestions on what we could improve, enhance, or add to the scripts. Your feedback helps us make our tools better and more useful for everyone.
Curious what results other people are getting on different symbols/timeframes. Anyone else running systematic parameter searches on TradingView strategies? Happy to answer questions about how the optimiser works under the hood.