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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.