

Kotak
Stockshaala
Chapter | 3 min read
Optimizing Strategy with Inputs & Backtest Control
You’ve now built your first working strategy.
But a static strategy: one locked to fixed values can’t adapt when market behavior changes.
That’s where optimization comes in.
By adding inputs, you can quickly test different parameter values, fine-tune risk control, and run focused backtests. All without rewriting code.
Why Use Inputs?
Instead of this:
Note: Pine Script™ is a trademark of TradingView Inc.
Disclaimer: This article is for informational purposes only and does not constitute financial advice. It is not produced by the desk of the Kotak Neo Research Team, nor is it a report published by the Kotak Neo Research Team. The information presented is compiled from several secondary sources available on the internet and may change over time. Investors should conduct their own research and consult with financial professionals before making any investment decisions. Read the full disclaimer here.
Investments in securities market are subject to market risks, read all the related documents carefully before investing. Brokerage will not exceed SEBI prescribed limit. The securities are quoted as an example and not as a recommendation. SEBI Registration No-INZ000200137 Member Id NSE-08081; BSE-673; MSE-1024, MCX-56285, NCDEX-1262.
Recommended Courses for you
Beyond Stockshaala
Discover our extensive knowledge center
Learn, Invest, and Grow with Kotak Videos
Explore our comprehensive video library that blends expert market insights with Kotak's innovative financial solutions to support your goals.














