Anchored Grids ft. VolumeINTRO
The 'Volume Profile' is a great tool, isn’t it? It shows us where volume has accumulated on the chart and helps guide trading decisions. The only catch is that we can’t really choose the levels—it’s all based on where volume happens to cluster. But what if we reversed the logic and measured the volume at the levels we define? That’s exactly what this script does, giving you a fresh way to spot support and resistance :)
OVERVIEW
'Anchored Grids ft. Volume' is a sophisticated technical analysis tool that combines price grid analysis with volume accumulation metrics. This indicator dynamically calculates and displays custom support and resistance levels based on a user-defined timeframe, while simultaneously tracking and visualizing volume accumulation at each specific price level. Unlike traditional volume profile indicators that use complex statistical clustering, this tool provides straightforward volume measurement at predetermined technical levels. It answers a critical question: "How much trading activity occurred near the key price levels I care about?".
HOW DOES THIS INDICATOR WORK?
This indicator builds a customizable grid system anchored to the opening price of any user-selected timeframe (hourly, daily, weekly, etc.). From that anchor point, it continuously tracks the highest high and lowest low, then calculates equidistant grid levels within that range. Two calculation modes are available—Arithmetic and Geometric—allowing flexibility in how the levels are distributed.
Once the grid is established, a volume accumulation engine comes into play. For each price bar, the script checks whether the bar’s range intersects with any level’s tolerance zone (default 0.01%). If a touch is detected, that bar’s volume is added to the corresponding level. Over time, this process builds a clear picture of where significant trading activity has clustered.
The visualization system highlights these dynamics by applying a color gradient based on volume intensity and adjusting line thickness proportional to accumulated volume. Each level is also labeled with four key data points:
The grid number (in square brackets)
The price of the level
The percentage distance between the level and the opening price of the selected timeframe
The total volume accumulated within the level’s tolerance range
PARAMETERS
Timeframe: Defines the anchor period for grid calculation. Then, the indicator automatically determines the open, high, and low prices.
Mode: This option determines how the distance between levels is calculated: Arithmetic (linear) means equal price spacing between levels, while Geometric (logarithmic) means equal percentage spacing between levels.
Grids: It's the number of levels between high and low.
Color: Base color for grid lines and labels. When volume data is displayed, lower values are darkened by 50%.
Show Volume Accumulation: When this parameter is activated, the volume calculation is enabled.
Tolerance : The Tolerance parameter (default range: 0.01%) defines the price range around each grid level where volume accumulation is registered. It acts as a sensitivity control that determines how close price must be to a level to count trading volume toward that level's accumulation.
ORIGINALITY
It’s possible to find comprehensive grid-drawing tools among community indicators, but I haven’t come across an example that combines this concept with volume data. More importantly, I wanted to demonstrate how volume accumulation can be generated for any data modeled as an array on the chart by developers.
SUMMARY
In conclusion, the selected timeframe and the number of grids are only used as a reference to determine where the levels are drawn. The true value of this indicator lies in its ability to calculate volume accumulation directly from the chart’s own candles, showing how much trading activity occurred around each level. The result is a hybrid framework that merges structural price analysis with volume distribution, offering traders deeper insights into where markets are likely to react.
NOTE
While powerful, this tool should be used as part of a comprehensive trading strategy rather than as a standalone system. Always combine with risk management principles and market context awareness. I hope it helps everyone. Trade as safely as possible. Best of luck!
頻帶和通道
Price Heat Meter [ChartPrime]⯁ OVERVIEW
Price Heat Meter visualizes where price sits inside its recent range and turns that into an intuitive “temperature” read. Using rolling extremes, candles fade from ❄️ aqua (cold) near the lower bound to 🔥 red (hot) near the upper bound. The tool also trails recent extreme levels, tags unusually persistent extremes with a % “heat” label, and shows a bottom gauge (0–100%) with a live arrow so you can read market heat at a glance.
⯁ KEY FEATURES
Rolling Heat Map (0–100%):
The script measures where the close sits between the current Lowest Low and Highest High over the chosen Length (default 50).
Candles use a two-stage gradient: aqua → yellow (0–50%), then yellow → red (50–100%). This makes “how stretched are we?” instantly visible.
Dynamic Extremes with Time Decay:
When a new rolling High or Low is set, the script starts a faint horizontal trail at that price. Each bar that passes without a new extreme increases a counter; the line’s color gradually fades over time and fully disappears after ~100 bars, keeping the chart clean.
Persistent-Extreme Tags (Reversal Hints):
If an extreme persists for 40 bars (i.e., price hasn’t reclaimed or surpassed it), the tool stamps the original extreme pivot with its recorded Heat% at the moment the extreme formed.
• Upper extremes print a red % label (possible exhaustion/resistance context).
• Lower extremes print an aqua % label (possible exhaustion/support context).
Bottom Heat Gauge (0–100% Scale):
A compact, gradient bar renders at the bottom center showing the current Heat% with an arrow/label. ❄️ anchors the left (0%), 🔥 anchors the right (100%). The arrow adopts the same candle heat color for consistency.
Minimal Inputs, Clear Theme:
• Length (lookback window for H/L)
• Heat Color set (Cold / Mid / Hot)
The defaults give a balanced, legible gradient on most assets/timeframes.
Signal Hygiene by Design:
The meter doesn’t “call” reversals. Instead, it contextualizes price within its range and highlights the aging of extremes. That keeps it robust across regimes and assets, and ideal as a confluence layer with your existing triggers.
⯁ HOW IT WORKS (UNDER THE HOOD)
Range Model:
H = Highest(High, Length), L = Lowest(Low, Length). Heat% = 100 × (Close − L) / (H − L).
Extreme Tracking & Fade:
When High == H , we record/update the current upper extreme; same for Low == L on the lower side. If the extreme doesn’t change on the next bar, a counter increments and the plotted line’s opacity shifts along a 0→100 fade scale (visual decay).
40-Bar Persistence Labels:
On the bar after the extreme forms, the code stores the bar_index and the contemporaneous Heat% . If the extreme survives 40 bars, it places a % label at the original pivot price and index—flagging levels that were meaningfully “tested by time.”
Unified Color Logic:
Both candles and the gauge use the same two-stage gradient (Cold→Mid, then Mid→Hot), so your eye reads “heat” consistently across all elements.
⯁ USAGE
Treat >80% as “hot” and <20% as “cold” context; combine with your trigger (e.g., structure, OB, div, breakouts) instead of acting on heat alone.
Watch persistent extreme labels (40-bar marks) as reference zones for reaction or liquidity grabs.
Use the fading extreme lines as a memory map of where price last stretched—levels that slowly matter less as they decay.
Tighten Length for intraday sensitivity or increase it for swing stability.
⯁ WHY IT’S UNIQUE
Rather than another oscillator, Price Heat Meter translates simple market geometry (rolling extremes) into a readable temperature layer with time-aware extremes and a synchronized gauge . You get a continuously updated sense of stretch, persistence, and potential reversal context—without clutter or overfitting.
Adaptive Rolling Quantile Bands [CHE] Adaptive Rolling Quantile Bands
Part 1 — Mathematics and Algorithmic Design
Purpose. The indicator estimates distribution‐aware price levels from a rolling window and turns them into dynamic “buy” and “sell” bands. It can work on raw price or on *residuals* around a baseline to better isolate deviations from trend. Optionally, the percentile parameter $q$ adapts to volatility via ATR so the bands widen in turbulent regimes and tighten in calm ones. A compact, latched state machine converts these statistical levels into high-quality discretionary signals.
Data pipeline.
1. Choose a source (default `close`; MTF optional via `request.security`).
2. Optionally compute a baseline (`SMA` or `EMA`) of length $L$.
3. Build the *working series*: raw price if residual mode is off; otherwise price minus baseline (if a baseline exists).
4. Maintain a FIFO buffer of the last $N$ values (window length). All quantiles are computed on this buffer.
5. Map the resulting levels back to price space if residual mode is on (i.e., add back the baseline).
6. Smooth levels with a short EMA for readability.
Rolling quantiles.
Given the buffer $X_{t-N+1..t}$ and a percentile $q\in $, the indicator sorts a copy of the buffer ascending and linearly interpolates between adjacent ranks to estimate:
* Buy band $\approx Q(q)$
* Sell band $\approx Q(1-q)$
* Median $Q(0.5)$, plus optional deciles $Q(0.10)$ and $Q(0.90)$
Quantiles are robust to outliers relative to means. The estimator uses only data up to the current bar’s value in the buffer; there is no look-ahead.
Residual transform (optional).
In residual mode, quantiles are computed on $X^{res}_t = \text{price}_t - \text{baseline}_t$. This centers the distribution and often yields more stationary tails. After computing $Q(\cdot)$ on residuals, levels are transformed back to price space by adding the baseline. If `Baseline = None`, residual mode simply falls back to raw price.
Volatility-adaptive percentile.
Let $\text{ATR}_{14}(t)$ be current ATR and $\overline{\text{ATR}}_{100}(t)$ its long SMA. Define a volatility ratio $r = \text{ATR}_{14}/\overline{\text{ATR}}_{100}$. The effective quantile is:
Smoothing.
Each level is optionally smoothed by an EMA of length $k$ for cleaner visuals. This smoothing does not change the underlying quantile logic; it only stabilizes plots and signals.
Latched state machines.
Two three-step processes convert levels into “latched” signals that only fire after confirmation and then reset:
* BUY latch:
(1) HLC3 crosses above the median →
(2) the median is rising →
(3) HLC3 prints above the upper (orange) band → BUY latched.
* SELL latch:
(1) HLC3 crosses below the median →
(2) the median is falling →
(3) HLC3 prints below the lower (teal) band → SELL latched.
Labels are drawn on the latch bar, with a FIFO cap to limit clutter. Alerts are available for both the simple band interactions and the latched events. Use “Once per bar close” to avoid intrabar churn.
MTF behavior and repainting.
MTF sourcing uses `lookahead_off`. Quantiles and baselines are computed from completed data only; however, any *intrabar* cross conditions naturally stabilize at close. As with all real-time indicators, values can update during a live bar; prefer bar-close alerts for reliability.
Complexity and parameters.
Each bar sorts a copy of the $N$-length window (practical $N$ values keep this inexpensive). Typical choices: $N=50$–$100$, $q_0=0.15$–$0.25$, $k=2$–$5$, baseline length $L=20$ (if used), adaptation strength $s=0.2$–$0.7$.
Part 2 — Practical Use for Discretionary/Active Traders
What the bands mean in practice.
The teal “buy” band marks the lower tail of the recent distribution; the orange “sell” band marks the upper tail. The median is your dynamic equilibrium. In residual mode, these tails are deviations around trend; in raw mode they are absolute price percentiles. When ATR adaptation is on, tails breathe with regime shifts.
Two core playbooks.
1. Mean-reversion around a stable median.
* Context: The median is flat or gently sloped; band width is relatively tight; instrument is ranging.
* Entry (long): Look for price to probe or close below the buy band and then reclaim it, especially after HLC3 recrosses the median and the median turns up.
* Stops: Place beyond the most recent swing low or $1.0–1.5\times$ ATR(14) below entry.
* Targets: First scale at the median; optional second scale near the opposite band. Trail with the median or an ATR stop.
* Symmetry: Mirror the rules for shorts near the sell band when the median is flat to down.
2. Continuation with latched confirmations.
* Context: A developing trend where you want fewer but cleaner signals.
* Entry (long): Take the latched BUY (3-step confirmation) on close, or on the next bar if you require bar-close validation.
* Invalidation: A close back below the median (or below the lower band in strong trends) negates momentum.
* Exits: Trail under the median for conservative exits or under the teal band for trend-following exits. Consider scaling at structure (prior swing highs) or at a fixed $R$ multiple.
Parameter guidance by timeframe.
* Scalping / LTF (1–5m): $N=30$–$60$, $q_0=0.20$, $k=2$–3, residual mode on, baseline EMA $L=20$, adaptation $s=0.5$–0.7 to handle micro-vol spikes. Expect more signals; rely on latched logic to filter noise.
* Intraday swing (15–60m): $N=60$–$100$, $q_0=0.15$–0.20, $k=3$–4. Residual mode helps but is optional if the instrument trends cleanly. $s=0.3$–0.6.
* Swing / HTF (4H–D): $N=80$–$150$, $q_0=0.10$–0.18, $k=3$–5. Consider `SMA` baseline for smoother residuals and moderate adaptation $s=0.2$–0.4.
Baseline choice.
Use EMA for responsiveness (fast trend shifts) and SMA for stability (smoother residuals). Turning residual mode on is advantageous when price exhibits persistent drift; turning it off is useful when you explicitly want absolute bands.
How to time entries.
Prefer bar-close validation for both band recaptures and latched signals. If you must act intrabar, accept that crosses can “un-cross” before close; compensate with tighter stops or reduced size.
Risk management.
Position size to a fixed fractional risk per trade (e.g., 0.5–1.0% of equity). Define invalidation using structure (swing points) plus ATR. Avoid chasing when distance to the opposite band is small; reward-to-risk degrades rapidly once you are deep inside the distribution.
Combos and filters.
* Pair with a higher-timeframe median slope as a regime filter (trade only in the direction of the HTF median).
* Use band width relative to ATR as a range/trend gauge: unusually narrow bands suggest compression (mean-reversion bias); expanding bands suggest breakout potential (favor latched continuation).
* Volume or session filters (e.g., avoid illiquid hours) can materially improve execution.
Alerts for discretion.
Enable “Cross above Buy Level” / “Cross below Sell Level” for early notices and “Latched BUY/SELL” for conviction entries. Set alerts to “Once per bar close” to avoid noise.
Common pitfalls.
Do not interpret band touches as automatic signals; context matters. A strong trend will often ride the far band (“band walking”) and punish counter-trend fades—use the median slope and latched logic to separate trend from range. Do not oversmooth levels; you will lag breaks. Do not set $q$ too small or too large; extremes reduce statistical meaning and practical distance for stops.
A concise checklist.
1. Is the median flat (range) or sloped (trend)?
2. Is band width expanding or contracting vs ATR?
3. Are we near the tail level aligned with the intended trade?
4. For continuation: did the 3 steps for a latched signal complete?
5. Do stops and targets produce acceptable $R$ (≥1.5–2.0)?
6. Are you trading during liquid hours for the instrument?
Summary. ARQB provides statistically grounded, regime-aware bands and a disciplined, latched confirmation engine. Use the bands as objective context, the median as your equilibrium line, ATR adaptation to stay calibrated across regimes, and the latched logic to time higher-quality discretionary entries.
Disclaimer
No indicator guarantees profits. Adaptive Rolling Quantile Bands is a decision aid; always combine with solid risk management and your own judgment. Backtest, forward test, and size responsibly.
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Enhance your trading precision and confidence 🚀
Best regards
Chervolino
S&R ZonesThis indicator automatically detects swing highs and swing lows on the chart using a 3-bar swing structure. Once a swing point is confirmed, it evaluates the price movement and body size of subsequent candles. If the movement meets a volume-based range condition (2.5× the average body size of the last 5 candles), the indicator creates a zone around that swing.
Swing High Zones: Drawn from the highest price of the swing cluster down to its midpoint.
Swing Low Zones: Drawn from the lowest price of the swing cluster up to its midpoint.
These zones act as dynamic support and resistance levels and remain on the chart until they are either:
Broken (price closes beyond the zone), or
Expired (more than 200 bars old).
Zones are color-coded for clarity:
🔴 Red shaded areas = Swing High resistance zones.
🟢 Green shaded areas = Swing Low support zones.
This makes the indicator useful for identifying high-probability reversal areas, liquidity zones, and supply/demand imbalances that persist until invalidated.
S&R ZonesThis indicator automatically detects swing highs and swing lows on the chart using a 3-bar swing structure. Once a swing point is confirmed, it evaluates the price movement and body size of subsequent candles. If the movement meets a volume-based range condition (2.5× the average body size of the last 5 candles), the indicator creates a zone around that swing.
Swing High Zones: Drawn from the highest price of the swing cluster down to its midpoint.
Swing Low Zones: Drawn from the lowest price of the swing cluster up to its midpoint.
These zones act as dynamic support and resistance levels and remain on the chart until they are either:
Broken (price closes beyond the zone), or
Expired (more than 200 bars old).
Zones are color-coded for clarity:
🔴 Red shaded areas = Swing High resistance zones.
🟢 Green shaded areas = Swing Low support zones.
This makes the indicator useful for identifying high-probability reversal areas, liquidity zones, and supply/demand imbalances that persist until invalidated.
AekFreedom All-in-OneIndicator Description: All-in-One Technical Analysis Suite
This indicator is an "All-in-One" tool designed to combine multiple popular technical analysis instruments into a single script. It allows traders to perform comprehensive chart analysis, reduce the number of indicators needed, and customize everything in one place.
The core concept of this indicator is to display all elements as an overlay on the main price chart, providing a clear view of the relationship between the various tools and the price action.
💡 Key Features
The indicator consists of 6 primary modules, each of which can be independently enabled, disabled, and customized through the Settings menu (⚙️).
1. Automatic Candle Pattern Coloring
What it does: Detects significant reversal candlestick patterns and changes their color for easy identification.
Patterns Detected:
Engulfing (Bullish/Bearish): Identifies engulfing candles with a special condition that the "body must be larger than the wicks" to filter for only strong momentum candles.
Pin Bar (Bullish/Bearish): Highlights candles with long wicks, indicating price rejection.
Best for: Identifying potential reversal or continuation signals at key support and resistance levels.
2. FVG (Fair Value Gap) with Auto-Mitigation
What it does: Detects price imbalances created by strong buying or selling pressure and draws them as price zones.
Special Feature: When the price returns to "fill" or mitigate the gap, the FVG box is automatically deleted from the chart. This keeps the chart clean and displays only the currently relevant zones.
Best for: Identifying key support and resistance zones where the price is likely to return and react.
3. VWAP and Standard Deviation Bands
What it does: Displays the VWAP (Volume Weighted Average Price) line, which is the average price weighted by volume, along with Standard Deviation Bands.
Customization: The VWAP calculation can be anchored to reset every Session (Day), Week, Month, or Year.
Best for: Determining the intraday trend, identifying "fair value" zones, and serving as significant support and resistance levels.
4. Parabolic SAR (Stop and Reverse)
What it does: Plots dots on the chart that trail the price to indicate trend direction.
Application:
Dots below price: Indicate an uptrend.
Dots above price: Indicate a downtrend.
Best for: Confirming trend direction and providing dynamic Trailing Stop points to protect profits.
5. 3 Customizable EMAs (Exponential Moving Averages)
What it does: Displays three separate EMA lines, which are powerful, fundamental tools for trend analysis.
Customization: The Length and Color of each of the three EMAs can be fully customized.
Best for: Confirming trend strength, identifying pullback entry opportunities, and acting as dynamic support and resistance.
6. Bollinger Bands (BB)
What it does: Displays a price channel that measures market volatility, consisting of a middle basis line (SMA) and upper/lower bands.
Application:
Squeezing Bands: Signal a period of low volatility and a potential for a strong breakout.
Price touching outer bands: Can indicate short-term overbought or oversold conditions.
Best for: Gauging volatility and identifying potential mean-reversion opportunities in ranging markets.
⚙️ How to Use and Customize
The core strength of this indicator is its flexibility. Users can go to the indicator's Settings (⚙️) panel, where all functions are organized into clear groups. You can:
Enable or Disable each tool independently.
Customize all parameters, such as EMA lengths, band multipliers, colors, and more.
Combine tools to fit your specific trading style. For example, you might use only FVG + VWAP for intraday trading, or EMAs + Candle Patterns for trend-following strategies.
This indicator is like a "Swiss Army Knife" for traders, combining essential tools into one package to make chart analysis faster and more efficient.
ICT GMMA VegasHigh-Level Summary
This indicator blends:
ICT concepts (Market Structure Shift, Break of Structure, Order Blocks, Liquidity Pools, Fair Value Gaps, Killzones, etc.).
GMMA (Guppy Multiple Moving Averages) to visualize short, medium, and long trend strength.
Vegas Tunnels (EMA channels 144/169 and 576/676, plus optional 288/388 mid-tunnels).
Vegas Touch entry module with candlestick patterns (Pin Bar 40%, Engulfing 60%).
Extra slope EMAs (EMA60 & EMA200 with color change by slope).
It not only shows the structure (OB, Liquidity, FVGs) but also plots entry arrows and alerts when Vegas Touch + GMMA align.
⚙️ Script Components
1. GMMA Visualization
Short-term EMAs (3–15, green).
Medium-term EMAs (30–60, red).
Long-term EMAs (100–250, blue).
Used to measure crowd sentiment: short EMAs = traders, long EMAs = investors.
The script counts how many EMAs the close is above/below:
If close above ≥17 → possible buy trend.
If close below ≥17 → possible sell trend.
Plots arrows for buy/sell flips.
2. Vegas Tunnels
Short-term tunnel → EMA144 & EMA169.
Long-term tunnel → EMA576 & EMA676.
Mid-tunnels → EMA288 & EMA388.
Plotted as orange/fuchsia/magenta bands.
Conditions:
Breakout checks → if close crosses above/below these EMAs compared to prior bar.
3. ICT Toolkit
Market Structure Shift (MSS) & BOS (Break of Structure): labels & dotted lines when price shifts trend.
Liquidity zones (Buy/Sell): boxes drawn around swing highs/lows with clustering.
Fair Value Gaps (FVG/IFVG): automatic box drawing, showing break status.
Order Blocks (OB): bullish/bearish blocks, breaker OB recognition.
Killzones: highlights NY open, London open/close, Asia session with background shading.
Displacement: plots arrows on large impulse candles.
NWOG/NDOG: Weekly/Monday Open Gaps.
Basically, this section gives a full ICT price action map on the chart.
4. Vegas Touch Entry Module (Pin40/Eng60 + EMA12 switch)
This is the custom entry system you added:
Logic:
If EMA12 > EMA169, use Tunnel (144/169) as reference.
If EMA12 ≤ EMA169, use Base (576/676).
Hard lock: no longs if EMA12 < EMA676; no shorts if EMA12 > EMA676.
Touch condition:
Long → price touches lower band (Tunnel/Base).
Short → price touches upper band (Tunnel/Base).
With ATR/Percent tolerance.
Trend filter:
Must also align with long-term Vegas direction (144/169 vs 576/676 cross).
Close must be on the outer side of the band.
Candlestick filter:
Pin Bar (≥40% wick) or
Engulfing (≥60% bigger body than previous).
Cooldown: avoids multiple signals in short succession.
Plots:
Green triangle below = Long entry.
Red triangle above = Short entry.
Alerts: triggers once per bar close with full message.
5. Slope EMAs (Extra)
EMA60 and EMA200 plotted as thick lines.
Color:
Green if sloping upward (current > value 2 bars ago).
Red if sloping downward.
📡 Outputs & Alerts
Arrows for GMMA trend flips.
Arrows for Vegas Touch entries.
Labels for MSS, BOS, FVGs, OBs.
Liquidity/FVG/OB boxes.
Background shading for killzones.
Alerts:
“📡 Entry Alert (Long/Short)” for GMMA.
“VT LONG/SHORT” for Vegas Touch.
📝 Key Idea
This is not just one system, but a multi-layered confluence tool:
ICT structure & liquidity context.
GMMA trend recognition.
Vegas Tunnel directional bias.
Candlestick-based confirmation (Pin/Engulf).
Alert automation for live trading.
👉 It’s essentially a trader’s dashboard: structural map + moving averages + entry signals all in one.
Wave Trend Identifier//@version=6
indicator("Wave Trend Identifier", overlay=true)
smoothingPeriod = 1
completeSymbol = syminfo.tickerid
isNSE = str.contains(completeSymbol, "NSE:")
isBSE = str.contains(completeSymbol, "BSE:")
// unprefixedSymbol = str.replace(completeSymbol, "BSE:", "")
unprefixedSymbol = str.replace(str.replace(completeSymbol, "NSE:", ""), "BSE:", "")
terminalCharacter = ""
int characterPosition = na
for i = 0 to str.length(unprefixedSymbol) - 1
position = str.length(unprefixedSymbol) - 1 - i
char = str.substring(unprefixedSymbol, position, position + 1)
if char == "C" or char == "P"
terminalCharacter := char
characterPosition := position
break
isOptionCall = terminalCharacter == "C"
symbolPrefix = str.substring(unprefixedSymbol, 0, characterPosition)
symbolSuffix = str.substring(unprefixedSymbol, characterPosition + 1)
contraryCharacter = isOptionCall ? "P" : "C"
contrarySymbolBase = symbolPrefix + contraryCharacter + symbolSuffix
contraryCompleteSymbol = isNSE ? "NSE:" + contrarySymbolBase : isBSE ? "BSE:" + contrarySymbolBase : na
// contraryCompleteSymbol = "BSE:" + contrarySymbolBase
primaryClose = request.security(completeSymbol, timeframe.period, close)
contraryClose = request.security(contraryCompleteSymbol, timeframe.period, close)
mergedClose = (primaryClose + contraryClose) / 2
movingAverage = ta.sma(mergedClose, smoothingPeriod)
plot(movingAverage, title="Main Trend", color=color.new(color.black, 0), linewidth=2)
atTheMoney = int(str.tonumber(symbolSuffix))
higherStrike = atTheMoney + (isNSE ? 100 : 200)
lowerStrike = atTheMoney - (isNSE ? 100 : 200)
higherStrikeString = str.tostring(higherStrike)
lowerStrikeString = str.tostring(lowerStrike)
higherPut = symbolPrefix + "P" + higherStrikeString
higherCall = symbolPrefix + "C" + higherStrikeString
lowerPut = symbolPrefix + "P" + lowerStrikeString
lowerCall = symbolPrefix + "C" + lowerStrikeString
higherPutClose = request.security(higherPut, timeframe.period, close)
higherCallClose = request.security(higherCall, timeframe.period, close)
lowerPutClose = request.security(lowerPut, timeframe.period, close)
lowerCallClose = request.security(lowerCall, timeframe.period, close)
avgInTheMoney = ( lowerCallClose + higherPutClose ) / 2
avgOutOfTheMoney = ( higherCallClose + lowerPutClose ) / 2
maInTheMoney = ta.sma(avgInTheMoney, smoothingPeriod)
plot(maInTheMoney, title="In-the-Money Average", color=color.new(color.blue, 0), linewidth=2)
maOutOfTheMoney = ta.sma(avgOutOfTheMoney, smoothingPeriod)
plot(maOutOfTheMoney, title="Out-of-the-Money Average", color=color.new(color.purple, 0), linewidth=2)
Crypto H4 Multi-TF Reversal & Momentum Robot [AlgoChadLin]The Crypto H4 Multi-TF Reversal & Momentum Robot is a sophisticated, multi-faceted trading system designed for the H4 timeframe. This robot uniquely combines multi-timeframe analysis with candlestick patterns and volatility indicators to identify and capitalize on major market reversals and momentum shifts. Its core strength lies in its ability to pinpoint significant turning points while ensuring trades are only entered in the direction of confirmed movement.
Strategy Logic
Multi-Timeframe Entry Logic : The strategy's primary entry signals are generated by identifying when the current price hits the previous month's high or low. This provides a robust, higher-timeframe confirmation of major support and resistance levels, filtering out noise from the H4 chart.
Momentum-Based Entry : To avoid false reversals, the robot executes trades with a stop-order entry mechanism. The long entry is placed above the Bollinger Bands upper band, while the short entry is placed below the lower band. This ensures trades are only triggered when price action confirms the reversal with a burst of momentum.
Dynamic Risk Management : Positions are managed with both a dynamic stop-loss and a fixed take-profit. A TEMA (Triple Exponential Moving Average) acts as a dynamic stop-loss, trailing the price to protect against sudden reversals.
Pattern-Based Exits : The strategy incorporates classic candlestick patterns like the Bullish Piercing and Dark Cloud Cover for early, signal-based exits. This helps to lock in profits or mitigate losses when a reversal of the current trend is detected. A time-based stop also prevents trades from stagnating for too long.
Parameters
Bollinger Bands Period: Defines the lookback period for the Bollinger Bands, which helps to define the stop-order entry price.
TEMA Period: Sets the period for the Triple Exponential Moving Average, which acts as the dynamic stop-loss.
Profit Target: A fixed value in points that determines the take-profit level.
Entry Price Multiplier: Adjusts the distance of the stop-order from the Bollinger Bands.
Exit After Bars: Specifies the maximum duration a trade can be open before being automatically closed.
Setup
Timeframe: 4-Hour (H4)
Asset: While optimized for Bitcoin, this strategy's logic is applicable to other volatile cryptocurrencies like ETH and BNB . We encourage you to backtest it on these assets to find the best settings for your trading.
Bull Market Support Bands (20W SMA & 21W EMA)This indicator plots the 20-week Simple Moving Average (SMA) and the 21-week Exponential Moving Average (EMA), together forming the Bull Market Support Bands (BMSB).
Fully compatible with any chart; values are calculated using the weekly timeframe, even if applied on daily charts.
Adjustable band transparency in settings.
Includes optional alerts when EMA crosses above/below SMA.
MULTI-STRATEGY SYSTEMThis trading system combines three different strategies to help you trade better.
The first strategy follows trends using a 50-period EMA and confirms signals with volume spikes and RSI momentum.
The second strategy catches trends early by watching for EMA 9 and 21 crossovers to get in at the beginning of moves.
The third strategy uses multiple technical indicators like RSI, MACD, and EMAs to find precise entry points.
Each strategy shows triangle signals on your chart, green for long trades and red for short trades. The system also displays colored zones between the moving averages to visualize market conditions.
You can use just one strategy or combine all three for more trading opportunities. This works on any timeframe whether you're day trading, swing trading, or position trading.
Bollinger Bandit + TP EscalonadoDescription:
The Bollinger Bandit is a clean, visual mean reversion strategy designed to help traders identify potential reversal opportunities using Bollinger Bands. This strategy offers two distinct exit methods, giving you the flexibility to choose between classic band-based exits or precise fixed take-profit/stop-loss levels.
How It Works (Simple Explanation):
Basic Concept:
Prices often tend to return to their average after moving too far away. Bollinger Bands help identify these extreme moments.
Entry Signals:
BUY (Green Triangle): When price crosses above the lower Bollinger Band
SELL (Red Triangle): When price crosses below the upper Bollinger Band
Exit Options (CHOOSE ONE ONLY):
Option 1: Band & Mean Exits (Traditional)
Exit when price touches the opposite band
Optional exit at the middle moving average
Option 2: Fixed SL/TP Exits (Precise Risk Management)
Stop Loss: Fixed points from entry
Take Profit 1: First profit target (closes 50% of position)
Take Profit 2: Second profit target (closes remaining 50%)
Key Features:
Clear Visual Signals - Easy-to-see triangles for entries
Color-Coded Levels - Instant visual understanding
Fully Customizable - Adjust everything to your preference
Two Exit Strategies - Choose what works for your style
Risk Management - Fixed SL/TP with proper risk-reward ratios
Input Settings:
Bollinger Bands Configuration:
Period (20): Length of the moving average
Multiplier (1.0): Band width adjustment
Exit Strategy Selection:
Use Custom SL/TP - Switch between exit methods
Close on Moving Average - Enable/disable mean exits
Risk Management (SL/TP Mode):
SL Points (5): Stop Loss distance in points
TP1 Points (3): First Take Profit target
TP2 Points (5): Second Take Profit target
Important Notes:
CHOOSE ONLY ONE EXIT METHOD:
You can use EITHER Band/Mean exits OR Fixed SL/TP exits
Never enable both simultaneously
Ideal Market Conditions:
Works best in ranging markets
May give false signals in strong trends
Test different timeframes (1H-4H recommended)
How to Use:
Add the strategy to your chart
Choose your preferred exit method
Adjust settings to match your risk tolerance
Observe the visual signals on your chart
Practice with historical data first
Risk Disclaimer:
Trading involves significant risk of loss. This is not financial advice. Past performance is not indicative of future results. Test thoroughly before live trading. Only risk capital you can afford to lose.
This strategy is for educational purposes only. Always understand how any strategy works before using real capital.
Recommended Settings for Beginners:
Timeframe: 5M
SL: 5 points, TP1: 3 points, TP2: 5 points
Start with small position sizes
Quarterly-Inspired EMA Swing Strategy🚀 Quarterly EMA Strategy: Simplified
This strategy uses quarterly trends and pullbacks to EMAs (Exponential Moving Averages) to buy low and sell high in strong uptrends (longs) or short weak stocks in strong downtrends.
⸻
🔧 Core Setup
• Timeframe: Quarterly (1 candle = 3 months or ~65 trading days).
• Stocks: Liquid NSE F&O stocks (e.g., Reliance, Bajaj Finance, Tata Motors, etc.).
• Indicators Used:
• 10-quarter EMA → Shorter-term trend.
• 21-quarter EMA → Long-term trend.
• 13-week EMA → Weekly confirmation.
• ATR → For stop-loss.
• VIX → Volatility control.
• Relative Strength vs Nifty → Filter strong/weak stocks.
⸻
🟢 LONG SETUP (Buy on Pullback in Uptrend)
✅ Conditions:
1. Quarterly Trend is Bullish
Price > 10Q EMA > 21Q EMA
2. Pullback Happens
Price closes within 3% of 10Q or 21Q EMA, or touches it and bounces.
• E.g., Stock close = 8200, 10Q EMA = 8000 → Pullback = Valid (2.5% gap)
3. Previous Trend is Strong
• Last 1-2 quarters were making higher highs OR closing well above 10Q EMA
4. Candle Shows Rejection
• Lower wick (buying pressure from EMA)
• Small body (<5% total candle range)
5. Market Support Filters
• Nifty > its 4-quarter EMA (sloping upward)
• India VIX < 20 (low panic)
• Stock’s last 2 quarters’ return > 1.1× Nifty’s return
6. Weekly Confirmation
• Price > 13-week EMA
• 13W EMA is rising
• Bullish pattern in last 2 candles
• Volume ≥ 75% of 20-week average
⸻
📈 Example (Bajaj Finance):
• Close: 8200,
• 10Q EMA: 8000 (bullish),
• 21Q EMA: 7800
• Weekly price > 13W EMA → Confirmation ✅
⸻
🎯 Trade Plan (Long):
• Entry: 8200 (Quarterly) or near 13W EMA (Weekly)
• Stop-Loss: 2× ATR below 21Q EMA or candle low
• Target: 2:1 reward
• Exit 1: Book 50% at target
• Exit 2: Trail 21Q EMA
• Optional Hedge: Buy Nifty PUT if VIX > 15
⸻
🔴 SHORT SETUP (Sell on Pullback in Downtrend)
✅ Conditions:
1. Quarterly Trend is Bearish
Price < 10Q EMA < 21Q EMA
2. Pullback to EMA
Price closes within 3% of 10Q or 21Q EMA, or touches and gets rejected
3. Prior Trend is Down
Last 1-2 quarters had lower lows or closing >5% below 10Q EMA
4. Bearish Candle Setup
• Upper wick (rejection from EMA)
• Small body
5. Market Support Filters
• Nifty < its 4-quarter EMA (sloping down)
• India VIX < 20
• Stock’s 2-quarter return < 0.9× Nifty’s return
6. Weekly Confirmation
• Price < 13-week EMA
• 13W EMA is falling
• Bearish candles (engulfing, lower highs)
• Volume ≥ 75% of 20-week average
⸻
📉 Example (Vodafone Idea):
• Close: ₹8
• 10Q EMA: ₹8.2 → Close is 2.5% below
• Weekly close < 13W EMA
• Bearish candle → Confirmation ✅
⸻
🔻 Trade Plan (Short):
• Entry: 8
• Stop-Loss: 2× ATR above 21Q EMA or candle high
• Target: 2:1 reward
• Exit 1: Book 50% at target
• Exit 2: Trail 21Q EMA
• Optional Hedge: Buy Nifty CALL if VIX > 15
⸻
📊 Position Sizing (Same for Long & Short):
• Risk per trade: 0.5–1% of total capital
• Example:
• Capital = ₹10 lakh
• Risk = ₹10,000
• Stop = 800 points → Buy 12 shares
⸻
✅ Exit Rules Summary
CM Indicator About Indicator:-
1) This is best Indicator for trend identification.
2) This is based on 42 EMA with Upper Band and Lower bands for trend identification.
3) This should be used for Line Bar chart only.
4) Line bar chart should be used at 1 hour for 15 line breaks.
How to Use:-
1) To go with trend is best use of this indicator.
2) This is for stocks and options not for index. Indicator used for Stocks at one hour and options for 10-15 minutes line break.
3) There will be 5% profitability defined for each entry, 3 entries with profit are best posible in same continuous trend 4 and 5th entry is in riskier zone in continuous trend.
4) Loss will only happen if there is trend reversal.
5) Loss could only be one trade of profit out of three profitable trades.
6) Back tested on 200 stocks and 100 options.
BTCUSD Daily Nexus Protocol Robot [AlgoChadLin]The BTCUSD Daily Nexus Protocol Robot is a sophisticated, multi-faceted trading system designed for the Bitcoin Daily (D1) timeframe . It operates by integrating a diverse set of technical indicators to form a robust, rule-based trading protocol. This strategy focuses on identifying high-conviction trade setups and managing them with precision.
Strategy Logic
Entry Confirmation: The strategy uses a powerful combination of multiple indicators. Entry signals are confirmed when the closing price moves relative to the VWAP, indicating a shift in momentum.
Targeted Entries: To pinpoint optimal entry points, the system utilizes Keltner Channels and Average True Range (ATR). A long entry is placed as a limit order above the upper Keltner Channel, while a short entry is set below the lower channel.
Dynamic Exits: Risk and reward are managed through a dual-layered exit approach. The strategy uses a dynamic SuperTrend value and ATR to set a trailing stop-loss, protecting capital and locking in profits. Additionally, a time-based exit and an Ichimoku signal provide alternative exit conditions to ensure positions are closed under specific market circumstances.
Parameters
VWAP Period: Defines the lookback period for the VWAP indicator.
Keltner Channel Period: Sets the period for the Keltner Channel, which helps define entry levels.
Entry ATR Multiplier: Adjusts the distance of the limit order from the Keltner Channel.
Stop-Loss ATR Period & Multiplier: Configures the dynamic stop-loss based on the SuperTrend and ATR.
Exit After Bars: Specifies the maximum duration a trade can be open.
Pending
Order Valid Bars: Determines how long a pending order remains active.
Setup
Timeframe: Daily (D1)
Asset: BTCUSD (Not BTCUSDT. If you want to trade BTCUSDT you have to modify the parameters.)
TNP/BB Trend IndicatorThis indicator identifies trend shifts on the 1H timeframe by combining trigger candle patterns with daily support/resistance zones. It helps traders align lower-timeframe entries with higher-timeframe context.
🔹 Core Logic
Daily Zones
Uses the daily chart to mark bullish zones (support) and bearish zones (resistance).
A valid trend signal only occurs when price action aligns with these zones.
Trigger Candles (1H)
TNP (Triple Negative/Positive Price): A structured 3-bar pattern indicating strong directional intent.
BB (Big Body Candle): A wide-range candle with significant body size compared to recent volatility, signaling momentum.
Trend Confirmation
A Bullish Trend is signaled when a bullish trigger forms inside a daily bullish zone.
A Bearish Trend is signaled when a bearish trigger forms inside a daily bearish zone.
Signals are plotted with arrows on the chart, and the current trend state (Bullish / Bearish / Neutral) is displayed live.
Trading Advice By RajTrading Advice Strategy
This strategy is based on a simple moving average crossover system using the 50 EMA and the 200 EMA.
Buy Signal (Long): When the 50 EMA crosses above the 200 EMA, a bullish trend is detected and a BUY signal is generated.
Sell Signal (Short): When the 200 EMA crosses above the 50 EMA, a bearish trend is detected and a SELL signal is generated.
EMA lines are hidden on the chart for a clean look. Only BUY and SELL signals are shown as labels.
Suitable for trend-following traders who want clear entry signals without noise.
Can be combined with risk management tools like Stop Loss & Take Profit for better results. youtube.com BINANCE:BTCUSDT
christophrobert MMA'sThe market moves in waves of momentum and trends, often leaving traders guessing where the true peaks and bottoms lie. The Multiple Moving Average Indicator is designed to cut through that noise. By layering multiple moving averages into a ribbon indicator, this tool makes it easy to spot shifts in momentum, highlight potential market tops and bottoms, and visualize the strength of a trend at a glance.
Whether you’re looking for the best times to buy, sell, or simply confirm the strength of a move, this indicator provides a clear framework to guide your decisions.
EMA Range OscillatorEMA Range Oscillator (ERO) - User Guide
Overview
The EMA Range Oscillator (ERO) is a technical indicator that measures the distance between two Exponential Moving Averages (EMAs) and the distance between price and EMA. It normalizes these distances into a 0-100 range, helping traders identify trend strength, market momentum, and potential reversal points.
Components
Main Line
Green Line: EMA20 > EMA50 (Uptrend)
Red Line: EMA20 < EMA50 (Downtrend)
Histogram
White Histogram: Price distance from EMA20
Key Levels
Upper Level (80): High divergence zone
Middle Level (50): Neutral zone
Lower Level (20): Low divergence zone
Parameters
ParameterDefaultDescriptionFast EMA20Short-term EMA periodSlow EMA50Long-term EMA periodNormalization Period100Lookback period for scalingUpper80Upper threshold levelLower20Lower threshold level
How to Read the Indicator
High Values (Above 80)
Strong trend in progress
EMAs are widely separated
High momentum
Potential overbought/oversold conditions
Watch for possible trend exhaustion
Low Values (Below 20)
Consolidation phase
EMAs are close together
Low volatility
Potential breakout setup
Range-bound market conditions
Middle Zone (20-80)
Normal market conditions
Moderate trend strength
Balanced momentum
Look for directional clues from color changes
Vegas Touch EMA12 切換 EMA-12 Based Switching Rules (No RSI)
For Long trades:
Tunnel Mode → If EMA-12 is between EMA-144 and EMA-169 → use the Tunnel (144/169) lines as the touch reference.
Base Mode → If EMA-12 is below EMA-169 but still above EMA-676 → use the Base (576/676) lines as the touch reference.
No Long → If EMA-12 is below EMA-676, no long trade is allowed.
For Short trades (mirror logic):
Tunnel Mode → If EMA-12 is between EMA-144 and EMA-169 → use the Tunnel (144/169) lines as the touch reference.
Base Mode → If EMA-12 is above EMA-169 but still below EMA-676 → use the Base (576/676) lines as the touch reference.
No Short → If EMA-12 is above EMA-676, no short trade is allowed.
Multi-ZigZag Pack + Pivots + Global Session H/L + LRC .KidevFeatures
4 ZigZag overlays
Independent controls for period, deviation %, backstep.
Custom color, width, and line style (solid/dashed/dotted).
Helps visualize market swings at different sensitivities.
Daily Floor Pivots (Classic)
Automatic PP, R1–R3, S1–S3.
Toggle on/off.
Previous Day High/Low (PDH/PDL)
Quick reference to yesterday’s range extremes.
Global Session Highs/Lows
US, Europe, and Asia sessions (customizable session times).
Toggle sessions independently.
Helps track overlapping session volatility.
Linear Regression Channel (LRC)
Midline + Upper/Lower deviation bands.
Adjustable length & deviation multiplier.
Optional shaded channel.
Toggle each component (mid/upper/lower).
Usage
Use ZigZag overlays to study price structure at multiple depths.
Combine pivots + PDH/PDL with session levels to spot intraday support/resistance.
Watch LRC midline and bands for mean reversion vs. trending conditions.
Ideal for intraday traders who want structure + levels + channels on one chart.