Dual Crossing - Multi Single Moving Average - MrBuCha// This script is an improved version of the original "Dual Crossing - Multi Single Moving Average" indicator created by MrBuCha.
// Credits to the original author MrBuCha for developing the base of this indicator.
// This version has been enhanced and adapted by the TradingView community based on the original idea, with improvements for better usability.
// 🚦 How to use this indicator:
// 🔹 The indicator plots two moving averages (fast and slow) using different MA types (TEMA, HMA, DEMA, WMA, EMA).
// 🔹 When the fast MA crosses above the slow MA, it may signal a BUY opportunity.
// 🔹 When the fast MA crosses below the slow MA, it may signal a SELL opportunity.
// 🔹 The fast MA changes color dynamically: 🔵 blue when above slow MA, 🟠 orange when below slow MA, making signals easier to spot.
// 🔹 Adjust the MA periods to fit your trading style and the asset you are analyzing.
Indicators and strategies
SuperTrend AI (Clustering) with Full Trade Logic//@version=5
indicator("SuperTrend AI (Clustering) with Full Trade Logic", overlay = true, max_labels_count = 500)
// === INPUTS ===
length = input(10, 'ATR Length')
factor = input.float(3.0, 'SuperTrend Factor')
perfAlpha = input.float(10, 'Performance Memory')
showLabels = input.bool(true, 'Show Entry Labels')
cooldownBars = input.int(5, 'Cooldown Between Entries')
// === TREND FILTER (15M) ===
ema9_15 = request.security(syminfo.tickerid, "15", ta.ema(close, 9))
ema21_15 = request.security(syminfo.tickerid, "15", ta.ema(close, 21))
trend15m = ema9_15 > ema21_15 and ema21_15 > ema21_15 and ema9_15 > ema9_15 ? 1 : 0
// === SUPER TREND LOGIC ===
atr = ta.atr(length)
upperBand = hl2 + atr * factor
lowerBand = hl2 - atr * factor
trend = 0
trend := close > lowerBand ? 1 : close < upperBand ? 0 : nz(trend )
supertrend = trend == 1 ? lowerBand : upperBand
// === EMA TREND CONFIRMATION ===
ema9 = ta.ema(close, 9)
ema21 = ta.ema(close, 21)
emaConfirm = ema9 > ema21
// === RSI CONFIRMATION ===
rsi = ta.rsi(close, 14)
rsiConfirm = rsi < 30 or rsi > 70
// === MACD CONFIRMATION ===
= ta.macd(close, 12, 26, 9)
macdConfirm = (ta.crossover(macdLine, signalLine) or ta.crossunder(macdLine, signalLine)) and math.abs(macdLine - signalLine) > 0.0005
// === BOLLINGER BAND CONFIRMATION ===
basis = ta.sma(close, 20)
dev = 2 * ta.stdev(close, 20)
bbUpper = basis + dev
bbLower = basis - dev
bbConfirm = close > bbUpper or close < bbLower
// === VOLUME CONFIRMATION ===
avgVol = ta.sma(volume, 20)
volConfirm = volume > 1.5 * avgVol
// === CONFIRMATION COUNT ===
confirmations = (emaConfirm ? 1 : 0) + (rsiConfirm ? 1 : 0) + (macdConfirm ? 1 : 0) + (bbConfirm ? 1 : 0) + (volConfirm ? 1 : 0)
validSetup = confirmations >= 3
// === RISK FILTERS ===
price = close
pips = syminfo.mintick * 10000
recentSpike = math.abs(close - open) > 10 * pips
nearPsych = math.abs(price % 0.5) < 0.02
// Time Filter
sessionHour = hour(time, "America/New_York")
sessionFilter = (sessionHour < 10 or sessionHour > 3)
// Candle Quality Filter
minCandleSize = math.abs(close - open) > 0.0003
// Cooldown Between Entries
var int lastEntryBar = na
cooldown = na(lastEntryBar) or (bar_index - lastEntryBar > cooldownBars)
// ADX Trend Strength Filter
plusDM = ta.change(high) > ta.change(low) and ta.change(high) > 0 ? ta.change(high) : 0
minusDM = ta.change(low) > ta.change(high) and ta.change(low) > 0 ? ta.change(low) : 0
trur = ta.rma(ta.tr(true), 14)
plusDI = 100 * ta.rma(plusDM, 14) / trur
minusDI = 100 * ta.rma(minusDM, 14) / trur
dx = 100 * math.abs(plusDI - minusDI) / (plusDI + minusDI)
adx = ta.rma(dx, 14)
strongTrend = adx > 20
// Pullback to EMA21 Filter
pullbackToEMA21 = close < ema21
// === SESSION TRADE LIMIT ===
var int sessionTradeCount = 0
isNewSession = ta.change(time("D")) != 0
if isNewSession
sessionTradeCount := 0
canTradeThisSession = sessionTradeCount < 2
// Entry Conditions
inTrendLong = trend == 1 and trend15m == 1
inTrendShort = trend == 0 and trend15m == 0
entryLong = inTrendLong and validSetup and not recentSpike and not nearPsych and sessionFilter and minCandleSize and cooldown and strongTrend and pullbackToEMA21 and canTradeThisSession
entryShort = inTrendShort and validSetup and not recentSpike and not nearPsych and sessionFilter and minCandleSize and cooldown and strongTrend and pullbackToEMA21 and canTradeThisSession
if entryLong or entryShort
lastEntryBar := bar_index
sessionTradeCount += 1
// === TRADE OUTPUT ===
TP = 30 * pips
SL = 15 * pips
// Labels
if showLabels
if entryLong
label.new(bar_index, low, "✅ Long Setup Entry: " + str.tostring(price, '#.###') +
" TP: " + str.tostring(price + TP, '#.###') +
" SL: " + str.tostring(price - SL, '#.###'),
style=label.style_label_up, color=color.green, textcolor=color.white)
if entryShort
label.new(bar_index, high, "✅ Short Setup Entry: " + str.tostring(price, '#.###') +
" TP: " + str.tostring(price - TP, '#.###') +
" SL: " + str.tostring(price + SL, '#.###'),
style=label.style_label_down, color=color.red, textcolor=color.white)
// === ALERT CONDITIONS ===
alertcondition(entryLong, title="Valid Long Setup", message="✅ USDJPY Long Setup | Entry: {{close}} | TP: {{close + 0.0030}} | SL: {{close - 0.0015}}")
alertcondition(entryShort, title="Valid Short Setup", message="✅ USDJPY Short Setup | Entry: {{close}} | TP: {{close - 0.0030}} | SL: {{close + 0.0015}}")
Alerte Croisement SMA simpleCroisement SMA 10 et 20, avec alerte sonore ! Etiquette CROS UP et DOWN!
Super Arma Institucional PRO v6.3Super Arma Institucional PRO v6.3
Description
Super Arma Institucional PRO v6.3 is a multifunctional indicator designed for traders looking for a clear and objective analysis of the market, focusing on trends, key price levels and high liquidity zones. It combines three essential elements: moving averages (EMA 20, SMA 50, EMA 200), dynamic support and resistance, and volume-based liquidity zones. This integration offers an institutional view of the market, ideal for identifying strategic entry and exit points.
How it Works
Moving Averages:
EMA 20 (orange): Sensitive to short-term movements, ideal for capturing fast trends.
SMA 50 (blue): Represents the medium-term trend, smoothing out fluctuations.
EMA 200 (red): Indicates the long-term trend, used as a reference for the general market bias.
Support and Resistance: Calculated based on the highest and lowest prices over a defined period (default: 20 bars). These dynamic levels help identify zones where the price may encounter barriers or supports.
Liquidity Zones: Purple rectangles are drawn in areas of significantly above-average volume, indicating regions where large market participants (institutional) may be active. These zones are useful for anticipating price movements or order absorption.
Purpose
The indicator was developed to provide a clean and institutional view of the market, combining classic tools (moving averages and support/resistance) with modern liquidity analysis. It is ideal for traders operating swing trading or position trading strategies, allowing to identify:
Short, medium and long-term trends.
Key support and resistance levels to plan entries and exits.
High liquidity zones where institutional orders can influence the price.
Settings
Show EMA 20 (true): Enables/disables the 20-period EMA.
Show SMA 50 (true): Enables/disables the 50-period SMA.
Show EMA 200 (true): Enables/disables the 200-period EMA.
Support/Resistance Period (20): Sets the period for calculating support and resistance levels.
Liquidity Sensitivity (20): Period for calculating the average volume.
Minimum Liquidity Factor (1.5): Multiplier of the average volume to identify high liquidity zones.
How to Use
Moving Averages:
Crossovers between the EMA 20 and SMA 50 may indicate short/medium-term trend changes.
The EMA 200 serves as a reference for the long-term bias (above = bullish, below = bearish).
Support and Resistance: Use the red (resistance) and green (support) lines to identify reversal or consolidation zones.
Liquidity Zones: The purple rectangles highlight areas of high volume, where the price may react (reversal or breakout). Consider these zones to place orders or manage risks.
Adjust the parameters according to the asset and timeframe to optimize the analysis.
Notes
The chart should be configured only with this indicator to ensure clarity.
Use on timeframes such as 1 hour, 4 hours or daily for better visualization of liquidity zones and support/resistance levels.
Avoid adding other indicators to the chart to keep the script output easily identifiable.
The indicator is designed to be clean, without explicit buy/sell signals, following an institutional approach.
This indicator is perfect for traders who want a visually clear and powerful tool to trade based on trends, key levels and institutional behavior.
MestreDoFOMO MACD VisualMasterDoFOMO MACD Visual
Description
MasterDoFOMO MACD Visual is a custom indicator that combines a unique approach to MACD with stochastic logic and simulated Renko-based direction signals. It is designed to help traders identify entry and exit opportunities based on market momentum and trend changes, with a clear and intuitive visualization.
How It Works
Stylized MACD with Stochastic: The indicator calculates the MACD using EMAs (exponential moving averages) normalized by stochastic logic. This is done by subtracting the lowest price (lowest low) from a defined period and dividing by the range between the highest and lowest price (highest high - lowest low). The result is a MACD that is more sensitive to market conditions, magnified by a factor of 10 for better visualization.
Signal Line: An EMA of the MACD is plotted as a signal line, allowing you to identify crossovers that indicate potential trend reversals or continuations.
Histogram: The difference between the MACD and the signal line is displayed as a histogram, with distinct colors (fuchsia for positive, purple for negative) to make momentum easier to read.
Simulated Renko Direction: Uses ATR (Average True Range) to calculate the size of Renko "bricks", generating signals of change in direction (bullish or bearish). These signals are displayed as arrows on the chart, helping to identify trend reversals.
Purpose
The indicator combines the sensitivity of the Stochastic MACD with the robustness of Renko signals to provide a versatile tool. It is ideal for traders looking to capture momentum-based market movements (using the MACD and histogram) while confirming trend changes with Renko signals. This combination reduces false signals and improves accuracy in volatile markets.
Settings
Stochastic Period (45): Sets the period for calculating the Stochastic range (highest high - lowest low).
Fast EMA Period (12): Period of the fast EMA used in the MACD.
Slow EMA Period (26): Period of the slow EMA used in the MACD.
Signal Line Period (9): Period of the EMA of the signal line.
Overbought/Oversold Levels (1.0/-1.0): Thresholds for identifying extreme conditions in the MACD.
ATR Period (14): Period for calculating the Renko brick size.
ATR Multiplier (1.0): Adjusts the Renko brick size.
Show Histogram: Enables/disables the histogram.
Show Renko Markers: Enables/disables the Renko direction arrows.
How to Use
MACD Crossovers: A MACD crossover above the signal line indicates potential bullishness, while below suggests bearishness.
Histogram: Fuchsia bars indicate bullish momentum; purple bars indicate bearish momentum.
Renko Arrows: Green arrows (upward triangle) signal a change to an uptrend; red arrows (downward triangle) signal a downtrend.
Overbought/Oversold Levels: Use the levels to identify potential reversals when the MACD reaches extreme values.
Notes
The chart should be set up with this indicator in isolation for better clarity.
Adjust the periods and ATR multiplier according to the asset and timeframe used.
Use the built-in alerts ("Renko Up Signal" and "Renko Down Signal") to set up notifications of direction changes.
This indicator is ideal for day traders and swing traders who want a visually clear and functional tool for trading based on momentum and trends.
Diagonal Support and Resistance Trend LinesA simple indicator to plot trend lines.
1. Adjust the "Pivot Lookback" (default: 20) to control pivot sensitivity. Larger values detect more significant pivots.
2. Adjust the "Max Trend Lines" (default: 4) to control how many support/resistance lines are drawn.
The indicator will plot:
1. Red dashed lines for resistance (based on pivot highs).
2. Green dashed lines for support (based on pivot lows).
3. Small red triangles above bars for pivot highs and green triangles below bars for pivot lows.
AsturRiskPanelIndicator Summary
ATR Engine
Length & Smoothing: Choose how many bars to use (default 14) and the smoothing method (RMA/SMA/EMA/WMA).
Median ATR: Computes a rolling median of ATR over a user-defined look-back (default 14) to derive a “scalp” target.
Scalp Target
Automatically set at ½ × median ATR, snapped to the nearest tick.
Optional rounding to whole points for simplicity.
Stop Calculation
ATR Multiplier: Scales current ATR by a user input (default 1.5) to produce your stop distance in points (and ticks when appropriate).
Distortion Handling: Switches between point-only and point + tick displays based on contract specifications.
Risk & Sizing
Risk % of account per trade (default 2 %).
Calculates dollar risk per contract and optimal contract count.
Displays all metrics (scalp, stop, risk/contract, max contracts, max risk, account size) in a customizable on-chart table.
ATR-Based Stop Placement Guidelines
Trade Context ATR Multiplier Notes
Tight Range Entry 1.0 × ATR High-conviction, precise entries. Expect more shake-outs.
Standard Trend Entry 1.5 × ATR Balanced for H2/L2, MTR, DT/DB entries.
Breakouts/Microchannels 2.0 × ATR Wide stops through chop—Brooks-style breathing room.
How to Use
Select ATR Settings
Pick an ATR length (e.g. 14) and smoothing (RMA for stability).
Adjust the median length if you want a faster/slower scalp line.
Align Multiplier with Your Setup
For tight-range entries, set ATR Multiplier ≈ 1.0.
For standard trend trades, leave at 1.5.
For breakout/pullback setups, increase to 2.0 or more.
Customize Risk Parameters
Enter your account size and desired risk % per trade (e.g. 2 %).
The table auto-calculates how many contracts you can take.
Read the On-Chart Table
Scalp shows your intraday target.
Stop gives Brooks-style stop distance in points (and ticks).
Risk/Contract is the dollar risk per contract.
Max Contracts tells you maximum position size.
Max Risk confirms total dollar exposure.
Visual Confirmation
Place your entry, then eyeball the scalp and stop levels against chart structure (e.g. swing highs/lows).
Adjust the ATR multiplier if market context shifts (e.g. volatility spikes).
By blending this sizing panel with contextual ATR multipliers, you’ll consistently give your trades the right amount of “breathing room” while keeping risk in check.
Sally's 9 EMA Strategy Local 2A simple indicator that tracks the number of bars that have closed above or below the EMA.
Smooth BTCSPL [GiudiceQuantico] – Dual Smoothed MAsSmooth BTCSPL – Dual Smoothed MAs
What it measures
• % of Bitcoin addresses in profit vs loss (on-chain tickers).
• Spread = profit % − loss % → quick aggregate-sentiment gauge.
• Optional alpha-decay normalisation ⇒ keeps the curve on a 0-1 scale across cycles.
User inputs
• Use Alpha-Decay Adjusted Input (true/false).
• Fast MA – type (SMA / EMA / WMA / VWMA) & length (default 100).
• Slow MA – type & length (default 200).
• Colours – Bullish (#00ffbb) / Bearish (magenta).
Computation flow
1. Fetch daily on-chain series.
2. Build raw spread.
3. If alpha-decay enabled:
alpha = (rawSpread − 140-week rolling min) / (1 − rolling min).
4. Smooth chosen base with Fast & Slow MAs.
5. Bullish when Fast > Slow, bearish otherwise.
6. Bars tinted with the same bull/bear colour.
How to read
• Fast crosses above Slow → rising “addresses-in-profit” momentum → bullish bias.
• Fast crosses below Slow → stress / capitulation risk.
• Price-indicator divergences can flag exhaustion or hidden accumulation.
Tips
• Keep in a separate pane (overlay = false); bar-colouring still shows on price chart.
• Shorter lengths for swing trades, longer for macro outlook.
• Combine with funding rates, NUPL or simple price-MA crossovers for confirmation.
WMA AFA Múltiples TFTres WMA en un solo indicador con ajuste individual de temporalidad en cada WMA.
NQ Intraday Strategy SignalsPlot VWAP, Opening Range High/Low, Daily Open, and London Close
Mark buy signals for:
NYSE Open Reversal
London Close Pullback
Power Hour Double Bottom
Display labels and alerts (if you want to set them later)
VWAP + ATR/Fixed BandsVWAP + ATR/Fixed Bands is a professional-grade intraday tool designed to help traders spot overextension and reversion zones around VWAP.
This indicator offers two distinct band types:
🔹 ATR-based Bands
Automatically adjusts upper/lower thresholds based on volatility using customizable ATR multipliers (default 1.5x and 2.0x).
🔹 Fixed Range Bands
Designed for index traders (ES1!, DAX, etc.), this mode plots static offset bands around VWAP for more realistic control in smooth, high-liquidity markets.
🔧 Inputs:
VWAP (sessional)
ATR Length (default 14)
ATR Multipliers (e.g., 1.5x / 2.0x)
Fixed Range Toggle + Value (e.g., 25 points)
🧠 How to Use:
Use ATR mode for assets like gold, oil, or crypto
Use Fixed mode for indices (ES, DAX) where ATR is too tight
Watch for price touching outer bands → then wait for rejection
Combine with time-of-day, RSI divergence, or candlestick traps
Created by MeanFlow Strategies | Clean Systems. No Fluff.
For premium PDFs and live setups: gumroad.com/meanflow
Daily Balance Point (Ray + Axis Price Only)This tool helps traders visually track the most important level of the day to plan smart trades based on price action, rejections, or breakouts from the balance point.
By Fahad Malik
FM Forex Academy ✅
ZigZag ProZigZag Pro is a precise market structure indicator that automatically detects two independent ZigZag patterns and highlights breakouts whenever significant highs or lows are breached.
The indicator calculates two separate ZigZag structures in real time. ZigZag1 captures the broader market swings and is ideal for trend or swing trading. ZigZag2 is optional and reacts more quickly – perfect for intraday or scalping setups. Both layers are fully customizable in terms of depth, color, and line width.
What makes this tool especially useful: whenever a previous swing high (for long trades) or swing low (for short trades) is broken, the indicator draws a horizontal breakout line on the chart. This makes it easy to spot structural breakouts and take advantage of potential momentum moves.
ZigZag Pro is designed for traders who rely on clean, rule-based market structure — whether you're trading classic breakouts, smart money concepts, or simply want a clearer view of trend shifts. The visuals are minimal, responsive, and suitable for any timeframe.
Pin Bar Highlighter OnlyAbsolutely — here’s a full **description and breakdown** of what the script does:
---
## 📜 Script Name:
**"Pin Bar Highlighter Only"**
---
## 🎯 Purpose:
This script **detects and highlights classic pin bar reversal candles** directly on the chart — without plotting any entry, stop loss, or take profit levels.
It’s designed for traders who:
* Want to manually assess trades
* Prefer a clean chart
* Use pin bar price action as a signal for potential reversals
---
## ✅ What It Does:
* **Scans each candle** to check if it qualifies as a **bullish** or **bearish pin bar**
* If valid:
* Plots a **green triangle below** bullish pin bars
* Plots a **red triangle above** bearish pin bars
* Keeps your chart **minimal and uncluttered**
---
## 📌 How It Detects a Pin Bar:
### 🔹 1. Candle Structure:
* Measures the total candle range: `high - low`
* Calculates the **body size**: `abs(close - open)`
* Calculates the **upper and lower wick sizes**
### 🔹 2. Pin Bar Criteria:
* The **wick (nose)** must be at least **2/3 of the total candle length**
* The **body** must be small — **≤ 1/3** of the total range
* The **body** must be located at **one end** of the candle
* The wick must **pierce the high/low** of the previous candle
---
## 📍 Bullish Pin Bar Requirements:
* Close > Open (green candle)
* Lower wick ≥ 66% of candle range
* Body ≤ 33% of range
* Candle **makes a new low** (current low < previous low)
### 📍 Bearish Pin Bar Requirements:
* Close < Open (red candle)
* Upper wick ≥ 66% of candle range
* Body ≤ 33% of range
* Candle **makes a new high** (current high > previous high)
---
## 🖼️ Visual Output:
* 🔻 Red triangle **above** bearish pin bars
* 🔺 Green triangle **below** bullish pin bars
---
## 🛠️ Example Use Cases:
* Identify **reversal points** at support/resistance
* Confirm signals with **VWAP**, supply/demand zones, or AVWAP (manually plotted)
* Use in **conjunction with other strategies** — without clutter
---
Data High/LowMarks out High and Low of a specified candle.
Intended use for news candle's data high and low.
Time, line color, and line length are customizable in settings options.
Lines are only draw on 1m timeframe and lower.
TEMA with Slope Color [MrBuCha]This TEMA indicator is particularly useful for trend following strategies. The key innovation here is using a higher timeframe (default 1-hour) to get a broader perspective on the trend direction, while the color-coding makes it immediately obvious whether the momentum is bullish (blue) or bearish (orange).
The 200-period length makes this more suitable for swing trading rather than day trading, as it filters out short-term noise and focuses on significant trend movements.
//
What is TEMA and How Does It Work?
TEMA (Triple Exponential Moving Average) is a technical indicator that builds upon the standard EMA to reduce lag and provide faster response to price changes. The calculation process is:
EMA1 = EMA of closing price with specified length
EMA2 = EMA of EMA1 with the same length
EMA3 = EMA of EMA2 with the same length
TEMA = 3 × (EMA1 - EMA2) + EMA3
This formula helps reduce the lag inherent in smoothing calculations, making TEMA more responsive to price movements compared to other moving averages.
Default Values
Length: 200 periods
Timeframe: "60" (1 hour)
Slope Colors
Blue: When TEMA is trending upward (tema_current > tema_previous)
Orange: When TEMA is trending downward (tema_current ≤ tema_previous)
Pros and Cons Summary
Advantages:
Fast Response: Reduces lag better than SMA and regular EMA
Easy to Use: Color-coded slope makes trend direction immediately visible
Multi-timeframe Capability: Can display TEMA from higher timeframes
Trend Following: Excellent for identifying trend direction
Visual Clarity: Clear color signals help with quick decision making
Disadvantages:
False Signals: Prone to whipsaws in sideways/choppy markets
Noise in Volatility: Frequent color changes during high volatility periods
Not Suitable for Scalping: Length of 200 is quite long for short-term trading
Still Lagging: Despite improvements, it remains a lagging indicator
Requires Confirmation: Should be used with other indicators for better accuracy
Best Use Cases:
Medium to long-term trend following
Identifying major trend changes
Multi-timeframe analysis
Combine with momentum oscillators for confirmation
Trading Tips:
Wait for color confirmation before entering trades
Use higher timeframe TEMA for overall trend bias
Combine with support/resistance levels
Avoid trading during consolidation periods
AI-Volume ProfileThe AI-Volume Profile is a powerful volume-based tool that mimics the intelligent behavior of AI-driven systems by dynamically adapting to market structure. While it doesn’t use real machine learning, its smart presets and adaptive volume logic provide traders with a clear and insightful view of high-activity price zones – including Point of Control (POC) and Value Area (VA).
Designed for multiple trading styles, it includes built-in presets for Intraday Scalping, Swing Trading, and Daily Analysis – or full Custom Mode for manual configuration of volume bins, lookback range, value area, and display width.
The indicator highlights the POC, the price level with the highest traded volume, and optionally displays VAH and VAL boundaries. Volume boxes are scaled and colored based on relative volume, offering a clean visual map of market interest.
Features also include a VWAP filter for context-based adjustments and an offset setting to project the profile into future candles. A subtle watermark rounds off the professional design.
Inspired by AI systems – without using AI itself – this script brings structured, adaptive logic to your chart, making it ideal for volume-based decision making in fast or slow markets.
Daily Balance Point (Ray + Axis Price Only)This tool helps traders visually track the most important level of the day to plan smart trades based on price action, rejections, or breakouts from the balance point.
By Fahad Malik
FM Forex Academy ✅
Manual Fib Levels (Paul Laurent Trading)📜 Script Description for TradingView
Manual Fibonacci Levels with Whole Number Lines
This script draws infinite horizontal lines for custom Fibonacci retracement and extension levels, based on manually entered high and low points. It also includes additional lines at full whole number levels (e.g., 1.0000, 2.0000, 3.0000), making it easier to visualize key psychological price zones within the Fibonacci range.
Features:
* Custom manual high/low inputs
* Infinite Fib lines (retracement + extension)
* Separate whole-number lines within the Fib range
* Adjustable line color and thickness for both sets
Useful for traders who prefer visual clarity with precise price alignment across major and whole-number levels.
RSI.TrendContext
The Relative Strength Index (RSI) is one of the most widely used classical indicators in technical analysis, typically employed to identify overbought or oversold market conditions. It reflects the degree of upside or downside dominance within a specified period. However, in its standard form, RSI is not particularly effective as a standalone entry trigger.
The RSI.Trend indicator enhances the RSI to provide a more reliable method for distinguishing between bullish and bearish market regimes and offers specific entry triggers. It adds supplementary value to the pure RSI read.________________________________________
Concept
In trending markets, an Exponential Moving Average (EMA) of the price is often smoother and more stable than raw price data. As a result, the RSI calculated on this smoothed price (i.e., the EMA) tends to react earlier and more consistently than the standard RSI. Specifically:
• In uptrends, the RSI of the EMA tends to exceed the RSI of the original price.
• In downtrends, it tends to lag behind.
The difference between these two RSI readings provides a stable and less noisy measure of market bias—positive in uptrends, negative in downtrends. The crossing points can serve as entry triggers. This is, what the RSI.Trend is trying to capture.
________________________________________
The RSI.Trend indicator operates as follows:
• It first computes the 5-period EMA of the price series of the underlying ("EMA5").
• It calculates the 14-period RSI of the original price series ("RSI") as well as the 14-period RSI of EMA5 ("RSIEMA").
• It then determines the 14-period EMA of RSI ("RSI.MA") and RSIEMA ("RSIEMA.MA").
These values are used to define a Baseline and a Trigger Line:
• Baseline: The average of RSI and RSI.MA.
• Trigger Line: The average of RSIEMA and RSIEMA.MA.
Essentially, the baseline represents a smoother version of the RSI of the original price series, while the trigger line is a smoother version of the RSI on the EMA5 of the original price series.
Additionally, the RSI.Trend Background Value is calculated as the difference between the Trigger Line and the Baseline, slightly accelerated by incorporating the current bias of this difference. This acceleration causes the Background Value to react somewhat faster than the pure difference between the two lines.
How to use the RSI.Trend:
• As mentioned in the introductory context, during uptrends, the trigger line remains above the baseline; in downtrends, it stays below the baseline.
• A crossover of the baseline by the trigger line indicates a regime shift from bearish to bullish and can signal avoiding adding short positions, closing short positions, or adding long positions.
• A crossunder of the baseline by the trigger line indicates a regime shift from bullish to bearish and can signal avoiding adding long positions, closing long positions, or adding short positions.
• The level of the Trigger Line can serve as a confidence indicator; for instance, if the trigger line crosses under the baseline coming from very high values, it implies high confidence.
• The Background Value indicates the accelerated difference between the two lines:
o > 0 (Green background): Indicates a Bullish regime.
o < 0 (Red background): Indicates a Bearish regime.
The Background Value reacts slightly faster than line crossings due to its acceleration relative to the difference of the two lines.
Including these lines in the script besides the Background Value, provides insight into their levels and their origins, aiding in formulating confidence in an entry trigger, which the background value alone cannot provide. The change in slope of the trigger Line can also be used as an early and fast position-trigger.
Finally, the Background Value can be utilized in continuous trading scenarios (i.e., no entry points, always engaged) as a multiplier on a predefined max-exposure value, representing the current exposure as a fraction of that max-exposure.
The usage of RSI.Trend is also exemplified in the introductory chart.________________________________________
Final Notes
As with all indicators, the RSI.Trend is most effective when used in conjunction with other technical tools and market context. It does not predict future price movements; rather, it reflects current market dynamics and recent directional tendencies. Use it with discretion and as part of a broader trading strategy.