OPEN-SOURCE SCRIPT
supertrend long

📌 Supertrend Short Strategy — Bear Trend Filter
This strategy focuses on short entries during bearish conditions using Supertrend direction as a trend filter.
🔍 Core Logic
Detects bearish trend using Supertrend calculation.
Only executes entries in the direction of the main trend.
Trade signal occurs when a breakdown happens below short-term structure or after continuation momentum.
Stop Loss and Take Profit levels are automatically calculated using previous volatility.
🎯 Best Use Case
Recommended timeframes: 1H / 4H
Works on crypto, FX and index futures charts.
Designed for momentum continuation and retest failures, not for reversal trading.
🛡 Risk Management & Features
Automatic dynamic SL/TP placement
No repaint on historical signals
Provides alert conditions for automation usage (Webhook / Bot)
⚠ This script is not financial advice. It is a technical research tool intended for educational and testing purposes.
This strategy focuses on short entries during bearish conditions using Supertrend direction as a trend filter.
🔍 Core Logic
Detects bearish trend using Supertrend calculation.
Only executes entries in the direction of the main trend.
Trade signal occurs when a breakdown happens below short-term structure or after continuation momentum.
Stop Loss and Take Profit levels are automatically calculated using previous volatility.
🎯 Best Use Case
Recommended timeframes: 1H / 4H
Works on crypto, FX and index futures charts.
Designed for momentum continuation and retest failures, not for reversal trading.
🛡 Risk Management & Features
Automatic dynamic SL/TP placement
No repaint on historical signals
Provides alert conditions for automation usage (Webhook / Bot)
⚠ This script is not financial advice. It is a technical research tool intended for educational and testing purposes.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
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.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
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.