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提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。