OPEN-SOURCE SCRIPT

Buy-and-hold strategy stats

When you develop your own strategy you should compare its performance to the "buy-and-hold" strategy (you buy the financial instrument and you hold it long term). Ideally your strategy should perform better than the buy-and-hold strategy. While the net profit % of the buy-and-hold strategy is available under the "Performance Summary" tab of the "Strategy Tester" there are other factors that should be considered though. This is where this strategy comes in. It mimics the buy-and-hold strategy and gives you all the stats that are available for any strategy. For example, one such criteria that should be considered is the max. drawdown. Even if you strategy performs worse than the buy-and-hold strategy in terms of net profit, if the max. drawdown of your strategy is considerably lower than that of the buy-and-hold it may overall be a better strategy than the buy-and-hold as, in this scenario, it likely exposes the investor to significantly less risk.
buyandholdMoving Averages

نص برمجي مفتوح المصدر

قام مؤلف هذا النص البرمجي بنشره وجعله مفتوح المصدر، بحيث يمكن للمتداولين فهمه والتحقق منه، وهو الأمر الذي يدخل ضمن قيم TradingView. تحياتنا للمؤلف! يمكنك استخدامه مجانًا، ولكن إعادة استخدام هذا الرمز في المنشور يخضع لقواعد‎‎قوانين الموقع. يمكنك جعله مفضلاً لاستخدامه على الرسم البياني.

هل تريد استخدام هذا النص البرمجي على الرسم البياني؟


يعمل أيضًا:

إخلاء المسؤولية