OPEN-SOURCE SCRIPT
Power Trend IBD

Power Trend (PT) indicator based on Market School Rules by Investors Business Daily (IBD).
PT turns ON only when ALL 4 conditions are met at the same time:
• Low > 21 EMA for 10 or more consecutive days
• 21 EMA > 50 SMA for 5 or more consecutive days
• 50 SMA is rising (higher than the previous day)
• Current bar is up (closes higher than it opens)
PT turns OFF the moment the 21 EMA crosses below the 50 SMA.
It is fully stateful — once triggered ON, it remains active until the explicit OFF cross occurs (even if some market conditions weaken temporarily).
PT turns ON only when ALL 4 conditions are met at the same time:
• Low > 21 EMA for 10 or more consecutive days
• 21 EMA > 50 SMA for 5 or more consecutive days
• 50 SMA is rising (higher than the previous day)
• Current bar is up (closes higher than it opens)
PT turns OFF the moment the 21 EMA crosses below the 50 SMA.
It is fully stateful — once triggered ON, it remains active until the explicit OFF cross occurs (even if some market conditions weaken temporarily).
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.