Auto Swing Trade Set Up v1.0 by [Itto-Ryu]Auto Swing Trade Set Up v1.0 is a Pine Script indicator for TradingView, built for swing traders who have already decided their directional bias from external analysis and need a clean, math-consistent way to draw their entry, stop loss, take profit, and reversal levels on the chart.
Element Visual Purpose
Z1 (first fill) Solid amber box Primary entry zone
Z2 (averaging) Dashed amber box Secondary fill if price extends
Entry mid Dotted amber line The midpoint reference
SL Thick red line Stop loss (ATR-based)
TP1 Green dotted line Take 50% off here
TP2 Teal dotted line Take next 50% (or trail)
SFlip Purple dashed line Above this: Long thesis broken
LFlip Pink dashed line Below this: Short thesis broken
Direction badge Right of price ▲ LONG / ▼ SHORT + R:R ratio
Who This Is For
This tool is built for:
• Discretionary traders who form directional bias from fundamentals, news, sentiment, or proprietary analysis — and need a quick way to mark levels on the chart.
• CMT analysts who score setups using the 7-Pillar Rule-Based System and want the chart to reflect the decision, not make it.
• Crypto / FX / equity swing traders who think in pullback entries with averaging zones,
ATR-anchored stops, and R:R-based targets.
• Anyone who finds full-auto indicators noisy — too many false signals, too many ignored alerts,
too many overrides.
Who This Is NOT For
• Traders who want the indicator to tell them what to do.
• Algorithmic / fully automated systems
• Beginners who haven't yet developed a directional framework.
Principle One : Math, Not Judgment
All level calculations are pure formulas: entry midpoint, ATR multiples, R:R ratios. No conditional logic.No "if RSI is overbought then shift the stop." The same inputs always produce the same outputs.Why this matters: reproducibility. If you mark a Long on BTCUSD at 18:00 with these settings, then check the same chart tomorrow, the zones will be in the same place relative to that bar. There is no hidden state, no learned behavior, no drift.
Principle Two : One Decision, Many Outputs
The only decision you make is Long or Short. From that one bit of information, the indicator produces nine distinct visual elements (two zones, entry mid, SL, TP1, TP2, SFlip, LFlip, direction badge with R:R) each of them quantitatively derived
Why Manual Direction
The trader required to use other indicator for trend identifier and momentum such as EMA 20/50/100/200 , Ichimoku Cloud ,Price pattern and Dow theory , MACD, RSI ,ADX and etc. depend on their familiar or expertise in order to identify the whether they will open Long or Short . This indicator will help trader to get an outline instantly of action zone , entry , SL , TP and other critical point . However , manual decision for short or long might have an advantage because the auto detection or trend following signal might have a fall back as bellowing
• Chop kills auto signals. When price oscillates near the threshold, the indicator flips
Long-Short-Long, generating false setups every few bars.
• Late entries on real moves. When a strong trend breaks out, the indicator confirms only after the optimal entry zone has passed.
• Wrong side on news shocks. When fundamentals (CPI, FOMC, earnings) drive a sudden direction change, technicals lag the move by hours.
So , in practical especially swing trader who gain the profit from the gap might are required to doing the preemptive action such as open short 10% or a few portion when their consider it might be a peak so they can open in the good position before the signal is confirm
The Entry Midpoint
The entry midpoint (entryMid) is the single most important value the indicator computes. Everything else zones, SL, TP, flips — is derived from it.
Reference Selection
Two reference lines are pulled from the chart:
• EMA Fast (default length 20) — the standard short-term trend follower
• BB Basis (SMA-20) — the midline of the Bollinger Band system
The indicator then picks the appropriate one based on your chosen direction:
refHi = max(EMA20, BB_basis)
refLo = min(EMA20, BB_basis)
entryMid = isLong ? refHi : refLo
Rationale: For a Long, you want to enter on a pullback toward a support reference — the higher of the two candidates is usually closer to current price, making fills more likely. For a Short, the inverse.
ATR Clamping
Raw EMA/BB references sometimes sit too close to (or too far from) current price to be useful as entry zones. The indicator clamps the entryMid into a sensible band defined by ATR:
// LONG case
if entryMid > close: // too high
entryMid = close − ATR × 0.3
elif entryMid < close − ATR × 0.7: // too low
entryMid = close − ATR × 0.5
Dual Entry Zones
The indicator paints two zones stacked around the entryMid:
Zone Formulas
For a Long setup:
zone1Hi = entryMid + ATR × Z1_width // above mid
zone1Lo = entryMid // at mid
zone2Hi = entryMid // at mid
zone2Lo = entryMid − ATR × Z2_width // below mid
For a Short setup, the geometry inverts: Z1 sits below mid (first fill on a rally) and Z2 sits above
(averaging if rally extends).
Default Widths
Parameter Default Meaning
Z1 width 0.3 × ATR Slim zone for primary fill
Z2 width 0.6 × ATR Wider zone for averaging fills
How to Use Each Zone
Z1 (first fill, solid amber): Your primary entry. Allocate the larger portion of your intended position size here. Typical approach is 60-70% of position into Z1.
Z2 (averaging, dashed amber): Only triggers if price pushes past entryMid into the deep zone. Allocate the remaining 30-40% here. Beyond Z2, the next reference is SL — if price reaches SL without bouncing, the trade is invalidated and you accept the loss as planned.
Warning: Z2 is for averaging, NOT for unlimited adding. The math assumes total position cost basis falls between entryMid and Z2's deep edge. Adding outside Z2 voids the SL/TP geometry — your actual R:R will not match what's displayed.
Stop Loss (SL)
// LONG
slLevel = entryMid − ATR × SL_multiplier
// SHORT
slLevel = entryMid + ATR × SL_multiplier
risk = abs(entryMid − slLevel)
Default SL multiplier: 1.5 × ATR. This places the stop outside ordinary volatility, reducing premature stop-outs from noise while keeping the loss bounded.
Take Profit (TP1 & TP2) TPs are computed by R:R multiples of the calculated risk:
// LONG
tp1Level = entryMid + risk × TP1_RR // default RR = 1.5
tp2Level = entryMid + risk × TP2_RR // default RR = 2.5
// SHORT (subtract instead of add)
Execution playbook:
• TP1 hit: Close 50% of position. Move SL to breakeven (entryMid) for the remainder.
• TP2 hit: Close 25% of position. Trail the final 25% with EMA20 or a moving stop.
• Beyond TP2: You are now in a runner. The trade has paid its R, your downside is zero (breakeven SL). Let the winner work.
Flip Lines (SFlip & LFlip)
Flip lines mark the points where your directional thesis is broken. If price closes past a flip line, you should re-evaluate — possibly exiting and flipping direction.
// LONG case
shortFlip = entryMid + ATR × Flip_multiplier // upside flip
longFlip = slLevel // = SL
// SHORT case
shortFlip = slLevel // = SL
longFlip = entryMid − ATR × Flip_multiplier // downside flip
Default Flip multiplier: 2.0 × ATR. The asymmetry is deliberate: one flip line coincides with your SL(because if SL is hit, the thesis is dead by definition); the other sits one extra ATR's worth out, marking the point where the OPPOSITE trade would now make sense.
Settings & Configuration
All settings are accessible via the indicator's Settings dialog in TradingView. Defaults are tuned for swing trading on 1H-Daily charts; adjust per timeframe and instrument.
Trade Direction Group
Input Type Default Purpose
Direction Dropdown Long Pick Long or Short
Show Zones Checkbox True Master on/off for all visuals
Risk Settings Group
Input Default Purpose
SL = ATR x 1.5 Stop multiplier
TP1 R:R 1.5 First profit target ratio
TP2 R:R 2.5 Second profit target ratio
Flip = ATR x 2.0 Direction-flip threshold
Line Length 50 bars How far back lines/boxes extend
Zone 1 width 0.3 × ATR Slim entry zone
Zone 2 width 0.6 × ATR Wide averaging zone
Tuning Per Timeframe
The defaults are a balanced compromise. For your style, consider:
Timeframe SL TP1 TP2 Flip
Scalp (5-15m) 1.0 1.0 1.5 1.5
Intraday (1H) 1.2 1.5 2.5 2.0
Swing (4H-D) 1.5 (default) 1.5 2.5 2.0
Position (D-W) 2.0 2.0 3.5 3.0
Common Mistakes To Avoid
• Re-running the indicator after price has moved. The zones recompute live on each bar. If you
formed your thesis at one bar's close, place your orders at THOSE levels, not the levels the indicator shows three bars later.
• Flipping direction without exiting first. Toggling Long → Short while a Long position is open
generates new zones for the Short setup but does NOT close your Long. Close manually first.
• Trading both directions on the same chart. Don't load two instances. Use one chart per
directional view. If you need to see both, use chart layouts (vertical split).
• Ignoring the SFlip / LFlip lines. These are not decorative. When price breaks them on a closing
basis, your thesis is broken. Acknowledge it.
• Over-tweaking the ATR multipliers per trade. Pick a setting per timeframe and stick with it for at least 20 trades before adjusting. Frequent tweaking is curve-fitting.
Enjoy ! developed by Thiranat Ngamchitcharoen (Itto-Ryu)
( Itto-Ryu is derived from school of one cut , this inspired me to create the series of indicator that help the trader which often need to make a decision at a glance before a good position have passed . )
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
Thiranat
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.
Indicator

Indicator

Market Structure Break Targets [UAlgo]The "Market Structure Break Targets " indicator is designed to identify and visualize key market structure points such as Market Structure Breaks (MSBs) and Break of Structures (BoS). These points are crucial for understanding market trends and potential reversal zones. By plotting these structures on the chart, traders can easily spot significant support and resistance levels, as well as potential entry and exit points.
This indicator uses a combination of swing highs and lows to determine market structures and calculates targets based on user-defined percentages or Average True Range (ATR) multipliers. It provides visual cues in the form of lines, labels, and boxes to help traders quickly interpret market conditions.
🔶 Key Features
Customizable Swing Length: Users can set the swing length to identify the pivot highs and lows, which are crucial for determining market structure.
Target Duration Bars: Defines the maximum duration (in bars) for which the targets will be considered valid.
Target Calculation Methods: The target levels are crucial for setting potential price objectives. The calculation can be based on a percentage move from the identified pivot or using the ATR to factor in market volatility. These targets help in setting realistic profit-taking levels or identifying stop-loss placements.
Bullish and Bearish Market Structure Break (MSB): Detects and highlights bullish and bearish market structure breaks with customizable colors and target percentages.
Bullish MSB
When the price closes above a significant pivot high, a bullish MSB is identified. The indicator will draw a line at this level and calculate a target based on the chosen method (percentage or ATR). The target is visualized with a dotted line, and a label "MSB" is displayed. Additionally, an order block is created at the level of the bullish MSB. This order block is highlighted with a semi-transparent box, representing a potential area where price might find support in the future.
Bearish MSB
Conversely, when the price closes below a significant pivot low, a bearish MSB is marked. Similar to bullish MSBs, targets are calculated and displayed on the chart. An order block is also generated at the level of the bearish MSB, visualized with a semi-transparent box. This box highlights a potential resistance area where price might face selling pressure.
Bullish and Bearish Break of Structure (BoS): Identifies break of structures for both bullish and bearish scenarios, providing additional target levels.
Bullish BoS
If the price continues to rise and breaks another significant level, a bullish BoS is detected. This break is also marked with lines and labels, providing additional target levels for traders. An order block is created at the BoS level, serving as a potential support zone.
Bearish BoS
If the price falls further after a bearish MSB, a bearish BoS is identified and visualized similarly. The indicator creates an order block at the BoS level, which acts as a potential resistance zone.
🔶 Disclaimer:
Use with Caution: This indicator is provided for educational and informational purposes only and should not be considered as financial advice. Users should exercise caution and perform their own analysis before making trading decisions based on the indicator's signals.
Not Financial Advice: The information provided by this indicator does not constitute financial advice, and the creator (UAlgo) shall not be held responsible for any trading losses incurred as a result of using this indicator.
Backtesting Recommended: Traders are encouraged to backtest the indicator thoroughly on historical data before using it in live trading to assess its performance and suitability for their trading strategies.
Risk Management: Trading involves inherent risks, and users should implement proper risk management strategies, including but not limited to stop-loss orders and position sizing, to mitigate potential losses.
No Guarantees: The accuracy and reliability of the indicator's signals cannot be guaranteed, as they are based on historical price data and past performance may not be indicative of future results. Indicator

Blockunity Level Presets (BLP)A simple tool for setting performance targets.
Level Presets (BLP) is a simple tool for setting upside and downside levels relative to the current price of any asset. In this way, you can track which price the asset needs to move towards in order to achieve a defined performance.
How to Use
This indicator is very easy to use, you can set up to 5 upward and downward targets in the parameters.
Elements
The main elements of this tool are upward (default green) and downward (default red) levels.
Settings
Several parameters can be defined in the indicator configuration.
In addition to configuring which performance value to set the level at, you can choose not to display it if you don't need it. For example, here we display only two levels:
You can also choose not to display the labels:
Also concerning labels, you can choose not to display them in currency format, but in numerical format only (for example, if you're viewing a non-USD pair, such as ETHBTC):
Finally, you can modify design elements such as colors, level widths and text size:
How it Works
Here's how upside (_u) and downside (_d) levels are calculated:
source = close
level_1_u = source + (source * (level_1 / 100))
level_1_d = math.max(source - (source * (level_1 / 100)), 0)
Indicator

Library

ATR BandsIn many strategies, it's quite common to use a scaled ATR to help define a stop-loss, and it's not uncommon to use it for take-profit targets as well. While it's possible to use the built-in ATR indicator and manually calculate the offset value, we felt this wasn't particularly intuitive or efficient, and could lead to the potential for miscalculations. And while there are quite a few indicators that plot ATR bands in some form or another already on TV, we could not find one that actually performed the exact way that we wanted. They all had at least one of the following gaps:
The ATR offset was not configurable (usually hard-coded to be based off the high or low, while we generally prefer to use close)
It would only print a single band (either the upper or lower), which would require the same indicator to be added twice
The ATR scaling factor was either not configurable or only stepped in whole numbers (often time fractional factors like 1.5 yield better results)
To that end, we took to making this enhanced version to meet all of the above requirements. While we were doing so, we decided to take this opportunity to also make some non-functional enhancements as well:
Updated the indicator to the most recent version of Pine
Updated the indicator definition to allow alternate (non-chart) timeframe usage
Made the input types explicitly defined to improve consistency
Updated the inputs with appropriate minimum values and step sizes where appropriate
Separated settings into logical groups
Added helptext to the indicator settings noting usage and common settings values
Explicitly titled the on-chart plots of the ATR bands so that they can more easily be identified and referenced in other indicators/scripts, as well as the Data Window
Food for thought : When looking at some of the behaviors of these ATR bands, you can see that when price first levels out, you can draw a "consolidation zone" from the first peak of the upper ATR band to the first valley of the lower ATR band that price will generally respect. Look for price to break and close outside of that zone. When that happens, price will usually (but not always) make a notable move in that direction, which can be used as either a potential trigger or as an additional confluence with other indicators/price action.
Finally, while we have made what we feel are some noteworthy updates and enhancements to this indicator, and have every intention of continuing to do so as we find worthy opportunities for enhancement, credit is still due to the original author: AlexanderTeaH Indicator

Indicator

Pivot Target (5m Futures)I am new to both Futures Trading and Pivots. Looking for shorter-term profitable opportunities, I have investigated the use of pivots from a higher timeframe. All the work of this script is performed using two lines. It calculates the pivot from the previous 2-hour bar and draws this pivot line on the 5-minute timeframe. Many many times, the price will reach back to this pivot point - sometimes fairly quickly within the same horizontal pivot line and sometimes farther out (4-hours to 6-hours, or within the next few days). Price tends to reach the level around ninety percent of the time, making for plenty of short-term trading opportunities.
I get the best results when I see the price rise or fall from the pivot, along with a second indicator indicating a possible reversal (my favorite is Divergence for Many Indicators v4 by LonesomeTheBlue . Who knew divergence (both regular and hidden) was so common and useful for finding probable reversals? If I find the price above or below the pivot line with a second signal, I'll place a buy or sell within that same 2-hour window the price tends to return back to the higher timeframe pivot for a nice profit very quickly. Other times it does take a little longer to return with only a small percentage of time not returning within a reasonable amount of time, or very unusually, not at all. The image above shows a number of profitable trading opportunities using a combination of the Pivot Target and LonesomeTheBlue's Divergence for Many Indicators v4. You can further limit risk by only taking trades that are in the same direction of the overall trend, possibly confirmed on a higher timeframe.
This script will only be visible on the 5-minute timeframe the way it is written right now. I wouldn't suggest shorter or longer timeframes unless some editing is done by you. It doesn't seem to work as well with stocks, but is best on Futures due to the wave-like natures of the futures market. Trade safe, trade with the trend, use stops and limits appropriately and stay safe. Indicator

MultiAlert, MultiTargets + TickersThis is my first script, completely made from scratch. Bear with me.
Script that allows one to set an alert for Multiple Price Levels, on Multiple Tickers, complete with Dynamic Messages showing you which ticker, at which price, at which alert (Stop loss, Target 1 etc.), set to Once Per Bar.
Select Ticker, type in price levels that you have for targets & stop loss, move on to the next, or don't and leave 0 and blank.
Disable the targets you do not need in STYLE tab to disable plotting & scaling, leave unused tickers & targets blank & 0.
Create Alert, select this indicator, anyfunction() alert.
MAKE SURE to remake the alert every time you change something, they are not smart enough to change as you change things. Can Confirm by using the numbers in the alert name. You will also have to set the profit level or stop loss to zero every time it triggers to avoid triggered again.
In fact, you do not need the indicator active at all. Add it to a chart and hide it by clicking on the little eyeball icon, to make an alert open the settings for the indicator and type in your targets like normal. Indicator will remain invisable.
I have not found a way to dynamic message the alert name, or else I would.
DISCLAIMER: NONE OF THIS IS FINANCIAL ADVICE. You are completely responsible for whatever happens to you. Do not use the targets in this chart. Do your own research before trading. Indicator

Indicator

Indicator
