Example output
Here's a comprehensive Pine Script implementation for your backtesting requirements. This script uses the crossover strategy of a 9 EMA and 21 EMA with configurable parameters and includes the requested features.
This Pine Script implements a backtesting tool for a 9 EMA and 21 EMA crossover strategy with key features like on-chart visualization, performance metrics, and alerts. Adjust the inputs as needed to tailor the strategy to your requirements. Let me know if you'd like further customization!