OPEN-SOURCE SCRIPT
Drawdown [WynTrader]

Drawdown [WynTrader]
Hello my friend
Before trading an unfamiliar asset, it's worth seeing how it survived its toughest moments — including major market crashes. This indicator reveals every significant decline a security has experienced: how far it dropped, and how long it took. Seeing a past drawdown of -54% over 13 months makes the next correction far less intimidating.
Use it to measure real risk, set realistic expectations, and trade with more confidence.
█ CONCEPTS
A drawdown is the decline from a price peak to the lowest point that follows. The indicator automatically detects every peak and trough, filtering out noise to keep only declines at or above your chosen threshold (default: 20%).
█ FEATURES
Threshold — Set the minimum decline to display, so only meaningful crashes appear.
Boxes & Labels — Each drawdown is highlighted on the chart from peak to trough, labeled with its duration and amplitude (e.g., 13M -54%).
History Table — Lists every recorded drawdown with start/end dates, span, and decline %. Sortable and adjustable in size.
█ CONCLUSION
Before investing, check an asset's drawdown history: how deep, how long, did it recover? These questions reveal its true volatility and resilience. A chart without this history tells only half the story.
█ WYNTRADER
I'm not a Pine Script programmer — just a trader building tools for my own analysis. A few rough edges may remain. Enjoy!
WynTrader
Hello my friend
Before trading an unfamiliar asset, it's worth seeing how it survived its toughest moments — including major market crashes. This indicator reveals every significant decline a security has experienced: how far it dropped, and how long it took. Seeing a past drawdown of -54% over 13 months makes the next correction far less intimidating.
Use it to measure real risk, set realistic expectations, and trade with more confidence.
█ CONCEPTS
A drawdown is the decline from a price peak to the lowest point that follows. The indicator automatically detects every peak and trough, filtering out noise to keep only declines at or above your chosen threshold (default: 20%).
█ FEATURES
Threshold — Set the minimum decline to display, so only meaningful crashes appear.
Boxes & Labels — Each drawdown is highlighted on the chart from peak to trough, labeled with its duration and amplitude (e.g., 13M -54%).
History Table — Lists every recorded drawdown with start/end dates, span, and decline %. Sortable and adjustable in size.
█ CONCLUSION
Before investing, check an asset's drawdown history: how deep, how long, did it recover? These questions reveal its true volatility and resilience. A chart without this history tells only half the story.
█ WYNTRADER
I'm not a Pine Script programmer — just a trader building tools for my own analysis. A few rough edges may remain. Enjoy!
WynTrader
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
WynTrader
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
WynTrader
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.