OPEN-SOURCE SCRIPT
Double Top/Bottom Screener

t must look across all USA Stocks that is traded on Exchanges : Nasdaq, Nyse, Amex and have volume traded today bigger than 1mln. so on all of this stock look for this pattern and give alert, when it appears.
Step 1: Identify Swing Highs & Lows on 1 minute timeframe
- price bars that stand out from the 5 bars on each side (left and right). A swing high is a bar whose high is higher than the 5 bars before and after it. A swing low is a bar whose low is lower than the 5 bars before and after it.
Step 2: Draw Horizontal Lines
When a swing high/low is identified, the scanner draws a horizontal line from that point extending to the right of the chart.
Step 3: Monitor Price Returns
The scanner continuously watches for price to return to these horizontal lines. When price approaches and touches the line:
* Resistance: Price touches from below and closes below the line
* Support: Price touches from above and closes above the line
Step 4: Generate Alerts
When price touch the support/resistance level (bounces off it), an alert is generated at the close of that bar.
Step 1: Identify Swing Highs & Lows on 1 minute timeframe
- price bars that stand out from the 5 bars on each side (left and right). A swing high is a bar whose high is higher than the 5 bars before and after it. A swing low is a bar whose low is lower than the 5 bars before and after it.
Step 2: Draw Horizontal Lines
When a swing high/low is identified, the scanner draws a horizontal line from that point extending to the right of the chart.
Step 3: Monitor Price Returns
The scanner continuously watches for price to return to these horizontal lines. When price approaches and touches the line:
* Resistance: Price touches from below and closes below the line
* Support: Price touches from above and closes above the line
Step 4: Generate Alerts
When price touch the support/resistance level (bounces off it), an alert is generated at the close of that bar.
Script de código abierto
Siguiendo fielmente el espíritu de TradingView, el creador de este script lo ha publicado en código abierto, permitiendo que otros traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Puede utilizarlo de forma gratuita, pero tenga en cuenta que la publicación de este código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.
Script de código abierto
Siguiendo fielmente el espíritu de TradingView, el creador de este script lo ha publicado en código abierto, permitiendo que otros traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Puede utilizarlo de forma gratuita, pero tenga en cuenta que la publicación de este código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.