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.
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。