Polynomial Regression + RSI Explosive Zones// Sonic R
EMA_len = input.int(89, title="EMA Signal Length")
HiLoLen = input.int(34, title="PAC EMA Length")
// Polynomial Regression
regression_length = input.int(10, title="Regression Length")
fractal_size = input.int(2, title="Fractal Size")
// Color inputs for regression
colorMid = input.color(color.red, title="Mid Line Color")
colorMax = input.color(color.orange, title="Max Line Color")
colorMin = input.color(color.green, title="Min Line Color")
colorUpper = input.color(color.blue, title="Upper Line Color")
colorLower = input.color(color.purple, title="Lower Line Color")
// === SONIC R ===
// PAC lines
pacC = ta.ema(close, HiLoLen)
pacL = ta.ema(low, HiLoLen)
pacH = ta.ema(high, HiLoLen)
plot(pacL, title="PAC Low EMA", color=color.new(color.blue, 50))
plot(pacH, title="PAC High EMA", color=color.new(color.blue, 50))
plot(pacC, title="PAC Close EMA", color=color.new(color.blue, 0), linewidth=2)
fill(plot(pacL), plot(pacH), color=color.aqua, transp=90, title="Fill PAC")
// EMA lines
ema610 = ta.ema(close, 610)
ema200 = ta.ema(close, 200)
emaSignal = ta.ema(close, EMA_len)
plot(ema610, title="EMA 610", color=color.white)
plot(ema200, title="EMA 200", color=color.fuchsia)
plot(emaSignal, title="EMA Signal", color=color.orange, linewidth=2)
Candlestick analysis
StageCraft Pro – [Weinstein RS Analyze]StageCraft Pro – Weinstein RS Analyzer
For best results, use on a Weekly timeframe, but if you want to use a daily timeframe, then change the below parameters accordingly:
daily chart, set:
MA Length (Weeks) → 150
RS MA Length → 250
Key Features
Stan Weinstein Stage Detection
Detects all 4 market stages using MA slope and price position logic.
Mansfield Relative Strength (RS) Line
Accurately compares a stock’s performance against a customizable benchmark
Smart Commentary with Floating Label
Dynamic, adjustable label includes stage, bias, price distance from MA, RS trend, stage duration, and performance.
Color-Coded Visuals & Background
Clear MA slope coloring and optional stage background help quickly identify trends.
Stage Timeline & Weekly Gain Stats
Displays stage start-end dates and tracks gains during Stage 2 uptrends.
Guidelines for Use
Use on Weekly Charts for best accuracy (30-week MA logic).
Watch for Stage 2 + RS > 0 + Rising RS as a powerful breakout confirmation.
Interpret Mansfield RS:
Above 0 = Stock outperforming benchmark
Rising = Relative strength improving
Use in conjunction with volume, support/resistance, and overall market context.
Customize benchmark, RS color, font, and commentary label via settings.
HalfTrend cross 2.0 LcfxCore Functionality
HalfTrend Baseline
Plots a dynamic trend-following line that alternates between blue (bullish) and red (bearish)
Uses amplitude and channel deviation settings to adapt to market volatility
Shows ATR-based channels around the trend line (optional)
Key Signals:
Reversal Signals: Traditional arrows at trend reversal points
Cross Signals: Basic "B"/"S" labels when price crosses the HalfTrend line
Re-Cross Signals: Special "RB"/"RS" labels for strategic re-entry opportunities
Unique Re-Cross Logic
Bullish Trend:
Triggers RB (Re-Cross Buy) only when:
Price first crosses BELOW HalfTrend (bearish cross)
Then crosses BACK ABOVE HalfTrend
Only the FIRST such occurrence in current bullish trend
Bright green "RB" label
Bearish Trend:
Triggers RS (Re-Cross Sell) only when:
Price first crosses ABOVE HalfTrend (bullish cross)
Then crosses BACK BELOW HalfTrend
Only the FIRST such occurrence in current bearish trend
Orange "RS" label
Smart Signal Management
Prevents signal spam by allowing only one re-cross signal per trend phase
Automatically resets signals when trend reverses
Dedicated alerts for all signal types
Customizable visual elements (colors, channels, arrows)
Practical Use Case
Identifies high-probability continuation entries:
RB signals: Potential add-to-position points in uptrends after minor pullbacks
RS signals: Shorting opportunities in downtrends after dead-cat bounces
This enhanced version reduces noise while highlighting strategic trade setups where price temporarily violates the trend line but quickly reconfirms the dominant trend direction.
Entry Signal: Price X% Lower Than OpenEntry signal printed when current price is below a certain threshold compared to open
Monthly, Daily, 4H High Low (v2 Corrected)Multi-Timeframe Highs & Lows (M, D, 4H) with Alerts
Script Description:
Summary
This indicator is a powerful tool designed to streamline your technical analysis by plotting the most significant price levels from higher timeframes directly onto your chart. It automatically draws the previous Monthly, Daily, and 4-Hour High and Low levels, allowing you to identify key support and resistance zones without constantly switching between timeframes.
The clean, minimalist design ensures your chart remains uncluttered, while the built-in, customizable alert system notifies you instantly when the price interacts with these critical levels.
Key Features
Automatic High & Low Plotting: Visualizes the previous high and low for three key timeframes:
Monthly High & Low (Red lines)
Daily High & Low (Blue lines)
4-Hour High & Low (Orange lines)
Clear On-Chart Labels: Each line is accompanied by a small, non-intrusive label (e.g., "Monthly High") on the right side of the chart for easy identification.
Powerful Alert System: Never miss a key price reaction. The script includes a fully configurable alert system that triggers when the price crosses any of the plotted high or low levels.
Customizable Alerts: In the indicator settings, you can individually enable or disable alerts for each timeframe (Monthly, Daily, 4H), giving you full control over your notifications.
How to Use
The lines plotted by this indicator serve as powerful, objective levels of support and resistance.
Resistance: The high of a previous period (e.g., Daily High) often acts as a ceiling where price may struggle to break through.
Support: The low of a previous period (e.g., Daily Low) often acts as a floor where price may find buying interest.
Breakout/Breakdown Confirmation: A decisive close above a previous high or below a previous low can signal a potential continuation of the trend. Use the alerts to be notified of these events in real-time.
Liquidity Sweeps: Traders often watch for price to briefly "sweep" or "hunt" these levels before reversing. The alert system is perfect for catching these movements.
Setting Up Alerts
Add the indicator to your chart.
Click the Alert icon (clock symbol) in the TradingView toolbar.
In the "Condition" dropdown, select the indicator: "Multi-Timeframe Highs & Lows (v2 Corrected)".
A second dropdown will appear. Select the specific event you want to be notified about (e.g., "Cross Daily High" or "Cross 4H Low").
Choose your preferred alert settings (e.g., "Once Per Bar Close") and notification method.
Click "Create".
You can create multiple alerts for different levels as needed.
This tool was designed to be both simple and effective, helping traders make more informed decisions by keeping an eye on the bigger picture. Happy trading!
Avg High/Low Lines with TP & SL아래 코드는 TradingView Pine Script v6으로 작성된 스크립트로, 주어진 캔들 수 동안의 평균 고가와 저가를 계산해서 그 위에 수평선을 그리며, 해당 수평선 돌파 시 진입 가격을 기록하고, 손절가(SL)와 목표가(TP)를 자동으로 계산하여 표시하는 전략입니다. 알림(alert) 기능도 포함되어 있습니다.
코드 주요 기능 요약
length 기간 동안 평균 고가, 저가를 단순 이동평균(SMA)으로 계산
평균 고가선, 저가선 수평선을 일정 바 개수만큼 좌우 연장하여 차트에 표시
평균 고가 돌파 시 매수 진입, 평균 저가 돌파 시 매도 진입 처리
진입 가격 저장 및 상태 관리 (inLong, inShort 플래그)
손절가(SL): 롱이면 평균 저가, 숏이면 평균 고가
목표가(TP): 진입가에서 손절 거리의 1.5배만큼 설정
진입가 기준으로 TP, SL 라인과 라벨 표시
상단 돌파 후 종가 마감 시 매수 알림, 하단 돌파 후 종가 마감 시 매도 알림
Sure! Here’s the English explanation of your TradingView Pine Script v6 code:
Summary of Key Features
Calculates the simple moving average (SMA) of the high and low prices over a user-defined number of candles (length).
Draws horizontal lines for the average high and average low, extending them a specified number of bars to the left and right on the chart.
Detects breakouts above the average high to trigger a long entry, and breakouts below the average low to trigger a short entry.
Records the entry price and manages trade states using flags (inLong, inShort).
Sets the stop loss (SL) at the average low for long positions, and at the average high for short positions.
Calculates the take profit (TP) level based on the entry price plus 1.5 times the stop loss distance.
Draws lines and labels for the TP and SL levels starting from the entry bar, extended to the right.
Sends alerts when the price closes above the average high after a breakout (long signal), or closes below the average low after a breakout (short signal).
-onestar-
Khalid's Custom ForecastThe indicator printed on the chart is as expected beads on the information for last 5 years , this indicator could be linked to others to give future price actions
Noise-free trend paint (universal compile)This indicator is designed to identify clean, high-probability trend conditions by filtering out market noise. Instead of relying on traditional candle colors—where green means the close is higher than the open, and red means the opposite—this tool repaints each bar based on a custom-defined trend logic. That logic is built from a combination of Heikin Ashi smoothed prices, a custom T3 moving average, the Directional Movement Index (DMI), and RSI momentum filtering.
When all conditions align—for example, the Heikin Ashi close is above a rising T3 line, the +DI is greater than -DI, the ADX confirms trend strength, and the RSI is above a defined centerline (e.g., 52)—the candle is painted green to signal a clean bullish trend. Conversely, when the Heikin Ashi close is below a falling T3, -DI is dominant, and momentum confirms a bearish direction, the bar is painted red. Bars that do not meet either bullish or bearish criteria remain uncolored (neutral), helping you avoid uncertain or choppy market conditions.
The result is a noise-filtered chart that highlights only strong, trend-aligned opportunities—removing distracting color flips caused by short-term price fluctuations. It’s ideal for discretionary traders who rely on trend clarity, as well as algo strategy developers who need strict rule-based environments for signal generation.
This tool doesn’t just show when the price is up or down—it shows when the market structure is truly trending. Use it to confirm your entries, manage trade timing, or as a foundation for more advanced strategy development.
thanhkhoanthitruongThis indicator calculates market liquidity by dividing volume by the candle’s range (high - low).
✅ Tracks average liquidity over the past N bars
✅ Highlights when liquidity spikes beyond a set multiple
✅ Useful to detect areas of unusual activity, volume concentration, or potential smart money moves
Parameters:
Lookback period for average
Spike threshold multiplier
Simple, lightweight, and compatible with all markets and timeframes.
Indicador Pro: Medias + RSI + ADX + Engulfing + FiboThis advanced indicator is designed to detect high-probability trading opportunities by combining multiple technical signals into a single system.
✅ Included Features:
EMA cross signals (fast vs. slow)
Confirmation via RSI (avoids overbought/oversold conditions)
Trend strength filter using ADX
Entry validation with Engulfing candlestick patterns
Automated buy/sell alerts
Dynamic Take Profit (TP) and Stop Loss (SL) levels
Automatic Fibonacci retracement zones
EMA 21, 55, 200 with Small LabelsThis is a combination of ema21/50/200. Helps to identify market trends. It comes with small labels so it won't confuse which line is which. I hope it helps and good luck with your trading!
Price Change Rate with Pivot Labels (%)Bull/Bear labels to show the exact price change percentage at the pivot.
1. Calculates Price Change %
Measures the percentage change in closing price over a user-defined number of bars.
2. Identifies Pivot Points
Finds local highs (pivot highs) and lows (pivot lows) using configurable left/right bar settings.
3. Labels Bullish/Bearish Trends
Bull label: Appears at pivot lows if price is rising and forming higher lows.
Bear label: Appears at pivot highs if price is falling and forming lower highs.
4. Displays % on Labels
Each label includes the current price change percentage, e.g.,
"Bull +2.34%"
"Bear -1.78%"
5. Optional Visuals
Pivot shapes (triangles) are plotted for clarity.
Weekly PSP HighlighterWeekly PSP Indicator which tell you by marking a purple Vertical line on Weekly Candle which is the PSP.
MentFx StructureThis indicator is designed to identify and track swing highs and lows on any timeframe, displaying them as customizable solid lines on the chart. Users can adjust line color and width to suit their preferences.
The logic behind these levels is based on whether the current market structure is bullish (most recent break to the upside) or bearish (most recent break to the downside).
In a bullish range, the high continues updating until a valid swing high forms. The low is only updated if a candle body (open or close) closes below the existing low, filtering out wick noise.
In a bearish range, the low continues updating until a valid swing low forms. The high only updates if a candle body (open or close) closes above the existing high.
Swing points are confirmed using strict rules:
A swing high is a high with lower highs on both sides.
A swing low is a low with higher lows on both sides.
The indicator follows a unique structure-tracking method based on the idea that institutional flows often involve “sell before buy” (bullish accumulation) or “buy before sell” (bearish distribution). These structural ranges aim to visualize where major transitions occur — offering clarity on trend continuation or reversal zones.
The tool is especially useful for traders who analyze price delivery in context of higher and lower timeframes, allowing for confluence in market structure reading.
ℹ️ This script is published as a protected script. Users can add it to their chart, but the source code is hidden.
📩 For inquiries or access to the full code, feel free to message me directly.
X ORTX ORT — Opening Range & Time Reference Tool
Overview
The X ORT indicator is a precision tool designed for intraday traders seeking to anchor their trading decisions to high-probability price levels. It captures key market reference points including Opening Ranges, Settlement Prices, and Time-Specific Opens, all based on New York time, to help identify potential pivots and directional bias in the market.
Key Features & Usage
🔹 Opening Range Boxes (ORs)
The indicator defines up to two customizable Opening Ranges (e.g., 9:30–9:59 and 8:20–8:49 ET). Each range dynamically tracks the high, low, and midpoint price as the session unfolds, and continues to extend those levels forward throughout the day.
Use as Pivots: The high and low of the Opening Range often act as intraday support and resistance zones. A breakout above the ORH (Opening Range High) may signal bullish intent, while a drop below the ORL (Opening Range Low) may suggest bearish momentum.
Use for Directional Bias: If price remains above or below the range after completion, it may indicate a continuation in that direction. The midpoint (dashed line) serves as a mean-reversion or fair value pivot.
🔸 Settlement Price Anchors
The indicator optionally plots Daily, Weekly, and Monthly Settlement Prices, which are significant institutional reference points.
Use as Market Anchors: Settlement prices are often used by professionals to gauge positioning. Price acceptance above or below settlement can signal strength or weakness and guide directional trades.
Historical weekly and monthly settlements help define multi-day or swing levels for broader context.
🔹 Time-Based Open Levels
X ORT also draws horizontal lines at the open price of specific time points: Midnight, 8:30 AM, 9:30 AM, and 1:30 PM ET.
Use for Session Anchors: These reference opens are useful for understanding session shifts, aligning with key economic releases (like 8:30 AM), and gauging session-to-session continuity.
Why Use X ORT?
Objective Structure: Provides rule-based levels to avoid emotional trading.
Visual Clarity: Transparent, extendable boxes and labeled lines help traders focus on key decision zones.
Multi-Time Context: Blends intraday and higher timeframe levels to support short-term and swing traders.
Whether you're breakout trading, fading range extremes, or gauging market bias, X ORT offers a reliable structural foundation that aligns with how professionals track price behavior throughout the trading day.
Painel de Velas 1H e 2HMulti-Timeframe Candlestick Panel with Signal Confluence
Description:
This advanced indicator displays a complete panel with candlestick information on multiple timeframes (from 30 minutes to 1 day), allowing simultaneous analysis of price behavior in different periods. The panel includes data on open, close, difference, candle type and time remaining until the close of each candle.
Main Features:
✅ Organized table with 9 different timeframes (30M, 1H, 2H, 3H, 4H, 6H, 12H, 1D and the current timeframe)
✅ Colored candlestick visualization (green for positive, red for negative)
✅ Accurate countdown to the close of each candle (hh:mm:ss format)
✅ Reference lines of the first candle of the day (4H)
✅ Confluence system that identifies buy/sell signals when all timeframes are aligned
✅ Configurable alerts for trading opportunities
How to Use:
Add the indicator to your chart
Follow the table in the upper right corner
Observe the confluence between timeframes
Use buy/sell signals when there is alignment in all periods
The orange lines mark the opening and closing of the first candle of the day (4H)
Benefits:
Analysis multi-timeframe in a single panel
Fast visual identification of trends
Save time in technical analysis
More assertive decision making with confirmation of multiple timeframes
Technical Configuration:
Developed in Pine Script v5
Low impact on chart performance
Real-time update
Notes:
For best results, combine this indicator with other technical analysis tools. Confluence signals are more relevant in markets with a defined trend.
1D/1W/1M extreme levelsDaily, Weekly, and Monthly Range Values for Enhanced Positioning
This script calculates dynamic range levels for daily, weekly, and monthly timeframes to help identify key price extremes.
The Initial Value reflects the starting point derived from the assumption of a candle’s bullish or bearish close — essentially your initial reference for potential entry or exit levels.
Range values continuously update based on the high and low prices within each respective timeframe.
When price reaches these range extremes, it signals an increased risk of reversal, providing refined entry points.
Use this tool alongside your existing strategies to improve timing and precision in your trade positioning.
Liquidity Zone IndicatorLiquidity Zone Indicator
This PineScript indicator for TradingView identifies liquidity zones in the market where significant trading activity occurs, based on volume spikes and price levels. It highlights areas where large orders may be filled, useful for day traders and scalpers.
Features:
Detects bullish and bearish liquidity zones using a lookback period (default: 50 bars) and volume threshold (default: 1.5x average volume).
Displays zones as shaded boxes or diamond markers above/below bars, customizable by color.
Option to extend zones until price breaks through, with dynamic transparency for better visualization.
Includes an alert for when a liquidity zone is hit.
Settings:
Liquidity Lookback: Number of bars to analyze for high/low price levels.
Volume Threshold: Multiplier for detecting volume spikes.
Display as Zone: Toggle between zone boxes or markers.
Extend Zone: Keep zones active until price crosses them.
Zone Color: Customize the color of zones or markers.
Ideal for traders looking to spot potential reversal or breakout areas driven by liquidity.
*All Candlestick Patterns*AbandonedBabyInput = input(title = "Abandoned Baby" ,defval=true)
DarkCloudCoverInput = input(title = "Dark Cloud Cover" ,defval=false)
DojiInput = input(title = "Doji" ,defval=true)
DojiStarInput = input(title = "Doji Star" ,defval=false)
DownsideTasukiGapInput = input(title = "Downside Tasuki Gap" ,defval=false)
DragonflyDojiInput = input(title = "Dragonfly Doji" ,defval=true)
EngulfingInput = input(title = "Engulfing" ,defval=true)
EveningDojiStarInput = input(title = "Evening Doji Star" ,defval=false)
EveningStarInput = input(title = "Evening Star" ,defval=false)
FallingThreeMethodsInput = input(title = "Falling Three Methods" ,defval=false)
FallingWindowInput = input(title = "Falling Window" ,defval=false)
GravestoneDojiInput = input(title = "Gravestone Doji" ,defval=false)
HammerInput = input(title = "Hammer" ,defval=true)
HangingManInput
HaramiCrossInput
HaramiInput
InvertedHammerInput
KickingInput
LongLowerShadowInput
LongUpperShadowInput
MarubozuBlackInput
MarubozuWhiteInput
MorningDojiStarInput
OnNeckInput
PiercingInput
RisingThreeMethodsInput
RisingWindowInput
ShootingStarInput
SpinningTopBlackInput
SpinningTopWhiteInput
ThreeBlackCrowsInput
ThreeWhiteSoldiersInput
TriStarInput
TweezerBottomInput
TweezerTopInput
UpsideTasukiGapInput
Correlation & Mean Reversion - Paired Stocks/ETFs (By MC)This indicator is designed to help identify mean reversion opportunities between two correlated instruments, such as ETFs or stocks (e.g., SPY vs. TLT). It provides statistical insight, visual signals, and a summary table to support pair trading strategies.
🔍 Key Functions:
Price Ratio Analysis
Calculates and monitors the price ratio (A/B) between two user-defined tickers over a rolling period.
Z-Score Calculation
Measures how far the current ratio deviates from its mean in standard deviation units (Z-score), with safeguards against unstable values.
Mean Reversion Probability
Uses a normal distribution function to estimate the likelihood of the ratio reverting to its mean — shown as a percentage.
Rolling Correlation
Computes the correlation of log returns between the two instruments to gauge relationship strength.
| Correlation Value | Interpretation |
| ----------------- | ----------------------------- |
| +1.0 | Perfect positive correlation (price of both move in the same direction)|
| +0.7 to +0.9 | Strong positive correlation |
| +0.4 to +0.6 | Moderate positive correlation |
| 0 | No correlation (independent) |
| -0.4 to -0.6 | Moderate negative correlation |
| -0.7 to -0.9 | Strong negative correlation |
| -1.0 | Perfect negative correlation (price both move in the opposite direction)|
Trade Signal Alerts
🔴 Strong Mean Reversion if probability > 95%
🟡 Moderate Mean Reversion if probability > 80%
% Reversion >= 0.9 - "High"
% Reversion >= 0.8 - "Moderate High"
% Reversion >= 0.6 - "Low"
% Reversion < 0.6 "Very Low"
Color-Coded Backgrounds & Signal Markers
Visual indicators appear on the chart to flag potential trade setups.
Stats Table (Mobile-Optimized)
Displays:
Symbol A & B
Ratio
Z-Score
Mean Reversion %
Rolling Correlation
Trade Quality: High, Moderate High, Low, or Very Low (color-coded)
User Customization
Table position (top/bottom left/right)
Toggle display of plots (Z-score, correlation, ratio overlay)
Chart style for mean reversion % (line/histogram)
🎯 Use Case:
This tool is ideal for pair traders looking to exploit statistical arbitrage opportunities by entering trades when price relationships deviate from their historical norm.
My script/@version=5
indicator("50 EMA - Green Up / Red Down", overlay=true)
// Calculate the 50 EMA
ema50 = ta.ema(close, 50)
// Determine if the EMA is rising or falling
color_ema = ema50 > ema50 ? color.green : color.red
// Plot the 50 EMA with dynamic color
plot(ema50, title="50 EMA", color=color_ema, linewidth=2)
All SMAs Bullish/Bearish Screener (Visually Enhanced)Title: All SMAs Bullish/Bearish Screener Enhanced: Uncover Elite Trend Opportunities with Confidence & Clarity
Description:
Are you striving to master the art of trend-following, but often find yourself overwhelmed by market noise and ambiguous signals? Do you yearn for a trading edge that clearly identifies high-conviction opportunities and equips you with robust risk management principles? Look no further. The "All SMAs Bullish/Bearish Screener Enhanced" is your ultimate solution – a meticulously crafted Pine Script indicator designed to cut through the clutter, pinpointing stocks where the trend is undeniably strong, and providing you with the clarity you need to trade with confidence.
The Pinnacle of Confluence: Beyond Simple Averages
This is not just another moving average indicator. This is a sophisticated, multi-layered analytical engine built on the profound principle of Confluence. While our core strength lies in tracking a comprehensive suite of six critical Simple Moving Averages (5, 10, 20, 50, 100, and 200-period SMAs), this Enhanced version elevates signal reliability by integrating powerful, independent confirmation layers:
Momentum (Rate of Change - ROC): A true trend isn't just about direction; it's about the force and persistence of price movement. The Momentum filter ensures that the trend is backed by accelerating buying (for bullish signals) or selling (for bearish signals) pressure, validating its underlying strength.
Volume Confirmation: Smart money always leaves a trail. Significant price moves, especially trend continuations or reversals, demand genuine participation. This enhancement confirms that the "All SMAs" alignment is accompanied by above-average volume, signaling institutional conviction and differentiating authentic moves from mere whipsaws.
Relative Strength Index (RSI) Bias: The RSI helps gauge the health of the trend. For a bullish signal, we confirm RSI maintains a bullish bias (above 50), while for a bearish signal, we look for a bearish bias (below 50). This adds another layer of qualitative validation, ensuring the trend isn't overextended without confirmation.
When a stock's price is trading above ALL six critical SMAs, and is simultaneously confirmed by strong positive Momentum, robust Volume, and a bullish RSI bias, you are witnessing a powerful "STRONGLY BULLISH" signal. This rare alignment often precedes sustained upward moves and signifies a prime accumulation phase across all time horizons. Conversely, a "STRONGLY BEARISH" signal, where price is below ALL SMAs with compelling negative Momentum, validating Volume, and a bearish RSI bias, indicates significant distribution and potential for substantial downside.
Seamless Usage & Unmatched Visual Clarity:
Adding this script to your TradingView chart is simple, and its visual design has been meticulously optimized for maximum readability:
Easy Integration: Paste the script into your Pine Editor and click "Add to Chart."
Full Customization: All SMA lengths, RSI periods, Volume SMA periods, and Momentum periods are easily adjustable via user-friendly input settings, allowing you to fine-tune the strategy to your precise preferences.
Optimal Timeframes:
For identifying robust, actionable trends for swing and position trading, Daily (1D) and 4-Hour (240 min) timeframes are highly recommended. These capture significant market movements with reduced noise.
While the script functions on shorter timeframes (e.g., 15min, 60min), these are best reserved for highly active day traders seeking precise entry triggers within broader trends, as shorter timeframes are prone to increased volatility and noise.
Important Note on Candle Size: The width of candles on your chart is controlled by TradingView's platform settings and your zoom level, not directly by Pine Script. To make candles appear larger, simply zoom in horizontally on your chart or adjust the "Bar Spacing" in your Chart Settings (Right-click chart > Settings > Symbol Tab).
Crystal-Clear Visual Signals:
Subtle Background Hues: The chart background will subtly tint lime green for "STRONGLY BULLISH" and red for "STRONGLY BEARISH" conditions. This transparency ensures your underlying candles remain perfectly visible.
Distinct Moving Averages: SMAs are plotted with increased line thickness and a carefully chosen color palette for easy identification.
Precise Signal Triangles: Small, clean green triangles below the bar signify "STRONGLY BULLISH," while small red triangles above the bar mark "STRONGLY BEARISH" conditions. These are unobtrusive yet clear.
Dedicated Indicator Panes: RSI and Momentum plots, along with their key levels, now appear in their own separate, clean sub-panes below the main price chart, preventing clutter and allowing for focused analysis.
On-Chart Status Table: A prominent table in your chosen corner of the chart provides an immediate, plain-language update on the current trend status.
Real-Time Screener Power (via TradingView Alerts): This is your ultimate automation tool. Set up custom alerts for "Confirmed Bullish Trade" or "Confirmed Bearish Trade" conditions. Receive instant notifications (email, app, webhook) for any stock in your watchlist that meets these stringent, high-conviction criteria, allowing you to react swiftly to premium setups across the market without constant chart monitoring.
Mastering Risk & Rewards: The Trader's Edge
Finding a signal is only the first step. This script helps you trade intelligently by guiding your risk management:
Strategic Stop-Loss Placement: Your stop-loss is your capital protector. For a "STRONGLY BULLISH" trade, place it just below the most recent significant swing low (higher low). This is where the uptrend's structure is invalidated. For "STRONGLY BEARISH" trades, place it just above the most recent significant swing high (lower high). As an alternative, consider placing your stop just outside the 20-period SMA; a close beyond this mid-term average often signals a crucial shift. Always ensure your chosen stop-loss aligns with your strict risk-per-trade rules (e.g., risking no more than 1-2% of your capital per trade).
Disciplined Profit Booking: Don't just let winners turn into losers. Employ a strategy to capture gains:
Trailing Stop-Loss: As your trade moves into profit, dynamically move your stop-loss upwards (for longs) or downwards (for shorts). You can trail it by following subsequent swing lows/highs or by using a faster Moving Average like the 10 or 20-period SMA as a dynamic exit point if price closes beyond it. This allows you to ride extended trends while protecting accumulated gains.
Target Levels: Identify potential profit targets using traditional support/resistance levels, pivot points, or Fibonacci extensions. Consider taking partial profits at these key junctures to secure gains while letting a portion of your position run.
Loss of Confluence: A unique exit signal for this script is the breakdown of the "STRONGLY BULLISH" or "STRONGLY BEARISH" confluence itself. If the confirmation layers or even a few of the core SMAs are no longer aligned, it might be time to re-evaluate or exit, even if your hard stop hasn't been hit.
The "All SMAs Bullish/Bearish Screener Enhanced" is more than just code; it's a philosophy for disciplined trend trading. By combining comprehensive multi-factor confluence with intuitive visuals and robust risk management principles, you're equipped to make smarter, higher-conviction trading decisions. Add it to your favorites today and transform your approach to the markets!
#PineScript #TradingView #SMA #MovingAverage #TrendFollowing #StockScreener #TechnicalAnalysis #Bullish #Bearish #MarketScanner #Momentum #Volume #RSI #Confluence #TradingStrategy #Enhanced #Signals #Analysis #DayTrading #SwingTrading