OPEN-SOURCE SCRIPT
Updated

VAJRA - 𝘔𝘌𝘛𝘙𝘐𝘊𝘚

293
𝗪𝗛𝗔𝗧 𝗜𝗧 𝗗𝗢𝗘𝗦

This script puts your trading strategy to the test across a diverse set of assets, including Bitcoin, Ethereum, and various cryptocurrencies. Using a score of either 1 (buy) or -1 (sell), it evaluates how robust your strategy really is. The script calculates key performance metrics like the Sharpe ratio, win rate, and drawdowns, giving you a clear picture of how your strategy performs across different markets.



𝗛𝗢𝗪 𝗧𝗢 𝗨𝗦𝗘

Start by replacing the score variable with your strategy’s signal, where 1 indicates a buy and -1 indicates a sell. The script automatically runs a backtest on a fixed list of 40 assets, ensuring a consistent and thorough assessment of your strategy’s robustness.



𝗕𝗔𝗖𝗞𝗧𝗘𝗦𝗧

Once configured, run the backtest. The results will display in a table on your chart, showing average performance metrics with easy-to-read color coding. Green indicates strong performance, while other colors help identify areas needing attention.



𝗜𝗧𝗦 𝗨𝗧𝗜𝗟𝗜𝗧𝗬

This script ensures your strategy is not just effective in one market but across multiple assets. It's a powerful tool for stress-testing and refining your trading approach, helping you confirm that your strategy is as solid as you believe.




// 𝐕 𝐀 𝐉 𝐑 𝐀 ⚡ 𝘛𝘏𝘜𝘕𝘋𝘌𝘙𝘉𝘖𝘓𝘛
Release Notes
+ 𝘈𝘚𝘚𝘌𝘛 𝘚𝘌𝘓𝘌𝘊𝘛𝘐𝘖𝘕 - 𝘓𝘖𝘈𝘋𝘐𝘕𝘎 𝘛𝘐𝘔𝘌

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.