OPEN-SOURCE SCRIPT
Updated

VAJRA - π˜”π˜Œπ˜›π˜™π˜π˜Šπ˜š

π—ͺ𝗛𝗔𝗧 π—œπ—§ π——π—’π—˜π—¦

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.