Daily Low < Threshold AND Close > Threshold//@version=5
indicator("Daily Low < Threshold AND Close > Threshold", overlay=true)
// Get 1-month close (no lookahead)
monthlyClose = request.security(syminfo.tickerid, "1M", close, lookahead=barmerge.lookahead_off)
// Compute adjustment and threshold
adjustment = monthlyClose * 12.15 / (100 * math.sqrt(360.0 / 30.0))
threshold = monthlyClose - adjustment
// Conditions
condLow = low < threshold
condClose = close > threshold
signal = condLow and condClose
// Plots
plot(threshold, title="Threshold", color=color.orange, linewidth=2)
plot(low, title="Daily Low", color=color.red, linewidth=1)
plot(close, title="Daily Close", color=color.green, linewidth=1)
// Signal marker
plotshape(signal,
title="Signal",
location=location.belowbar,
style=shape.labelup,
text="OK",
textcolor=color.white,
size=size.tiny,
color=color.green)
バンドとチャネル
Trend Tracer [AlgoAlpha]🟠 OVERVIEW
This tool builds a two-stage trend model that reacts to structure shifts while also showing how strong or weak the move is. It uses a mid-price band (from the highest high and lowest low over a lookback) and applies two Supertrend passes on top of it. The first pass smoothens the basis. The second pass refines that direction and produces the final trail used for signals. A gradient fill between the two trails uses RSI of price-to-trail distance to show when price is stretched or cooling off. The aim is to give traders a simple way to read trend alignment, pressure, and early turns without guessing.
🟠 CONCEPTS
The script starts with a mid-range basis. This is the average of the rolling highest high and lowest low. It acts as a stable structure reference instead of raw close or typical price. From there, two Supertrend layers are applied:
• The first Supertrend uses a shorter ATR period and lower factor. It reacts faster and sets the main regime.
• The second Supertrend uses a slightly longer ATR and higher factor. It filters noise, waits for confirmed continuation, and generates the signal line.
The interaction between these trails matters. The outer Supertrend provides context by defining the broader regime. The inner Supertrend provides timing by flipping earlier and marking possible shifts. The gradient fill uses RSI of (close − supertrend value) to display when price stretches away from the trail. This shows strength, exhaustion, or compression within the trend.
🟠 FEATURES
Bullish and bearish flip markers placed at recent highs/lows
Rejection signals off the trend tracer line
Alerts for bullish and bearish trend changes
🟠 USAGE
Setup : Add the script to your chart. Timeframe is flexible; lower timeframes show more flips while higher ones give cleaner swings. Adjust Length to change how wide the basis range is. Use the two ATR settings and factors to match the volatility of the market you trade.
Read the chart : When the refined trail (stv_) sits above price the regime is bearish; when below, it is bullish. The wide trail (stv) confirms the larger move. Watch the gradient fill: darker colors appear when price is stretched from the trail and lighter colors appear when the move is weakening. Flip markers ▲ or ▼ highlight the first clean shift of the refined trail.
Settings that matter : Increasing the Main Factor slows main-trend flips and filters chop. Increasing the Signal Factor delays the timing trail but reduces noise. Shortening Length makes the basis more reactive. ATR periods change how sensitive each Supertrend pass is to volatility.
Institutional VWAP Pressure – 5M Execution With 15M HTF BiasHow Smart Money Fades Overextended Intraday Moves
Most intraday traders rely on lagging indicators, chasing breakouts or reacting emotionally to volatility spikes.
Institutional traders do the opposite: they fade inefficiencies, accumulate liquidity, and force price back toward VWAP — the intraday “fair value anchor”.
In this idea, I’ll show you how 5M execution timing combined with 15M VWAP bias creates one of the cleanest mean-reversion models you can trade.
🧩 Why VWAP Matters for Institutional Flow
Large players measure performance and position quality relative to VWAP.
When price stretches too far above or below VWAP:
liquidity becomes thin
market orders become inefficient
continuation becomes unlikely
reversion becomes the path of least resistance
This creates exploitable opportunities — if you know where to look.
⏱ Why the 5M Timeframe Is Ideal for Execution
Most intraday inefficiencies (liquidity grabs, stop runs, exhaustion wicks) occur on 1M–5M candles, not on higher timeframes.
On 5-minute, we see:
microstructure shifts
orderflow exhaustion
failed breakouts
aggressive wicks into VWAP extremes
momentum curls (stochastics turning)
These details are invisible on 15M, meaning the 5M chart is where the actual entries should be taken.
📊 Why 15M Should Be Your HTF Bias Layer
Before fading an extended move, you must know:
Is the session trending strongly?
Is VWAP sloping up or down?
Are we in a high-volume directional environment?
15M gives clarity that 5M alone cannot.
It filters out setups that would fail in trending conditions and ensures that reversion plays align with institutional behavior.
Think of 15M as your macro intraday compass.
🎯 The Institutional VWAP Pressure Setup
We use a combination of three factors:
1️⃣ VWAP Deviation Zones (Overextension)
Price must exceed a tolerance band (e.g., ±0.5%) from VWAP.
This marks inefficiencies where retail is trapped.
2️⃣ Volume Exhaustion (Weak Liquidity)
Continuation requires strong volume.
Reversion happens when volume drops below a threshold (e.g., 70% of average).
Weak volume = weak conviction = high reversion probability.
3️⃣ Momentum Reversal (Stochastics Curl)
Institutions don’t fade blindly — they wait for momentum to turn:
SHORT: Stoch turns down from high levels
LONG: Stoch turns up from depressed levels
This avoids early entries and aligns with microstructure shifts.
🔻 SHORT Conditions (5M Execution)
Price > VWAP + tolerance
Volume < 0.7 × average
Stoch turning down (momentum shift)
15M VWAP not trending strongly upward
This identifies weak, extended rallies likely to mean-revert.
🔹 LONG Conditions (5M Execution)
Price < VWAP − tolerance
Volume exhaustion (weak selling)
Stoch curling upward
15M VWAP not trending sharply downward
This captures panic-driven selling that institutions often buy.
🧠 Why This Works Consistently
Because the model isn’t based on patterns or random indicators — it’s based on how real liquidity is managed:
VWAP = institutional fair value
Extreme deviations = retail emotion
Low volume = lack of continuation
Stochastic curl = momentum turning
15M slope = session structure
You’re essentially trading the natural tendency of price to return to efficiency.
ULTRA KAMA (Hayalet Sinyaller)Although you only see the KAMA (Kaufman Adaptive Moving Average) line on the chart, signal generation is managed by a powerful, 5-layer confirmation system running in the background.
Momentum Factor Model [QuantAlgo]🟢 Overview
The Momentum Factor Model is a multi-horizon momentum analysis system that combines weighted return calculations with risk-adjusted price projections to identify and track persistent directional trends. The indicator employs a quantitative approach by measuring momentum across multiple timeframes simultaneously, applying exponential decay weighting to balance recent versus historical price action, and constructing volatility-normalized boundaries for trend validation. This factor-based methodology provides traders and investors with a systematic framework for momentum regime identification, trend persistence evaluation, and dynamic support/resistance determination across diverse market conditions and timeframes.
🟢 How It Works
The indicator constructs a composite momentum factor by calculating percentage returns over three distinct lookback periods (1, 3, and 5 bars) and combining them using exponentially decayed weights. The momentum decay parameter controls the relative importance of each timeframe, with higher decay values creating more balanced weighting between recent and historical momentum, while lower values emphasize immediate price action. This weighted momentum factor captures the multi-dimensional nature of trend strength rather than relying on a single timeframe measurement.
The expected return is derived by smoothing the momentum factor over a user-defined period, establishing a baseline for anticipated price movement based on recent momentum characteristics. This expected return then projects a factor-based price estimate, which undergoes risk adjustment through volatility normalization, creating a price estimate that accounts for both directional bias and market volatility conditions.
🟢 How to Use It
▶ Enter Long positions when the momentum factor dots (⏺) transition from red to green (bullish) , indicating the momentum factor model has confirmed positive directional bias. The color change represents a validated shift where the factor line has broken through the lower boundary and begun tracking the upper bound, signaling momentum reversal to the upside. Conversely, enter Short positions or exit existing Longs when the dots shift from green to red (bearish) , confirming negative momentum establishment and downward trend tracking.
The momentum factor dots function as a dynamic momentum-based reference pathway that can be used for position management and risk control. During bullish phases, the dot formation represents a momentum-weighted support zone where pullbacks may find stability before continuation. During bearish trends, it acts as resistance where rallies may encounter selling pressure. Price action relative to the momentum factor pathway provides context on trend health: sustained price movement in the direction of the trend (above the dots during bullish phases, below during bearish phases) confirms momentum persistence, while repeated violations may suggest weakening directional conviction.
▶ Configure alert notifications to monitor trend changes without continuous chart observation. The indicator provides three alert types: "Bullish Momentum Signal" triggers specifically on upward trend reversals, "Bearish Momentum Signal" captures downward momentum shifts, and "Momentum Trend Change" fires on any directional transition. These alerts activate only when the trend state changes from one regime to another, eliminating false triggers from intrabar noise or temporary boundary touches that don't result in confirmed trend reversals.
▶ The indicator also offers six pre-designed color schemes (Classic, Aqua, Cosmic, Ember, Neon, Custom) optimized for various chart backgrounds and visual preferences, ensuring the momentum trend remains clearly visible under different display conditions. The bar coloring feature overlays trend direction directly onto the price candles, providing immediate visual confirmation of the momentum regime without needing to reference the dot pattern position.
🟢 Pro Tips for Trading and Investing
▶ Align the configuration preset with your trading timeframe and objectives: Fast Response settings excel on 1-15 minute charts for scalping and day trading where capturing quick momentum shifts is paramount, though this comes with increased signal frequency and potential whipsaws in ranging conditions. Default parameters suit hourly to daily charts for swing trading, providing balanced responsiveness without excessive noise. Smooth Trend configuration works best on 4-hour to weekly timeframes for position trading and investment analysis, prioritizing trend stability over timing precision and significantly reducing false reversals during consolidation periods.
▶ Context matters significantly for momentum-based systems. The indicator performs optimally during trending market regimes where directional persistence exists and may struggle during sideways consolidation where momentum lacks consistency. Before taking signals, assess the broader market structure: look for established higher highs/higher lows (uptrend) or lower highs/lower lows (downtrend) on higher timeframes to confirm you're trading with the dominant directional bias. During range-bound periods, reduce position sizing or wait for the momentum factor dots to establish a clear directional slope and consistent movement before committing capital.
▶ Layer the momentum factor model with complementary analysis rather than using it in isolation. Combine trend signals with volume confirmation (increasing volume on trend changes suggests institutional participation), key support/resistance levels (signals near major levels carry higher probability), and volatility context (ATR expansion can precede significant moves). Consider the momentum decay parameter's impact: values near 0.85 make the model highly sensitive to recent price action, ideal for fast-moving markets but prone to false signals; values near 0.95 create smoother momentum estimates that better filter noise but may lag major reversals.
▶ Implement dynamic position management using the momentum factor pathway as a trailing reference framework. Rather than placing fixed stops, observe the dot formation's progression: as long as it maintains its directional slope and price respects it as support (bullish) or resistance (bearish), the momentum regime remains intact. Exit or tighten stops when price closes decisively through the momentum factor dots against your position, or when the dot pathway itself flattens (losing slope) indicating momentum exhaustion. For portfolio allocation, scale position sizes based on momentum factor strength, e.g., steeper dot progression angles and faster advancement suggest stronger momentum worthy of larger allocations within your risk parameters.
01 TMA Centered BandsA dynamic, adaptive volatility channel used to identify trend direction, overbought/oversold zones, and precise reversal points.
Features:
Real-time centered TMA calculation
Market volatility detection
Reversal zones with high-probability signals
Works on all timeframes and assets
Benefits:
Helps you catch early trend shifts
Filters out market noise during ranging periods
SwgMFI
⸻
🧭 Description (for TradingView)
Swing Filter MFI + Divergence + Exhaustion
This indicator is designed to identify swing phases, momentum shifts, and exhaustion points using a refined version of the Money Flow Index (MFI).
It combines multi-layer filters to help traders visualize when momentum is building, fading, or reversing.
⸻
⚙️ Core Logic
• MFI Momentum Wave
Displays normalized money flow pressure (–60 to +60).
Gray zone = neutral.
Red/Green extensions = strong momentum bursts beyond upper/lower bands.
• Exhaustion Detection
Highlights orange (bull exhaustion) and blue (bear exhaustion) zones when momentum starts to fade after an extended move.
• Divergence Recognition
Plots circles when price makes new highs/lows but MFI fails to confirm — signaling potential turning points.
• Swing Confirmation Signals
Buy/Sell triangles appear when a recent exhaustion or divergence is followed by a re-entry into normal momentum range, confirming a likely swing reversal.
Frequency is automatically throttled to avoid multiple signals during one move.
⸻
💡 How to Use
1. Use red/green blocks to identify strong momentum zones.
2. Watch for orange/blue exhaustions — they often mark late-trend fatigue.
3. A BUY▲ signal suggests bearish exhaustion followed by recovery momentum.
4. A SELL▼ signal suggests bullish exhaustion followed by declining momentum.
5. Combine with your trend filter (EMA/Bollinger) for confirmation.
⸻
🧩 Best Settings
• MFI length: 14
• Upper / Lower bands: ±40
• Slope sensitivity: 1.5
• Signal lookback: 5
• Minimum gap between signals: 10 bars
⸻
📊 Built For
Swing traders, momentum scalpers, and algorithmic strategists who need early exhaustion cues rather than lagging trend indicators.
Can be used on any asset or timeframe (works exceptionally well on 4H and Daily charts).
⸻
✍️ Credits
Concept & logic refinement by @kkbst88
Based on original MFI/RSI work by LazyBear & SeiglerJ (open-source community).
ZY Target TerminatorThe indicator follows trends and generates short and long signals. Furthermore, when it generates a signal, it displays the maximum profit margins for the last three signals it generated in the same direction. It also clearly indicates the number of candles for which no signal has been generated for the pair. Avoid trading pairs whose profit margins do not align with your trading strategy.
Smart Trend Cloud + Dynamic Gate (V 2.3)Smart Trend Cloud + Dynamic Gate
The Smart Trend Cloud + Dynamic Gate is a comprehensive trend-following system designed to filter out market noise and identify high-probability trend entries. Unlike simple Moving Average crossovers which often fail in ranging markets, this indicator employs a multi-stage validation system (The "Gate") combining Volume, Momentum, and Volatility filters to ensure you only trade when the market has conviction.
Key Features:
> Multi-Type Trend Cloud: Choose between HMA (Hull Moving Average), EMA, or ZeroLag EMA to define the trend baseline.
> The "Dynamic Gate" Filter: A crossover alone does not trigger a signal. The move must be validated by Relative Volume or MACD Histogram momentum within a specific window.
> Choppiness Suppression: Integrated ADX filter turns the candles gray during low-volatility consolidation zones to prevent over-trading.
> Stretch Bands: Optional ATR-based bands to highlight when price is over-extended from the mean.
> Live Dashboard: A table on the chart displaying current Trend State, Relative Volume strength, and ADX values.
How logic Works
1. Trend Definition & The Cloud The core trend is defined by the relationship between a Fast and Slow Moving Average.
Visuals: The space between these MA's forms the "Cloud". The cloud color transparency adjusts dynamically based on the strength of the trend (the spread between the MAs).
MA Options:
HMA: Best for scalping (1m/5m) due to low lag.
ZeroLag EMA: Custom calculation to reduce latency while retaining smoothness.
EMA: Standard trend following.
2. The Entry Gate (Validation) To avoid false signals during "whipsaw" price action, this script uses a logic gate. When a MA crossover occurs, it enters a "Pending" state. It only confirms a BULL or BEAR state if one of the following conditions is met within Gate Window bars:
Volume Spike: Relative Volume (Current Vol / Avg Vol) is greater than the defined threshold (default 1.2x).
Momentum Shift: The MACD Histogram confirms the direction of the trend.
3. Consolidation Filter The script calculates the ADX (Average Directional Index). If the ADX is below the Min ADX Strength threshold (default 20), the market is considered "Choppy."
Visual: Bars turn Gray.
Logic: Trend signals are suppressed until volatility expands.
4. Visual Dashboard A panel is located in the top-right corner providing real-time data:
Trend: Current State (Bull, Bear, or Chop).
Vol: Current Relative Volume (Green if > 1.0).
ADX: Current Trend Strength value.
Settings:
Trend Settings:
Adjust MA types and lengths to fit your timeframe.
Entry Gate: Toggle the Volume/Price gate on/off and adjust the Relative Volume requirement.
Consolidation: Enable/Disable the ADX filter to see all signals or only high-strength ones.
Visuals: Toggle the Cloud, Dashboard, or "Stretch Bands" (ATR bands) to declutter your chart.
Recommended Settings by Timeframe
Since different timeframes require different sensitivities to noise, here are the optimized settings for the Smart Trend Cloud:
⚡ 5 Minute Chart (Scalping)
Best for: Catching quick intraday momentum bursts while filtering chop.
MA Type: HMA (Hull Moving Average for speed)
Fast Length: 9
Slow Length: 21
Min Relative Volume: 1.3 (Requires higher volume to confirm entry)
Min ADX: 25 (Stricter chop filter)
⏱️ 15 Minute Chart (Intraday Swing)
Best for: Day trading with a balance of speed and stability.
MA Type: ZeroLag EMA (Reduces noise better than HMA)
Fast Length: 10
Slow Length: 30
Min Relative Volume: 1.2
Min ADX: 20
hrs 1 Hour Chart (Short-Term Swing)
Best for: Capturing the trend of the week.
MA Type: EMA or ZeroLag EMA
Fast Length: 12
Slow Length: 26 (Classic MACD correlation)
Min Relative Volume: 1.1
Min ADX: 20
📅 1 Day Chart (Position Trading)
Best for: Long-term trends and "Golden Cross" style entries.
MA Type: EMA (Standard Institutional Moving Average)
Fast Length: 20
Slow Length: 50
Min Relative Volume: 1.2
Min ADX: 15 (Allows for earlier entries on major trend shifts)
Alerts:
The script includes built-in alertcondition events for:
Trend Start: Bull (Valid trend detected after filtering).
Trend Start: Bear (Valid trend detected after filtering).
Access & Authorization
This is an Invite-Only script.
st reversal detector" Highly accurate reversal-detection algorithm that identifies market reversals before they occur, focusing on early signals at swing highs and swing lows. The tool must work seamlessly with confluences such as RSI overbought/oversold levels, bullish or bearish divergence, and other reversal confirmations to filter only A+ setups. no lag, no repainting, and clear visual signals for intraday trading. The model should work exceptionally well on the 10-minute and 5-minute timeframes and be specifically optimized for XAUUSD m10 and ETH m5 timeframe ''
Trend Step Channel [BigBeluga]🔵 OVERVIEW
Trend Step Channel identifies directional bias by forming a dynamic volatility-based step channel. It detects trend shifts when candle lows close above the upper band (bullish) or when candle highs drop below the lower band (bearish). A step-style midline tracks the trend evolution, while an integrated dashboard shows price positioning percentages across multiple timeframes.
🔵 CONCEPTS
ATR-Based Channel — The indicator constructs upper and lower channel boundaries using ATR distance around a single adaptive trend line, providing automatic scaling with volatility.
Trend Direction Logic —
• Low above upper band → uptrend confirmation.
• High below lower band → downtrend confirmation.
Step Trend Line — A reactive midline that locks onto price swings, stepping upward or downward as new trend confirmations occur.
Channel Width — Defines the total volatility range around the midline; a wider channel smooths market noise, while a narrower one reacts faster.
Price Position Ratio — Calculates the relative position of the close within the channel, from 0% (bottom) to 100% (top).
🔵 FEATURES
Volatility-Adaptive Channel — Expands and contracts dynamically to match market volatility, maintaining consistent distance scaling.
Configurable MA Source — Choose from SMA, EMA, SMMA, WMA, or VWMA as the base smoothing method.
Color-Coded Step Line —
• Green indicates an uptrend.
• Orange indicates a downtrend.
Channel Fill Visualization — Semi-transparent fills highlight active volatility zones for clear trend identification.
Price Position Label — Displays a “<” marker and percentage at the channel edge showing how far the current close is from the lower or upper band.
Multi-Timeframe Dashboard —
• Displays alignment across 1H–5H charts.
• Each cell shows an arrow (↑ / ↓) with price % positioning.
• Cell background color reflects bullish or bearish bias.
Real-Time Updating — The channel, midline, and dashboard refresh dynamically every bar for continuous feedback.
🔵 HOW TO USE
Trend Confirmation —
• Bullish trend forms when candle low closes above the upper band.
• Bearish trend forms when candle high closes below the lower band.
Trend Continuation — Maintain bias while the step line color remains consistent.
Volatility Breakouts — Sudden candle breaks outside the band suggest new directional strength.
Dashboard Alignment — Confirm trend consistency across multiple timeframes before entering trades.
Entry Planning — In uptrends, consider entries near the lower band; in downtrends, focus on upper-band rejections.
Price Position Insight — Use the % label to judge whether price is extended (near 100%) or compressed (near 0%) within the channel.
🔵 CONCLUSION
Trend Step Channel delivers a precise, volatility-driven view of trend structure using ATR-based boundaries and a step-line framework. The integrated dashboard, color-coded channel, and live positioning metrics give traders a complete picture of market direction, trend strength, and price location within evolving conditions.
Buy & Sell Arrows - MACD + Best_Solve WPRMACD + Best_Solve Williams %R – Aggressive Trend-Reversal Catcher
(Allow Signals Even in Overbought/Oversold Zones)
This indicator combines the classic MACD histogram with Best_Solve’s popular custom Williams %R (a 0–100 momentum oscillator that behaves more like a fast Stochastic) to deliver clean, high-conviction entry signals on daily (and higher) timeframes.
Core Logic – Only TWO conditions are required
BUY (large green arrow below bar)
MACD histogram is green (bullish momentum)
Williams %R fast line is crossing above OR already above its EMA
SELL (large red arrow above bar)
MACD histogram is red (bearish momentum)
Williams %R fast line is crossing below OR already below its EMA
Unlike most oscillators, this version deliberately removes the traditional “do not buy when overbought / do not sell when oversold” filters. This allows the script to catch powerful trend reversals and explosive moves immediately — even on violent earnings gaps or panic sell-offs (example: META’s -11 % drop on Oct 30 2025 triggered an instant sell even though %R was deeply oversold).
Built-in Clean-Signal Logic
No consecutive buys or sells — each new signal must be preceded by the opposite direction.
This keeps the chart extremely clean and prevents whipsaw clusters during strong trends.
Best Use Cases
Daily and 4H swing trading on stocks, indices, crypto, forex
Excellent for catching sharp reversals after earnings, news events, or overextended moves
Works especially well on high-beta names and growth stocks
Visuals
Large green/red arrows with “BUY” / “SELL” text (your favorite style)
Subtle transparent MACD histogram overlaid on price for instant momentum context
Ready-to-use alerts (“Buy Alert” / “Sell Alert”)
Set it, alert it, trade it — one of the cleanest and most responsive daily reversal systems you’ll find.
Enjoy the edge!
Minho Index | SETUP+@TraderMinho//@version=5
// By: Trader Minho — Analista Gráfico desde 2022
indicator("Minho Index | SETUP+@TraderMinho", shorttitle="Minho Index (Classic)", overlay=false)
//--------------------------------------------------------
// PARAMETERS
//--------------------------------------------------------
shortPeriod = input.int(3, "Short Period")
mediumPeriod = input.int(8, "Medium Period")
longPeriod = input.int(20, "Long Period")
intensityFactor = input.float(3.0, "Intensity Factor", step = 0.1)
shortSmoothing = input.int(2, "Short Smoothing (EMA)")
mediumSmoothing = input.int(5, "Medium Smoothing (EMA)")
shortColor = input.color(color.new(#00CED1, 0), "Short Line Color (Aqua Blue)")
mediumColor = input.color(color.new(#FFD700, 0), "Medium Line Color (Yellow)")
zeroColor = input.color(color.new(color.white, 0), "Zero Line Color")
lineWidth = input.int(1, "Line Thickness")
//--------------------------------------------------------
// MOVING AVERAGE CALCULATIONS
//--------------------------------------------------------
smaShort = ta.sma(close, shortPeriod)
smaMedium = ta.sma(close, mediumPeriod)
smaLong = ta.sma(close, longPeriod)
//--------------------------------------------------------
// CLASSIC DIDI NORMALIZATION
//--------------------------------------------------------
priceBase = ta.sma(close, longPeriod)
didiShort = ((smaShort - smaLong) / priceBase) * intensityFactor
didiMedium = ((smaMedium - smaLong) / priceBase) * intensityFactor
//--------------------------------------------------------
// FINAL SMOOTHING (CLASSIC NEEDLE EFFECT)
//--------------------------------------------------------
aquaSmooth = ta.ema(didiShort, shortSmoothing)
yellowSmooth = ta.ema(didiMedium, mediumSmoothing)
//--------------------------------------------------------
// PLOTS
//--------------------------------------------------------
hline(0, "Zero Line", color = zeroColor, linewidth = 1)
plot(aquaSmooth, "Short (Aqua)", color = shortColor, linewidth = lineWidth)
plot(yellowSmooth, "Medium (Yellow)", color = mediumColor, linewidth = lineWidth)
Opening Range with Breakouts & Targets w/ Alerts [LuxAlgo]This is the exact Lux Algo opening range with Breakouts and Targets, but added the ability to fire alerts on buy and sell signals
Мой скриптinputs:
window(1),
type(0), // 0: close, 1: high low, 2: fractals up down, 3: new fractals
persistent(False),
exittype(1),
nbars(160),
adxthres(40),
nstop(3000);
vars:
currentSwingLow(0),
currentSwingHigh(0),
trailStructureValid(false),
downFractal(0),
upFractal(0),
breakStructureHigh(0),
breakStructureLow(0),
BoS_H(0),
BoS_L(0),
Regime(0),
Last_BoS_L(0),
Last_BoS_H(0),
PeakfilterX(false);
BoS(window,persistent,type,Bos_H,BoS_L,upFractal,downFractal,breakStructureHigh,breakStructureLow);
//BOS Regime
If BoS_H <> 0 then begin
Regime = 1; // Bullish
Last_BoS_H = BoS_H ;
end;
If BoS_L <> 0 Then begin
Regime = -1; // Bearish
Last_BoS_L = BoS_L ;
end;
//Entry Logic: if we are in BoS regime then wait for break swing to entry
if ADX(5) of data2 < adxthres then begin
if time>900 and Regime = 1 and EntriesToday(date)= 0 and Last_BoS_H upFractal then buy next bar at market;
end;
if time>900 and EntriesToday(date)= 0 and Regime = -1 and Last_BoS_L>downFractal then
begin
if close < downFractal then sellshort next bar at market;
end;
end;
// Exits: nbars or stoploss or at the end of the day
if marketposition <> 0 and barssinceentry >nbars then begin
sell next bar at market;
buytocover next bar at market;
end;
setstoploss(nstop);
setexitonclose;
Custom ORB (Adjust Time, Color, + Alerts)Set Opening Range Break Out for whatever time range you choose for current day only. 15 min, 30 min etc. You can add alerts on ORB High Low and change color of Lines.
SPX EMAs - Bala//@version=5
indicator("SPX EMAs", overlay = true)
// Inputs
ema8 = ta.ema(close, 8)
ema21 = ta.ema(close, 21)
ema50 = ta.ema(close, 50)
ema200 = ta.ema(close, 200)
// Plot EMAs
plot(ema8, "EMA 8", color=color.new(color.green, 0), linewidth=2)
plot(ema21, "EMA 21", color=color.new(color.orange, 0), linewidth=2)
plot(ema50, "EMA 50", color=color.new(color.blue, 0), linewidth=2)
plot(ema200,"EMA 200",color=color.new(color.red, 0), linewidth=2)
Interactive Compound Interest ProjectorThis indicator is an interactive tool designed for long-term investors and analysts who want to compare an asset's performance against a theoretical compound interest growth curve.
Unlike static tools, this script utilizes the Interactive Anchor feature. This allows you to click on any specific point on the chart (e.g., a market bottom, a specific entry date, or a previous all-time high) to serve as the starting point ("Principal") for the projection.
How to use
Add the indicator to your chart.
Important: Because confirm=true is enabled, the script will wait for you to click on the chart. Click on the specific candle you want to use as the "Start Date".
The Yellow Line will appear starting from that candle.
Open the indicator settings to adjust:
Annual Interest Rate: (Default 6.0%).
Project until Year: (Default 2050).
Use this to visualize if an asset is "beating" a standard benchmark (like a 10% S&P500 average or a 4% risk-free rate) from a specific moment in time.
Disclaimer: This tool is for educational and comparative analysis purposes only and does not guarantee future results.
Nq/ES daily CME risk intervalNQ/ES Daily CME Range Indicator: Description and Usage
What the Indicator Does
Reverse engineering the risk interval for CME (Chicago Mercantile Exchange) products based on margin requirements involves understanding the relationship between margin requirements, volatility, and the risk interval (price movement assumed for margin calculation)
The CME uses a methodology called SPAN (Standard Portfolio Analysis of Risk) to calculate margins. At a high level, the initial margin is derived from:
Initial Margin = Risk Interval × Contract Size × Volatility Adjustment Factor
This indicator creates daily risk intervals for NQ/ES futures contracts based on volatility measurements given the fact that the CME volatility adjustment factor is not public.
The indicator draws horizontal lines on your chart that represent expected price movement ranges based on:
Your specified maintenance margin requirements
Current and historical volatility calculations
Contract lifecycle and rollover detection
The indicator automatically detects when futures contracts roll over to a new contract month, dynamically adjusts volatility calculations throughout the contract lifecycle, and displays the intervals as horizontal lines that extend from the previous day's close. These intervals give you a visual representation of likely price ranges for the current trading session.
How to Use the Indicator
To use this indicator effectively:
Add it to your NQ or ES futures chart (works on continuous contracts or individual contract months)
Set your maintenance margin amount in the risk interval settings (product margins page from the CME website. I tend to use the maintenance short margin)
The indicator will automatically draw horizontal lines at 18:00 ET each day
Use these lines as potential profit targets in volatile days
Monitor the information table for details on volatility, risk interval size, and contract lifecycle
The indicator helps you visualize expected price movement based on market volatility and your specified risk parameters, allowing you to make more informed trading decisions about position sizing and potential profit targets.
Additionally, when the market moves on news/events you will notice it will most often move exactly the risk interval value.
Why These Settings Work as Defaults
First Month Vol Period (30): The first 30 days after contract rollover typically have different volatility characteristics. This setting ensures accurate volatility measurements during this period when contract behaviour may be less stable.
Enable Volatility Floor (Checked): This prevents volatility from falling below historical levels, ensuring your risk intervals don't become too narrow during artificially calm periods. Research shows that protracted low volatility can lead to a build-up of leverage and risk, making the system vulnerable.
Volatility Floor % (0.7): The 0.7 setting works better than higher values because it better accounts for how equity volatility behaves at lower bounds. It allows for natural mean reversion while still providing protection against underestimating risk during low volatility periods.
Transition Period (30 days): This creates a smooth transition from the first month volatility period to the actual days since rollover calculation, preventing abrupt changes in your risk intervals.
Annual Trading Days (252): 252 is the standard number of trading days in a year used in financial calculations. This value is used for properly annualizing volatility measurements.
Long-Term Volatility Period (504): A 504-day period (approximately 2 years of trading days) provides several advantages over the standard 252-day setting. It better captures full market cycles including both bull and bear markets, provides more stable volatility estimates across regime changes, and results in more reliable risk intervals. Research shows this longer timeframe produces better volatility forecasts for futures markets, as it captures a more comprehensive range of market conditions while smoothing out anomalous periods.
The combination of these settings—particularly the 504-day long-term period with the 0.7 volatility floor—creates more stable and reliable risk intervals that adapt appropriately to changing market conditions without becoming overly sensitive to short-term fluctuations or too sluggish during genuine market shifts.
Adaptive Dual MA Trend Ribbon Community “Larsson-Style” PresetsMany traders enjoy experimenting with dual-moving-average “trend ribbon” structures that resemble the visual style of popular tools such as the Larsson Line. While the internal logic of closed-source indicators is not publicly available, the trading community often explores MA combinations like SMMA 15/29 or EMA 30/60 with ATR filters to study trend transitions and visualize momentum shifts.
This script does not replicate, reverse-engineer, or replace any closed-source indicator. Instead, it provides a flexible, open-source framework that lets traders build their own trend-ribbon configuration inspired by similar visual concepts while maintaining full transparency. Because the calculations rely only on standard, well-known moving-average and ATR methods, traders can experiment freely with community-discussed presets without relying on proprietary tools.
What the Script Does
• Plots Fast and Slow moving averages using the method of your choice: SMMA (RMA), EMA, SMA, or WMA
• Colors the ribbon to show directional bias:
• Bullish when Fast MA > Slow MA
• Bearish when Fast MA < Slow MA
• Neutral when the difference is small (optional ATR filter)
• Supports ATR-based neutral zone filtering
• Supports optional bar coloring
• Works on all markets and timeframes
• Fully open-source and customizable
Why This Script Is Useful
Traditional moving averages identify trend direction but lack context during uncertain or low-momentum conditions. This script adds value by:
1. Allowing multiple smoothing techniques (SMMA/EMA/SMA/WMA)
2. Highlighting clearer trend transitions
3. Identifying low-confidence periods using ATR
4. Providing a visually intuitive ribbon instead of single-line signals
Suitable for swing traders, trend followers, breakout traders, and anyone who wants cleaner structure-based contextualization.
Popular Community MA Combinations
Many traders experiment with specific MA pairs to understand trend-ribbon behavior:
• SMMA 15/29 → smoother structural trend flow
• EMA 30/60 → more responsive momentum shifts
• EMA 10/21 → intraday rhythm
• EMA 50/100 → higher-timeframe structure
These examples are commonly used by the community—but this script does not recreate or imitate any closed-source or commercial indicator.
How to Use
1. Choose your preferred MA type
2. Adjust Fast/Slow lengths to match your timeframe
3. Enable ATR Neutral Zone to reduce false flips
4. Optionally enable bar coloring
5. Combine with structure, volume, or price action for decision-making
Important Notes
• This script is original, open-source, and not affiliated with any commercial indicator or author.
• It does not reproduce, imitate, or reverse-engineer any closed-source logic.
• All computations are standard MA/ATR methods for clarity and transparency.
Disclaimer
This tool is for educational and analytical purposes only.
Always test parameters and use proper risk management before applying to live trading.






















