OPEN-SOURCE SCRIPT
Swing Trading Low Risk Entry Pinescreener

Swing Trading Low Risk Entry – Pine Screener
Created by Colin Rogers
Last Update: Feb 13, 2026
Description:
This script is built for Pine Screener only. It provides clean numeric columns to help identify low-risk swing trading setups using ATR and moving average reclaim signals.
Unfortunately, pinescreener to my knowledge does not allow automatic updates to the screener unless you hit scan button (tradestation does this well w/ radar screen)
What It Shows:
1) % ∆ LOD
Measures how far price closed off the low of the day as a percentage of ATR(10).
Formula:
(close - low) / ATR(10)
Lower values mean price closed near the low relative to volatility. Useful for avoiding entries when a stock has already moved its full average move for the day (from Jeff Sun)
2) ATR Distance from 50 SMA
Shows how many ATRs price is above or below the 50-day SMA.
Formula:
(close - 50 SMA) / ATR(10)
Helps avoid buying over-extended stocks
good rule of thumb is ideally avoid stocks above 4x atr from the 50 sma
3) U&R Flags (10 / 20 / 50 / 100 SMA)
Triggers when price undercuts a moving average and closes back above it, or reclaims it after closing below the prior day.
Each moving average outputs its own screener column and returns 1 when active.
Intended Use:
Use in Pine Screener to filter for:
• Stocks near the 50-day SMA
• Controlled pullbacks
• Moving average reclaim setups
Designed for structured swing entries with defined risk.
Created by Colin Rogers
Last Update: Feb 13, 2026
Description:
This script is built for Pine Screener only. It provides clean numeric columns to help identify low-risk swing trading setups using ATR and moving average reclaim signals.
Unfortunately, pinescreener to my knowledge does not allow automatic updates to the screener unless you hit scan button (tradestation does this well w/ radar screen)
What It Shows:
1) % ∆ LOD
Measures how far price closed off the low of the day as a percentage of ATR(10).
Formula:
(close - low) / ATR(10)
Lower values mean price closed near the low relative to volatility. Useful for avoiding entries when a stock has already moved its full average move for the day (from Jeff Sun)
2) ATR Distance from 50 SMA
Shows how many ATRs price is above or below the 50-day SMA.
Formula:
(close - 50 SMA) / ATR(10)
Helps avoid buying over-extended stocks
good rule of thumb is ideally avoid stocks above 4x atr from the 50 sma
3) U&R Flags (10 / 20 / 50 / 100 SMA)
Triggers when price undercuts a moving average and closes back above it, or reclaims it after closing below the prior day.
Each moving average outputs its own screener column and returns 1 when active.
Intended Use:
Use in Pine Screener to filter for:
• Stocks near the 50-day SMA
• Controlled pullbacks
• Moving average reclaim setups
Designed for structured swing entries with defined risk.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.