Indicator · Pine Script v5 · On the chart

US Swing Entry Planner

by kevinesk

US Swing Entry Planner plans swing trading entries on daily price charts using dual entry models: pullback limit buys near the fast EMA and breakout buy-stop orders above pivot highs.

View on GitHub

GitHub stars1on the repository
Pine versionv5runs as is
Lines of code215
Settings22inputs
LicenceNone stated
Last update4 months ago12 Jun 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

US Swing Entry Planner calculates ATR-based stop loss and profit targets along with position sizes based on user-defined portfolio value and risk parameters. An anti-FOMO filter flags extended price moves to prevent late entries, while optional hammer detection adds candle confluence. Plotted directly on the price chart with a heads-up display order ticket, users can adjust EMA lengths, ATR multipliers, and account sizing settings.

Details

Published by

kevinesk on GitHub

Draws

On the price chart

Markets

Stocks

Timeframes

H4 and above

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Fast EMA (pullback buy line)int10ema_fast_len
Slow EMAint20ema_slow_len
Anchor EMA (trend floor)int50ema_anc_len
Long EMA (regime)int200ema_long_len
Pullback band above Fast EMA (%)float2.0pull_band_pct
Pivot High Lookback (bars)int20pivot_lookback
Coiling: within % below pivotfloat4.0near_pivot_pct
Buy-stop buffer above pivot (%)float0.3bo_buffer_pct
Extended if price > N% above Fast EMAfloat6.0ext_thresh_pct
ATR Periodint14atr_len
Stop ATR xfloat2.0atr_sl_mult
TP1 ATR xfloat3.0atr_tp1_mult
Show all 22 settings
SettingTypeDefaultVariable
TP2 ATR xfloat6.0atr_tp2_mult
Portfolio Value (USD)float50000.0portfolio_usd
Risk per Trade %float1.0risk_per_trd
Max Position % of Portfoliofloat8.0max_pos_pct
Flag hammer on the entry barbooltrueuse_hammer
Min Lower Wick / Bodyfloat2.0hammer_wick_mult
Max Upper Wick / Bodyfloat0.5hammer_upper_max
Plot order levels (Buy/Stop/TP)booltrueshow_lines
HUD PositionstringTop RighthudPosStr
Text SizestringNormaltxt_size_in
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

5 stars

Calculates short and long Exponential Moving Averages alongside pivot high and low levels to identify breakout signals. The indicator plots a 20 EMA and a 50 EMA on the main price chart. It evaluates trend direction based on EMA crossover alignment, checks for

Indicator v4 Moving averagesTrend
Updated 3 years ago · Apache-2.0 GitHub repository of 20 EMA + 50 EMA + Breakout
3 stars

The Krypton Indicator overlays trend analysis, buy and sell zones, and sentiment tracking directly onto the price chart. It calculates a dual moving average trend filter, renders supply and demand zones, and plots a sentiment line to identify market momentum.

Indicator v5 TrendSupport & resistance Repaints
Updated 5 months ago · None stated GitHub repository of Krypton Indicator

This indicator plots multiple moving averages including SMA10, SMA50, SMA100, SMA200, Ichimoku conversion and lead lines, and 52-week high and low levels on the price chart. It detects breakouts using volume multiplier, optional gaps, and strong candle require

Indicator v6 BreakoutMoving averages Repaints
Updated 10 months ago · MIT GitHub repository of Ede – MA + Breakout Strategie (Dynamic MAs)

Sideway Zones Live

by dearvn
257 stars

Sideway Zones Live is an overlay indicator that estimates inner and outer sideways bands from recent highs and lows with a rational quadratic kernel. It tracks swing pivots over a loopback period and counts bars that remain between the outer high and low. Afte

Indicator v5 TrendSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Sideway Zones Live

Ichimoku Cloud

by harryguiacorn
220 stars

This indicator plots Ichimoku Cloud elements on the price chart, including Tenkan-sen, Kijun-sen, Senkou Span A and B lines with optional Chikou Span. It signals trend changes via Tenkan-sen and Kijun-sen crosses and places arrows at Kijun-sen direction shifts

Indicator v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Ichimoku Cloud

More Trend scripts

Related on ForexR

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers