OPEN-SOURCE SCRIPT
Dead Simple Reversal

This is the Pine Script port of the open source indicator Dead Simple Reversal by paidtofade, originally created for Tradovate. All logic and settings are exactly the same as the original version.
─── How It Works ───
The indicator identifies potential reversal bars using three conditions checked on the prior and current candle, compared against rolling high/low windows at two lookback periods.
Buy Signal
Sell Signal
The third condition in each case uses a 4-bar history window of the long-term rolling high/low to detect when the longer lookback has shifted compared to the shorter one.
─── Settings ───
─── How It Works ───
The indicator identifies potential reversal bars using three conditions checked on the prior and current candle, compared against rolling high/low windows at two lookback periods.
Buy Signal
- Prior bar closed bearish; current bar closes bullish
- Current close is above the prior bar's open
- Any of the last 4 long-term lows is greater than the current near-term low
Sell Signal
- Prior bar closed bullish; current bar closes bearish
- Current close is below the prior bar's open
- Any of the last 4 long-term highs is less than the current near-term high
The third condition in each case uses a 4-bar history window of the long-term rolling high/low to detect when the longer lookback has shifted compared to the shorter one.
─── Settings ───
- Near Term Period — Lookback for near-term high/low (default: 3)
- Long Term Period — Lookback for long-term high/low (default: 50)
- Up Color — Color for buy signals (default: cyan)
- Down Color — Color for sell signals (default: cyan)
- Opacity — Signal marker opacity, 0–100 (default: 100)
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
discord.gg/REapC6SGtz
b3artrades@gmail.com
b3artrades@gmail.com
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
discord.gg/REapC6SGtz
b3artrades@gmail.com
b3artrades@gmail.com
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.