OPEN-SOURCE SCRIPT
Chart Custom Period Scanner

How it Works
1. The Scanner (Inputs): The script defaults to a 20-bar lookback. This means it scans the last 20 candles. You can change this to 50, 200, or any number you like in the settings menu.
2. The Logic:
* It calculates the Highest Price reached in that past period.
* It calculates the Lowest Price reached in that past period.
3. The Suggestion:
* BUY: If the current price breaks above the highest price of your past period, it suggests the trend is turning bullish.
* SELL: If the current price breaks below the lowest price of your past period, it suggests the trend is turning bearish.
1. The Scanner (Inputs): The script defaults to a 20-bar lookback. This means it scans the last 20 candles. You can change this to 50, 200, or any number you like in the settings menu.
2. The Logic:
* It calculates the Highest Price reached in that past period.
* It calculates the Lowest Price reached in that past period.
3. The Suggestion:
* BUY: If the current price breaks above the highest price of your past period, it suggests the trend is turning bullish.
* SELL: If the current price breaks below the lowest price of your past period, it suggests the trend is turning bearish.
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.