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).
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.