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. קרא עוד ב־תנאי השימוש.