Recovery Adaptive Optimizer [Starbots]

https://www.tradingview.com/script/KukOMcYR-Recovery-Adaptive-Strategy-Starbots/
It enables professional traders and quantitative researchers to systematically evaluate thousands of parameter combinations directly within Pine Script, without relying on external tools.
The optimizer performs a full simulation of the strategy logic, replicating adaptive position sizing, dynamic take-profit expansion, and loss-streak behavior with precision.
🧠 Optimization Methodology
The optimizer executes a multi-configuration simulation grid in parallel, where each configuration represents a unique combination of:
Base Take-Profit (%)
Take-Profit Factor
Stop-Loss (%)
Position Size Factor
Volatility Filter (On / Off)
Flat-Market Filter (On / Off)
Trend Filter (On / Off)
Each configuration is evaluated using the same execution logic as the strategy:
Single-position model
Loss-streak-based scaling
Step-capped progression
Bar-confirmed entries and exits
Commission-aware equity accounting
This allows precise comparative analysis across high-volatility market conditions, where parameter sensitivity and expansion behavior are most relevant.
Optional features include:
Higher-timeframe signal evaluation
Volatility-conditioned execution
Flat-market exclusion
EMA trend alignment (manual toggle)
All filters can be evaluated independently across the optimization grid.
📊 Performance Metrics & Ranking
Each configuration is evaluated using multiple institutional-grade metrics:
Net Profit (%)
Maximum Drawdown (%)
Win Rate
Trade Count
Equity Curve Peak-to-Valley 'Drawdown'
Configurations are ranked using a score metric:
Score = Profit % ÷ Max Drawdown %
This allows rapid identification of parameter sets that balance performance efficiency and capital utilization.
🏆 Automated Best-Case Selection
At the end of the historical data window, the optimizer additionally identifies and displays:
🏆 Best Configuration by Net Profit
🛡️ Best Configuration by Lowest Drawdown
🎯 Best Configuration by Win Rate (with optional minimum profitability threshold)
Top-ranked configurations are displayed via ranked comparison table (Top 5 or Top 15 results)
🧩 Intended Use
This optimizer is designed for:
Professional traders
Systematic strategy developers
Quantitative research
Parameter tuning for volatile markets
Strategy calibration across different instruments and timeframes
It provides a structured, transparent environment for identifying robust parameter clusters rather than single isolated results.
Skrip jemputan sahaja
Hanya pengguna disahkan oleh penulis boleh mengakses skrip ini. Anda perlu memohon dan mendapatkan kebenaran untuk menggunakannya. Keizinan selalunya diberikan selepas pembayaran. Untuk lebih butiran, ikuti arahan penulis di bawah atau hubungi Starbots secara terus.
TradingView TIDAK menyarankan pembayaran atau penggunaan skrip kecuali anda mempercayai sepenuhnya penulis dan memahami bagaimana ia berfungsi. Anda juga boleh menjumpai alternatif sumber terbuka dan percuma yang lain di dalam skrip komuniti kami.
Arahan penulis
Penafian
Skrip jemputan sahaja
Hanya pengguna disahkan oleh penulis boleh mengakses skrip ini. Anda perlu memohon dan mendapatkan kebenaran untuk menggunakannya. Keizinan selalunya diberikan selepas pembayaran. Untuk lebih butiran, ikuti arahan penulis di bawah atau hubungi Starbots secara terus.
TradingView TIDAK menyarankan pembayaran atau penggunaan skrip kecuali anda mempercayai sepenuhnya penulis dan memahami bagaimana ia berfungsi. Anda juga boleh menjumpai alternatif sumber terbuka dan percuma yang lain di dalam skrip komuniti kami.