Pine Script v5 Snippet for Enhanced TradingView Strategy Alerts

Job ID: 37390808

Budget: $10 – $30 USD

I am looking for a proficient developer with experience in Pine Script v5 to create a code snippet that can be added to any existing TradingView strategy. The primary function of this snippet is to generate a JSON output with detailed strategy performance metrics, which will be used for alerts. This output should mirror the exact values provided in TradingView’s built-in backtester under the "Overview" and "List of Trades" tabs.
Specific Requirements:
JSON Output Creation: The snippet must construct a JSON object with the following data fields:
Net Profit in Percentage: The total net profit of the strategy, represented as a percentage.
Total Closed Trades: The total number of trades that have been closed.
Percent Profitable: The percentage of trades that were profitable.
Profit Factor: The ratio of gross profit to gross loss.
Max Drawdown in Percentage: The maximum observed loss from a peak to a trough of a portfolio, before a new peak is attained.
Avg Trade in Percentage: The average profit or loss per trade, represented as a percentage.
List of Trades: An array of trade objects, each containing:
Trade Number
Trade Open Date and Time
Trade Close Date and Time
Cumulative Profit in Percentage
Accuracy: The data in the JSON output must exactly match the values displayed in TradingView's "Overview" and "List of Trades" tabs for the strategy's backtest results.
Integration: The snippet should be designed in a way that allows for easy attachment to any TradingView strategy.
Documentation: Brief documentation explaining how to integrate the snippet with a strategy and how to set up alerts using the JSON output.
Testing: The snippet should be thoroughly tested to ensure data accuracy and performance.
Delivery: The final code should be delivered in a .txt file, ready for implementation.
Project Deliverables:
Pine Script v5 snippet (.txt file).
Documentation on how to use the snippet.
Additional Information:
Please confirm that you have experience with Pine Script v5 and TradingView’s strategy tester.
Indicate your estimated time to completion and total cost for the project.
Include examples of previous work with Pine Script, if available.

Please reach out with any questions or to discuss any aspect of the project in more detail.
Related categories: Software Architecture Pine Script