Trend Regime BackgroundGreen Background → Strong bullish signal across trend, momentum, and volatility.
Yellow Background → Neutral regime (mixed signals).
Red Background → Bearish trend with weakening momentum and rising risk.
Analisis Trend
Institutional Intraday Master (No Loops)📊 Institutional Intraday Master Indicator: How-To Guide for New Traders
1. What Does This Indicator Do?
The Institutional Intraday Master is a custom TradingView script that helps you:
• Spot when big institutions (like hedge funds) might be buying or selling.
• Identify important price levels based on recent trading activity.
• Get clear buy (“INST LONG”) and sell (“INST SHORT”) signals.
• Manage risk with automatic stop (invalidation) signals.
2. Key Acronyms & Terms
Acronym Meaning
RSI Relative Strength Index (momentum measure)
POC Point of Control (price with most volume)
VAH Value Area High (top of high-volume zone)
VAL Value Area Low (bottom of high-volume zone)
ATR Average True Range (volatility measure)
MACD Moving Average Convergence Divergence
3. How to Add the Script to TradingView
1. Copy the full Pine Script code (see previous answer).
2. Open TradingView and go to the chart of your chosen stock or ETF (e.g., SPY, AAPL).
3. Click Pine Editor at the bottom of the screen.
4. Paste the code into the editor.
5. Click Add to Chart (or “Save” then “Add to Chart”).
6. The indicator will appear on your chart with colored backgrounds, lines, and buy/sell signals.
4. What Do the Visuals Mean?
• Green Background:
Institutions are likely buying (bullish bias).
• Red Background:
Institutions are likely selling (bearish bias).
• Purple Dots (POC):
The price where the most volume traded in the last 30 bars (often a “magnet” for price).
• Gray Lines (VAH/VAL):
The top and bottom of the high-volume area—think of these as “fair value” boundaries.
• Blue Lines:
Recent breakout levels (upper = bullish breakout, lower = bearish breakout).
• Green “INST LONG” Label:
Suggested buy (long) entry.
• Red “INST SHORT” Label:
Suggested sell (short) entry.
5. How to Use for Day Trading
A. Setup
• Use a 5-minute or 15-minute chart for intraday trading.
• The indicator will automatically update key levels and signals.
B. Entry Signals
• Buy (Long):
• When you see a green “INST LONG” label, and the background is green.
• Example: Price breaks above the blue upper band with strong volume.
• Sell (Short):
• When you see a red “INST SHORT” label, and the background is red.
• Example: Price breaks below the blue lower band with strong volume.
C. Risk Management
• The script uses ATR (Average True Range) to suggest stop-loss distances.
• Stop out (invalidation):
• If you’re long and price closes below the gray VAL line or drops by more than 1 ATR from the last low, consider exiting.
• If you’re short and price closes above the gray VAH line or rises by more than 1 ATR from the last high, consider exiting.
D. Take Profit
• Consider taking profit at the next major volume level (POC, VAH/VAL) or when a reversal signal appears.
6. Example Trade
Let’s say you’re trading SPY on a 5-minute chart:
• The background turns green, and a green “INST LONG” label appears at $590.
• The purple POC dot is at $592, and the gray VAH is at $593.
• Trade Plan:
• Enter long at $590.
• Set a stop-loss at $588 (2 ATR below entry).
• Target $592 (POC) or $593 (VAH) for profit.
If price reaches $592 and starts to stall, you might take profit. If price falls to $588, you exit for a small loss.
7. Keys to Watch for Invalidation
• Invalidation means your trade setup is no longer valid.
• For longs:
• Price closes below VAL or makes a new low by more than 1 ATR.
• For shorts:
• Price closes above VAH or makes a new high by more than 1 ATR.
• Always honor your stop-loss!
8. Tips for Success
• Don’t trade every signal. Wait for confirmation (e.g., strong volume, trend in your favor).
• Practice on a simulator before using real money.
• Adjust settings (like ATR multiplier or volume profile length) to fit your style and the asset’s volatility.
9. Illustration Key
• ! ( i.imgur.com background = institutional buying, purple dot = POC, blue line = breakout, green label = buy signal.*
10. Summary Table
Visual/Signal Meaning What To Do
Green background Institutional buying Favor long trades
Red background Institutional selling Favor short trades
Purple dot (POC) Volume magnet/target Use as profit/entry/exit level
Blue line Breakout level Watch for breakouts
Green label Buy (long) signal Consider entering long
Red label Sell (short) signal Consider entering short
Gray lines (VAH/VAL) Value area boundaries Use for stops and targets
Demand Index (Hybrid Sibbet) by TradeQUODemand Index (Hybrid Sibbet) by TradeQUO \
\Overview\
The Demand Index (DI) was introduced by James Sibbet in the early 1990s to gauge “real” buying versus selling pressure by combining price‐change information with volume intensity. Unlike pure price‐based oscillators (e.g. RSI or MACD), the DI highlights moves backed by above‐average volume—helping traders distinguish genuine demand/supply from false breakouts or low‐liquidity noise.
\Calculation\
\
\ \Step 1: Weighted Price (P)\
For each bar t, compute a weighted price:
```
Pₜ = Hₜ + Lₜ + 2·Cₜ
```
where Hₜ=High, Lₜ=Low, Cₜ=Close of bar t.
Also compute Pₜ₋₁ for the prior bar.
\ \Step 2: Raw Range (R)\
Calculate the two‐bar range:
```
Rₜ = max(Hₜ, Hₜ₋₁) – min(Lₜ, Lₜ₋₁)
```
This Rₜ is used indirectly in the exponential dampener below.
\ \Step 3: Normalize Volume (VolNorm)\
Compute an EMA of volume over n₁ bars (e.g. n₁=13):
```
EMA_Volₜ = EMA(Volume, n₁)ₜ
```
Then
```
VolNormₜ = Volumeₜ / EMA_Volₜ
```
If EMA\_Volₜ ≈ 0, set VolNormₜ to a small default (e.g. 0.0001) to avoid division‐by‐zero.
\ \Step 4: BuyPower vs. SellPower\
Calculate “raw” BuyPowerₜ and SellPowerₜ depending on whether Pₜ > Pₜ₋₁ (bullish) or Pₜ < Pₜ₋₁ (bearish). Use an exponential dampener factor Dₜ to moderate extreme moves when true range is small. Specifically:
• If Pₜ > Pₜ₋₁,
```
BuyPowerₜ = (VolNormₜ) / exp
```
otherwise
```
BuyPowerₜ = VolNormₜ.
```
• If Pₜ < Pₜ₋₁,
```
SellPowerₜ = (VolNormₜ) / exp
```
otherwise
```
SellPowerₜ = VolNormₜ.
```
Here, H₀ and L₀ are the very first bar’s High/Low—used to calibrate the scale of the dampening. If the denominator of the exponential is near zero, substitute a small epsilon (e.g. 1e-10).
\ \Step 5: Smooth Buy/Sell Power\
Apply a short EMA (n₂ bars, typically n₂=2) to each:
```
EMA_Buyₜ = EMA(BuyPower, n₂)ₜ
EMA_Sellₜ = EMA(SellPower, n₂)ₜ
```
\ \Step 6: Raw Demand Index (DI\_raw)\
```
DI_rawₜ = EMA_Buyₜ – EMA_Sellₜ
```
A positive DI\_raw indicates that buying force (normalized by volume) exceeds selling force; a negative value indicates the opposite.
\ \Step 7: Optional EMA Smoothing on DI (DI)\
To reduce choppiness, compute an EMA over DI\_raw (n₃ bars, e.g. n₃ = 1–5):
```
DIₜ = EMA(DI_raw, n₃)ₜ.
```
If n₃ = 1, DI = DI\_raw (no further smoothing).
\
\Interpretation\
\
\ \Crossing Zero Line\
• DI\_raw (or DI) crossing from below to above zero signals that cumulative buying pressure (over the chosen smoothing window) has overcome selling pressure—potential Long signal.
• Crossing from above to below zero signals dominant selling pressure—potential Short signal.
\ \DI\_raw vs. DI (EMA)\
• When DI\_raw > DI (the EMA of DI\_raw), bullish momentum is accelerating.
• When DI\_raw < DI, bullish momentum is weakening (or bearish acceleration).
\ \Divergences\
• If price makes new highs while DI fails to make higher highs (DI\_raw or DI declining), this hints at weakening buying power (“bearish divergence”), possibly preceding a reversal.
• If price makes new lows while DI fails to make lower lows (“bullish divergence”), this may signal waning selling pressure and a potential bounce.
\ \Volume Confirmation\
• A strong price move without a corresponding rise in DI often indicates low‐volume “fake” moves.
• Conversely, a modest price move with a large DI spike suggests true institutional participation—often a more reliable breakout.
\
\Usage Notes & Warnings\
\
\ \Never Use DI in Isolation\
It is a \filter\ and \confirmation\ tool—combine with price‐action (trendlines, support/resistance, candlestick patterns) and risk management (stop‐losses) before executing trades.
\ \Parameter Selection\
• \Vol EMA length (n₁)\: Commonly 13–20 bars. Shorter → more responsive to volume spikes, but noisier.
• \Buy/Sell EMA length (n₂)\: Typically 2 bars for fast smoothing.
• \DI smoothing (n₃)\: Usually 1 (no smoothing) or 3–5 for moderate smoothing. Long DI\_EMA (e.g. 20–50) gives a slower signal.
\ \Market Adaptation\
Works well in liquid futures, indices, and heavily traded stocks. In thinly traded or highly erratic markets, adjust n₁ upward (e.g., 20–30) to reduce noise.
---
\In Summary\
The Demand Index (James Sibbet) uses a three‐stage smoothing (volume → Buy/Sell Power → DI) to reveal true demand/supply imbalance. By combining normalized volume with price change, Sibbet’s DI helps traders identify momentum backed by real participation—filtering out “empty” moves and spotting early divergences. Always confirm DI signals with price action and sound risk controls before trading.
6MA Fill Indicator MTF (Paired, SMA/EMA Selectable)6MA Fill Indicator MTF(移動平均ペア塗り分けインジケーター)
This indicator displays 3 customizable pairs of moving averages (MA), each on any selectable timeframe and type (SMA or EMA), with fill coloring to visually indicate trend direction between short and long MA within each pair.
このインジケーターは、最大3ペア(計6本)の移動平均線を異なる時間軸と種類(SMAまたはEMA)で表示し、ペア間を色で塗り分けることで、トレンドバイアスの視認性を向上させます。
Features / 機能説明
3 MA pairs configurable individually
(type, length, timeframe for each MA)
3つのMAペアそれぞれに対し、期間・種類・時間軸を個別に設定可能
Color fill between each MA pair
Blue fill if short MA > long MA (bullish bias)
Red fill if short MA < long MA (bearish bias)
各ペア内で短期MAが長期MAを上回ると青、下回ると赤で塗りつぶし表示
Multi-timeframe support
任意の時間足(MTF)に対応し、中長期のトレンド認識に有効
Use Cases / 主な用途
Multi-timeframe trend alignment
複数時間軸でのトレンド整合性確認
Trend-following strategy support
トレンドフォロー系戦略の補助
Quick visual market context recognition
トレンド環境の視覚的な高速把握
Triple RSI with Trend Background**Triple RSI Indicator – Description & Usage Guide**
### 🔍 **What It Is**
The **Triple RSI Indicator** is a custom TradingView tool that visualizes **three Relative Strength Index (RSI)** values on the same panel (default periods: **9, 13, 21**) and highlights trend direction using **colored backgrounds**.
It helps traders quickly identify:
* **Bullish momentum** when short-term RSI is leading
* **Bearish or weak momentum** otherwise
---
### ⚙️ **How It Works**
The script calculates:
* **RSI 1 (Fast)** — default period: 9
* **RSI 2 (Medium)** — default period: 13
* **RSI 3 (Slow)** — default period: 21
Then, it compares the values:
* ✅ **Bullish Condition**: RSI 9 > RSI 13 > RSI 21 → **Green Background**
* ❌ **Bearish Condition**: Any other order → **Red Background**
This logic helps spot when momentum is stacking in favor of buyers.
---
### 🧪 **Customization Options**
In the indicator settings panel, you can change:
* RSI lengths (`RSI 1`, `RSI 2`, `RSI 3`)
* Line colors and thickness for each RSI
* Background color for bullish (green) and bearish (red) conditions
---
### 📈 **How to Use It Effectively**
1. **Add the indicator to your chart** via Pine Script editor on TradingView.
2. **Look for green background** — this signals building bullish momentum (RSI stacking).
3. **Use it with other tools** like:
* **Volume spikes**
* **Breakouts above resistance**
* **MACD or EMA confirmation**
4. **Red background** suggests hesitation or bearish shift — consider avoiding long trades or managing risk.
---
### 🧭 **Ideal For**
* Momentum traders
* Swing traders
* Anyone who wants a visual RSI trend filter
3 Bar Reversal3 Bar Reversal
This pattern is described in John Carter's "Mastering the Trade"
The 3 Bar Reversal indicator is a simple but effective price action tool designed to highlight potential short-term reversals in market direction. It monitors consecutive bar behavior and identifies turning points based on a three-bar pattern. This tool can assist traders in spotting trend exhaustion or early signs of a reversal, particularly in scalping or short-term trading strategies.
How It Works
This indicator analyzes the relationship between consecutive bar closes:
It counts how many bars have passed since the price closed higher than the previous close (barssince(close >= close )) — referred to as an "up streak".
It also counts how many bars have passed since the price closed lower than the previous close (barssince(close <= close )) — known as a "down streak".
A reversal condition is met when:
There have been exactly 3 bars in a row moving in one direction (up or down), and
The 4th bar closes in the opposite direction.
When this condition is detected, the script performs two actions:
Plots a triangle on the chart to signal the potential reversal:
A green triangle below the bar for a possible long (buy) opportunity.
A red triangle above the bar for a possible short (sell) opportunity.
Triggers an alert condition so users can set notifications for when a reversal is detected.
Interpretation
Long Signal: The market has printed 3 consecutive lower closes, followed by a higher close — suggesting bullish momentum may be emerging.
Short Signal: The market has printed 3 consecutive higher closes, followed by a lower close — indicating possible bearish momentum.
These patterns are common in market retracements and can act as confirmation signals when used with other indicators such as RSI, MACD, support/resistance, or volume analysis.
Usage Examples
Scalping: Use the reversal signal to quickly enter short-term trades after a short-term exhaustion move.
Swing Trading: Combine this with trend indicators (e.g., moving averages) to time pullbacks within larger trends.
Confirmation Tool: Use this indicator alongside candlestick patterns or support/resistance zones to validate entry or exit points.
Alert Setup: Enable alerts based on the built-in alertcondition to receive instant notifications for potential trade setups.
Limitations
The 3-bar reversal logic does not guarantee a trend change; it signals potential reversals, which may need confirmation.
Best used in conjunction with broader context such as trend direction, market structure, or other technical indicators.
SMA 90 Crossover Signalمؤشر Samer MA Flow هو أداة فنية متقدمة تعتمد على ثلاثة متوسطات متحركة بسيطة (SMA) بفترات 45 و90 و180.
يعتمد المؤشر على سلوك السعر حول المتوسط 90 (الخط الأزرق) لتوليد إشارات دخول وخروج واضحة:
• إشارة شراء عندما يخترق السعر SMA 90 صعودًا.
• إشارة بيع عندما يكسر السعر SMA 90 هبوطًا.
كما يُظهر المؤشر SMA 45 و180 لمتابعة الاتجاه العام والزخم بشكل بصري واضح.
الميزات:
• إشارات دخول/خروج بسيطة وفعالة.
• يعرض SMA 45 / 90 / 180 بوضوح.
• يعمل على جميع الفريمات الزمنية.
• مناسب للمبتدئين والمحترفين.
• يمكن دمجه مع أدوات فنية أخرى
Samer MA Flow is an advanced yet simple indicator based on three Simple Moving Averages (SMA): 45, 90, and 180.
It generates clear buy and sell signals based on price interaction with the SMA 90 (the blue line):
• Buy signal when the price crosses above SMA 90.
• Sell signal when the price crosses below SMA 90.
The indicator also displays SMA 45 and 180 to help identify trend structure and momentum visually.
Features:
• Simple and effective entry/exit signals.
• Visualizes SMA 45 / 90 / 180.
• Works on all timeframes.
• Suitable for beginners and professionals.
• Easy to combine with other technical tools
Adaptive Volume‐Demand‐Index (AVDI)Demand Index (according to James Sibbet) – Short Description
The Demand Index (DI) was developed by James Sibbet to measure real “buying” vs. “selling” strength (Demand vs. Supply) using price and volume data. It is not a standalone trading signal, but rather a filter and trend confirmer that should always be used together with chart structure and additional indicators.
---
\ 1. Calculation Basis\
1. Volume Normalization
$$
\text{normVol}_t
= \frac{\text{Volume}_t}{\mathrm{EMA}(\text{Volume},\,n_{\text{Vol}})_t}
\quad(\text{e.g., }n_{\text{Vol}} = 13)
$$
This smooths out extremely high volume spikes and compares them to the average (≈ 1 means “average volume”).
2. Price Factor
$$
\text{priceFactor}_t
= \frac{\text{Close}_t - \text{Open}_t}{\text{Open}_t}.
$$
Positive values for bullish bars, negative for bearish bars.
3. Component per Bar
$$
\text{component}_t
= \text{normVol}_t \times \text{priceFactor}_t.
$$
If volume is above average (> 1) and the price rises slightly, this yields a noticeably positive value; conversely if the price falls.
4. Raw DI (Rolling Sum)
Over a window of \$w\$ bars (e.g., 20):
$$
\text{RawDI}_t
= \sum_{i=0}^{w-1} \text{component}_{\,t-i}.
$$
Alternatively, recursively for \$t \ge w\$:
$$
\text{RawDI}_t
= \text{RawDI}_{t-1}
+ \text{component}_t
- \text{component}_{\,t-w}.
$$
5. Optional EMA Smoothing
An EMA over RawDI (e.g., \$n\_{\text{DI}} = 50\$) reduces short-term fluctuations and highlights medium-term trends:
$$
\text{EMA\_DI}_t
= \mathrm{EMA}(\text{RawDI},\,n_{\text{DI}})_t.
$$
6.Zero Line
Handy guideline:
RawDI > 0: Accumulated buying power dominates.
RawDI < 0: Accumulated selling power dominates.
2. Interpretation & Application
Crossing Zero
RawDI above zero → Indication of increasing buying pressure (potential long signal).
RawDI below zero → Indication of increasing selling pressure (potential short signal).
Not to be used alone for entry—always confirm with price action.
RawDI vs. EMA_DI
RawDI > EMA\_DI → Acceleration of demand.
RawDI < EMA\_DI → Weakening of demand.
Divergences
Price makes a new high, RawDI does not make a higher high → potential weakness in the uptrend.
Price makes a new low, RawDI does not make a lower low → potential exhaustion of the downtrend.
3. Typical Signals (for Beginners)
\ 1. Long Setup\
RawDI crosses zero from below,
RawDI > EMA\_DI (acceleration),
Price closes above a short-term swing high or resistance.
Stop-Loss: just below the last swing low, Take-Profit/Trailing: on reversal signals or fixed R\:R.
2. Short Setup
RawDI crosses zero from above,
RawDI < EMA\_DI (increased selling pressure),
Price closes below a short-term swing low or support.
Stop-Loss: just above the last swing high.
---
4. Notes and Parameters
Recommended Values (Beginners):
Volume EMA (n₍Vol₎) = 13
RawDI window (w) = 20
EMA over DI (n₍DI₎) = 50 (medium-term) or 1 (no smoothing)
Attention:\
NEVER use in isolation. Always in combination with price action analysis (trendlines, support/resistance, candlestick patterns).
Especially during volatile news phases, RawDI can fluctuate strongly → EMA\_DI helps to avoid false signals.
---
Conclusion The Demand Index by James Sibbet is a powerful filter to assess price movements by their volume backing. It shows whether a rally is truly driven by demand or merely a short-term volume anomaly. In combination with classic chart analysis and risk management, it helps to identify robust entry points and potential trend reversals earlier.
Green Trend and Adjustable Chop Zone Highlightallows for indication of when the indicator is green. Green means out of the chop and trending. Red means choppy and no trend.
Directional Strength IndexThis indicator is designed to detect the dominant market direction and quantify its strength by aggregating signals across six key timeframes: 1H, 4H, 1D, 3D, 1W, and 1M.
At its core, it uses a SMEMA 'the Simple Moving Average of an EMA' as the main trend reference. This hybrid smoothing method was chosen for its balance: the EMA ensures responsiveness to recent price moves, while the SMA dampens short-term volatility. This makes the SMEMA more stable than a raw EMA and more reactive than a simple SMA, especially in noisy or volatile environments.
For each timeframe, a score between -10 and +10 is calculated. This score reflects:
- the distance of the price from the SMEMA, using ATR as a dynamic threshold
- the number of price deviations above or below the SMEMA
- the slope of the SMEMA, which adjusts the score based on momentum
These six timeframe scores are then combined into a single Global Score, using weighted averages. Three weighting profiles are available depending on your trading horizon:
- Long Term: emphasizes weekly and monthly data
- Swing Trading: gives balanced importance to all timeframes
- Short Term: prioritizes 1H and 4H action
This multi-timeframe aggregation makes the indicator adaptable to different styles while maintaining a consistent logic.
The result is displayed in a table on the chart, showing:
- the trend direction per timeframe (up, down or neutral)
- the strength score per timeframe
- the overall trend direction and strength based on the selected profile
Optional deviation bands based on ATR multiples are also plotted to provide visual context for overextensions relative to the SMEMA.
This indicator is non-repainting and built for objective, trend-based decision making.
Fuerza de tendencia / Trend StrengthTrend Strength Indicator – Multimetric Scanner
This indicator evaluates the strength of a bullish trend using 11 widely trusted technical signals. It aggregates price behavior, moving averages, RSI momentum, and Ichimoku Cloud position into a single table with intuitive checkmarks.
Included conditions:
Higher highs and higher lows
RSI trending up
Price above EMA21, SMA50, and SMA200
EMA21 above SMA50 and SMA200
SMA50 above SMA200
Price above the Ichimoku Cloud
Each fulfilled condition adds a point to the Trend Strength Score (0 to 11). This visual summary helps traders quickly assess whether an asset is aligned with a strong upward trend.
Includes language support for English and Spanish.
Indicador de Fuerza de Tendencia – Escáner Multicriterio
Este indicador evalúa la fuerza de una tendencia alcista utilizando 11 señales técnicas ampliamente reconocidas. Resume el comportamiento del precio, medias móviles, impulso del RSI y posición respecto a la Nube de Ichimoku en una tabla con íconos claros.
Condiciones evaluadas:
Máximos y mínimos alcistas
RSI en alza
Precio sobre EMA21, SMA50 y SMA200
EMA21 sobre SMA50 y SMA200
SMA50 sobre SMA200
Precio sobre la Nube de Ichimoku
Cada condición cumplida suma un punto al Puntaje de Fuerza de Tendencia (de 0 a 11). Esta tabla visual permite evaluar rápidamente si un activo presenta una tendencia sólida al alza.
Incluye soporte de idioma inglés y español.
Contrarian Crowd OscillatorEver enter a trade because it looks super bullish or bearish and immediately goes the other way?
The Contrarian Crowd Oscillator identifies dangerous market sentiment extremes by synthesizing multiple technical indicators into a single powerful contrarian signal. Stop getting trapped in crowded trades and start profiting from crowd psychology!
What This Indicator Does
This oscillator combines 6 different technical perspectives (RSI, Stochastic, Williams %R, CCI, ROC, and MFI) to measure market consensus and identify when sentiment becomes dangerously one-sided. It answers the critical question: "Is everyone thinking the same thing right now?"
Why This Works
Market psychology is predictable. When everyone becomes extremely bullish or bearish, they create unsustainable conditions:
Extreme Bullishness: No buyers left to push prices higher
Extreme Bearishness: No sellers left to push prices lower
High Consensus: Crowded trades become vulnerable to sudden reversals
This oscillator quantifies these psychological extremes and gives you the edge to trade against the crowd when they're most likely to be wrong.
Candle/RSI BUY SELLWhy Use Candlesticks?
They help traders visualize price action
Used in technical analysis and price pattern recognition (e.g., Doji, Engulfing, Hammer)
Assist in determining entry and exit points
Why Traders Use RSI:
To identify potential reversal zones
To confirm trend strength
To detect divergences between price and momentum
Why Combine Candlestick Patterns with RSI?
Using Candlestick patterns together with the Relative Strength Index (RSI) enhances trading decisions by combining price action and momentum analysis.
Conclusion:
Combining RSI with Candlestick patterns allows traders to:
Confirm potential reversals
Filter false signals
Improve entry and exit timing
Make more confident and accurate decisions
How It Works:
RSI Calculation
Custom RSI is calculated manually using Wilder's smoothing technique.
MA or BB Option
User can select whether to apply a smoothing MA or Bollinger Bands to RSI (useful for visual enhancements or custom strategies).
Buy/Sell Logic
check for:
Buy when the current candle is bullish (open <= close) and the previous candle was bearish (open >= close ), AND RSI is ≥ 50.
Sell when current candle is bearish and previous was bullish, AND RSI is ≤ 50.
Plot Buy/Sell Labels
Final Verdict
code is:
Valid (no syntax errors)
Useful (combines candlestick confirmation + RSI strength)
Extendable (can add divergence, alerts, etc.)
This Timeframe 5 min : XAU
Golden Triangle Strategy (1H, Setup 1 & 2)🔺 Golden Triangle Strategy – Setup 1 & 2 with Dynamic Trailing Stop (Optimized for 1H Chart)
### 📘 Strategy Summary
This strategy blends **technical pattern recognition** with **volume confirmation** and **dynamic risk management** to capture high-probability breakouts. It features two independent entry setups . More details can be found at thepatternsite.com
I have added intelligent trailing stop that **tightens once a profit threshold is reached**. Please note that this is not mentioned in GoldenTriangle strategy. I just added to capture the profits.
### ✅ Entry Setups
#### **Setup 1 – Golden Triangle Breakout**
* Detects **triangle formations** using recent pivot highs and lows.
* A **bullish breakout** is confirmed when:
* Price **closes above the triangle top**, and
* Price is also **above the 50-period SMA**.
* Entry: At breakout candle close.
* Ideal for early momentum trades after consolidation.
#### **Setup 2 – Price + Volume Confirmation**
* Based on **mean reversion followed by volume surge**:
* Price drops **below the 50 SMA**, then closes **back above it**.
* Requires at least one **"up day"** (current close > previous close).
* Volume must be:
* Above its 50-SMA, **and**
* Higher than each of the **previous 4 days**.
* Entry: At the close of volume-confirmation day.
* Useful when triangle patterns are not clear, but accumulation is strong.
---
### 📈 Entry Logic Recap
| Condition | Setup 1 | Setup 2 |
| ------------------ | --------------------- | --------------------------------------- |
| Pattern | Triangle Breakout | SMA Reclaim + Volume Surge |
| SMA Filter | Close > 50 SMA | Price drops < 50 SMA, then closes above |
| Volume Requirement | Not Required | > Volume SMA + > last 4 bars |
| Entry Trigger | Breakout candle close | After volume confirmation |
---
### 🚪 Exit Strategy
#### 🔁 **Trailing Stop Loss (TSL)**
* **Initial stop:** 10% below the **highest price reached** after entry.
* **Tightening rule:**
* When profit reaches **10%**, the trailing stop is **tightened to 5%**.
* This keeps you in the trade while locking in more profit as the trade moves in your favor.
#### 🔻 **Manual Close**
* If the price drops below the trailing stop, the position is automatically closed using `strategy.close()`.
---
### 🌈 Visual Aids & Additions
* Green background shading while in a trade.
* Real-time dashboard showing:
* SMA values
* Entry signals
* Plots for:
* Dynamic trailing stop
* Weekly Fibonacci R3 and S3 levels as outer support/resistance zones.
---
### 🧠 Ideal Use Cases
* Works well on **1-hour charts** for intraday to short swing trades.
* Especially effective in **sideways-to-bullish markets**.
* Helps avoid false breakouts by using SMA and volume filters.
---
Tip: I also showed weekly R3 on the chart. When the price touches at this level lock your profits. You Dont have to wait until price hits trailing stop loss.
warning : This strategy is published educational purposes only.
VWAP with 4 EMAsVWAP + 4 EMA Indicator
This indicator combines the Volume Weighted Average Price (VWAP) with three customizable Exponential Moving Averages (EMAs) to provide a comprehensive view of market trend, momentum, and institutional price levels.
Features:
VWAP Line: Plots the intraday VWAP, a key indicator used by institutions to gauge fair value.
3 EMAs: Customizable short, medium, and long-term EMAs help identify trend direction and potential entry/exit points.
Flexible Settings: Easily adjust the EMA lengths and styling to suit your trading strategy.
Clean Visual Layout: Designed for clarity without cluttering your chart.
Use Cases:
Trend Confirmation: Use the VWAP as a dynamic support/resistance level, while EMAs confirm the direction and strength of the trend.
Mean Reversion & Breakouts: Identify when price is stretched from VWAP or crosses key EMAs for potential reversal or breakout trades.
Day Trading & Swing Trading: Suitable for both short-term intraday and multi-day analysis.
This tool is ideal for traders who want to blend volume-weighted price levels with moving average trend signals on a single, efficient chart.
Essa - Multi-Timeframe LevelsEnhanced Multi‐Timeframe Levels
This indicator plots yearly, quarterly and monthly highs, lows and midpoints on your chart. Each level is drawn as a horizontal line with an optional label showing “ – ” (for example “Apr 2025 High – 1.2345”). If two or more timeframes share the same price (within two ticks), they are merged into a single line and the label lists each timeframe.
A distance table can be shown in any corner of the chart. It lists up to five active levels closest to the current closing price and shows for each level:
level name (e.g. “May 2025 Low”)
exact price
distance in pips or points (calculated according to the instrument’s tick size)
percentage difference relative to the close
Alerts can be enabled so that whenever price comes within a user-specified percentage of any level (for example 0.1 %), an alert fires. Once price decisively crosses a level, that level is marked as “broken” so it does not trigger again. Built-in alertcondition hooks are also provided for definite breaks of the current monthly, quarterly and yearly highs and lows.
Monthly lookback is configurable (default 6 months), and once the number of levels exceeds a cap (calculated as 20 + monthlyLookback × 3), the oldest levels are automatically removed to avoid clutter. Line widths and colours (with adjustable opacity for quarterly and monthly) can be set separately for each timeframe. Touches of each level are counted internally to allow future extension (for example visually emphasising levels with multiple touches).
EMA Trend Strength [Enhanced]This script shows the trend of the ticker. It paints five states: when the previous closing price is above 10EMA, which is greater than the 20 EMA, and the 20 EMA is greater than the 50 SMA - Very Bullish. When the previous closing price is above 10EMA and 10EMA is > 20EMA - Bullish. Vice versa for Very Bearish and Bearish. All other states are labelled "Neutral". The script allows you to adjust the background colours and colour and appearance of the MA lines.
Use at your own risk :). No warranty of any kind is provided or implied.
Current Ticker Previous Period High/Low LinesThis Indicator will provide you the Daily, Weekly, Monthly, and Yearly High and Low
23/35 SR Channels (Hitchhikers Guide To Goldbach)This indicator highlights potential short-term support and resistance zones based on the 23rd and 35th minute of each hour. At each of these time points, it draws a zone from the high to the low of the candle, extending it forward for a fixed number of bars.
Key features:
🔸 Orange zones mark the 23-minute candle
🔹 Blue zones mark the 35-minute candle
📏 Zones extend for a customizable number of bars (channelLength)
🔄 Existing zones are removed if they overlap significantly with a new one
🏷️ Optional labels show when a 23 or 35 zone is created
This tool is ideal for traders looking to identify time-based micro-structures and intraday reaction zones.
Volume/Z-Score Filtered Triple RegressionsVolume/Z-Score Filtered Triple Regressions
This indicator blends three regression techniques—Linear Regression, Ridge Regression, and Lasso Regression—to deliver a robust, multi-dimensional view of market trends.
Key Features
Triple Regression Analysis:
Linear Regression: Uses TradingView’s built-in linear regression over a configurable lookback period.
Ridge Regression: Applies a penalty term with centering to stabilize slope estimates.
Lasso Regression: Incorporates soft-thresholding to refine the regression by reducing noise.
Voting Mechanism:
Each regression “votes” bullish or bearish by comparing its value to the current close. A majority vote (at least two out of three) determines the preliminary market bias.
Z-Score Filtering:
The indicator calculates the average of the three regression values and derives a residual Z-score (based on standard deviation). Only when the absolute Z-score exceeds a user-defined threshold does it permit a trend change, helping filter out minor price fluctuations.
Volume Confirmation:
A moving average of volume (with multiple MA options available) is compared against current volume using a multiplier. This ensures that trend changes are supported by sufficient market activity.
Enhanced Visuals:
Dynamic color schemes for regression lines, the average trend line, and even candle colors help visually distinguish bullish and bearish signals. A gradient background further reinforces the current trend, adapting its transparency based on the strength of the Z-score.
Disclaimer
Disclaimer: This indicator is provided for educational and informational purposes only and does not constitute investment advice. Trading involves risk and may result in financial loss. Always perform your own research and consult with a qualified financial advisor before making any trading decisions.
Premarket & ORB Body High/Low Lines Till Market CloseDraw horizontal line for PRE-MARKET and ORB --Wicks is excluded.
What it does:
Tracks premarket body high/low 4:00–9:29 AM NY time
Tracks Opening Range Breakout (ORB) body high/low 9:30–9:44 AM NY time
Draws horizontal lines extended right until you scroll forward (no fixed length)
Labels show current value and update dynamically
Resets everything cleanly at the start of each new day