VWMA MACD Amanita Buy/Sell Signals VWMA MACD Amanita Buy/Sell Signals – Volume-Weighted Momentum Indicator
A twist on the classic MACD: this indicator uses Volume Weighted Moving Averages (VWMA) instead of EMAs, giving more weight to price moves backed by higher volume.
Features:
VWMA-based MACD line & signal line
Histogram highlights bullish/bearish momentum
Color-coded for easy visualization
Quick Guide:
MACD above Signal → bullish
MACD below Signal → bearish
Rising histogram → strengthening trend
Falling histogram → weakening trend
Perfect for traders who want momentum confirmed by volume.
指標和策略
Dual Stochastic with Trend FilterThe "Dual Stochastic with Trend Filter" is an oscillator indicator designed to provide clearer, trend-aligned trading signals. It uses two distinct stochastic oscillators to identify potential entry points and incorporates an optional EMA-based trend filter to ensure that you are trading in the direction of the broader market momentum.
How It Works and How to Use It
This indicator combines two key technical analysis concepts: momentum (via stochastics) and trend (via moving averages).
Core Components:
Dual Stochastic Oscillators:
Signal Line 1 (Blue): A standard stochastic oscillator.
Signal Line 2 (Red): A second stochastic oscillator, often using a different source (like hlcc4) to provide a smoother, more reliable signal.
A buy signal is generated when the Blue Line (d1) crosses above the Red Line (d2).
A sell signal is generated when the Blue Line (d1) crosses below the Red Line (d2).
Trend Filter (Optional):
This feature uses a fast and a slow Exponential Moving Average (EMA) to determine the overall market trend.
When the fast EMA is above the slow EMA, the background will turn green, indicating an uptrend.
When the fast EMA is below the slow EMA, the background will turn red, indicating a downtrend.
This filter can be toggled on or off in the indicator settings.
How to Use:
With Trend Filter Enabled (Recommended):
Long (Buy) Entry: Look for a green triangle buy signal (▲). This signal only appears when:
The Blue Signal Line crosses above the Red Signal Line.
The market is in a confirmed uptrend (green background).
Short (Sell) Entry: Look for a red triangle sell signal (▼). This signal only appears when:
The Blue Signal Line crosses below the Red Signal Line.
The market is in a confirmed downtrend (red background).
Exit Signal:
A yellow circle (●) appears to suggest closing an open trade. This signal is triggered for a long position if either the stochastics have a bearish cross or the trend flips to a downtrend. Conversely, for a short position, it's triggered by a bullish stochastic cross or a trend flip to an uptrend.
With Trend Filter Disabled:
If you turn off the "Use Trend Filter" option, the indicator will function as a simple dual stochastic crossover system.
A green triangle (▲) will appear every time the Blue Line crosses above the Red Line.
A red triangle (▼) will appear every time the Blue Line crosses below the Red Line.
The background coloring and exit signals based on trend flips will be deactivated. This mode is more sensitive but may produce more false signals in choppy markets.
Key Visuals:
Blue Line: The primary signal line.
Red Line: The secondary, often smoother, signal line.
Green Triangle (▲): Bullish entry signal.
Red Triangle (▼): Bearish entry signal.
Yellow Circle (●): Suggested trade exit/stop.
Green/Red Background: Visual confirmation of the current uptrend or downtrend.
By filtering stochastic signals with the dominant trend, this indicator helps traders avoid common pitfalls like entering short positions during a strong uptrend or buying into a bearish market. This alignment of momentum and trend is key to improving signal quality.
Disclaimer
This indicator is provided for educational and informational purposes only and should not be considered as financial advice or a recommendation to buy or sell any asset. All trading and investment decisions are your own sole responsibility.
Trading financial markets involves a high level of risk, and you may lose more than your initial investment. Past performance is not indicative of future results. The signals generated by this indicator are not guaranteed to be accurate, and you should always use this tool in conjunction with other forms of analysis and sound risk management practices.
Before using this indicator in a live trading environment, it is strongly recommended that you backtest it thoroughly and practice with it on a demo account. The author is not responsible for any financial losses you may incur from using this script.
BTC CME Gap – detector & single signals# BTC CME Gap — Detector & Single Signals (Pine v5)
**What it does**
This indicator finds the **weekend gap** on **CME Bitcoin futures** and turns it into a clean, tradable object:
* Draws a **gap zone** (Friday close ↔ Monday open) as a right-extending box.
* Fires **one-time signals** per gap:
* **ENTER** – first touch of the gap zone by price.
* **FILL** – gap is considered filled when price tags **Friday’s close**.
It works on any BTC chart (spot or futures). The gap itself is calculated from **CME\:BTC1!** daily data.
---
## How it works
1. Pulls **daily** `open`/`close` from `CME:BTC1!` (`request.security`, no lookahead).
2. On **Monday**, compares Monday **open** with previous **Friday close**:
* If different → a **gap** exists.
3. Defines the zone:
* `gapTop = max(MonOpen, FriClose)`
* `gapBot = min(MonOpen, FriClose)`
4. Renders a box + boundary lines, **extending right** until price action resolves it.
5. Signals:
* **ENTER**: the first bar that **enters** the gap zone.
* **FILL**: first bar that **touches Friday close** (gap completion).
6. Each new Monday gap **replaces** the previous box and signals.
---
## Inputs
* **CME symbol** (default `CME:BTC1!`)
* **Gap timeframe** (default `D`)
* **Colors** for the box and edges
---
## Plot & Signals
* **Box** = visual gap zone (transparent fill, outlined).
* **ENTER** = triangle up below bar.
* **FILL** = triangle down above bar.
* Optional label prints **Top / Bottom / Fill** levels.
---
## Notes on behavior
* Uses `barmerge.lookahead_off` and daily aggregation, so the gap definition **does not repaint** once Monday’s daily bar is confirmed.
* Signals are **single-shot** per gap (no clutter).
* Works on any chart timeframe; the gap logic always references **CME daily**.
---
## Practical use
* Track obvious **“magnets”** for mean-reversion, stop-runs, or liquidity grabs.
* Combine with your higher-timeframe bias (e.g., **1D trend filter**) and execution on **4H/1H**.
* Typical outcomes: quick Monday fill, staged fill after partial rejection, or delayed fill during later consolidation.
---
## Customization ideas
* Add `alertcondition(enterSignal, …)` / `alertcondition(fillSignal, …)` for automation.
* Gate trades with trend filters (EMA/SMA, Kernel regression, ADX) or session tools (VWAP/POC).
* Persist multiple historical gap boxes if you want to track **unfilled** gaps.
---
**Credits**: Built for BTC CME weekend gaps; minimal, publication-ready visualization with single-event signals to keep charts clean.
Pasrsifal.RegressionTrendStateSummary
The Parsifal.Regression.Trend.State Indicator analyzes the leading coefficients of linear and quadratic regressions of price (against time). It also considers their first- and second-order changes. These features are aggregated into a Trend-State background, shown as a gradient color. In addition, the indicator generates fast and slow signals that can be used as potential entry- or exit triggers.
This tool is designed for advanced trend-following strategies, leveraging information from multiple trendline features.
Background
Trendlines provide insight into the state of a trend or the “trendiness” of a price process. While moving averages or pivot-based lines can serve as envelopes and breakout levels, they are often too lagging for swing traders, who need tools that adapt more closely to price swings, ideally using trendlines, around which the price process swings continuously.
Regression lines address this by cutting directly through the data, making them a natural anchor for observing how price winds around a central trendline within a chosen lookback period.
Regression Trendlines
• Linear Regression:
o Minimizes distance to all closing values over the lookback period.
o The slope represents the short-term linear trend.
o The change of slope indicates trend acceleration or deceleration.
o Linear regression lags during phases of rapid market shifts.
• Quadratic Regression:
o Fits a second-degree polynomial to minimize deviation from closing prices.
o The convexity term (leading coefficient) reflects curvature:
Positive convexity → accelerating uptrend or fading downtrend.
Negative convexity → accelerating downtrend or fading uptrend.
o The change of convexity detects early shifts in momentum and often reacts faster than slope features.
Features Extracted
The indicator evaluates six features:
• Linear features: slope, first derivative of slope, second derivative of slope.
• Quadratic features: convexity term, first derivative of the convexity term, second derivative of the convexity term.
• Linear features: capture broad, background trend behavior.
• Quadratic features: detect deviations, accelerations, and smaller-scale dynamics.
Quadratic terms generally react first to market changes, while linear terms provide stability and context.
Dynamics of Market Moves as seen by linear and quadratic regressions
• At the start of a rapid move:
The change of convexity reacts first, capturing the shift in dynamics before other features. The convexity term then follows, while linear slope features lag further behind. Because convexity measures deviation from linearity, it reflects accelerating momentum more effectively than slope.
• At the end of a rapid move:
Again, the change of convexity responds first to fading momentum, signaling the transition from above-linear to below-linear dynamics. Even while a strong trend persists, the change of convexity may flip sign early, offering a warning of weakening strength. The convexity term itself adjusts more slowly but may still turn before the price process does. Linear features lag the most, typically only flipping after price has already reversed, thereby smoothing out the rapid, more sensitive reactions of quadratic terms.
________________________________________
Parsifal Regression.Trend.State Method
1. Feature Mapping:
Each feature is mapped to a range between -1 and 1, preserving zero-crossings (critical for sign interpretation).
2. Aggregation:
A heuristic linear combination*) produces a background information value, visualized as a gradient color scale:
o Deep green → strong positive trend.
o Deep red → strong negative trend.
o Yellow → neutral or transitional states.
3. Signals:
o Fast signal (oscillator): ranges from -1 to 1, reflecting short-term trend state.
o Slow signal (smoothed): moving average of the fast signal.
o Their interactions (crossovers, zero-crossings) provide actionable trading triggers.
How to Use
The Trend-State background gradient provides intuitive visual feedback on the aggregated regression features (slope, convexity, and their changes). Because these features reflect not only current trend strength but also their acceleration or deceleration, the color transitions help anticipate evolving market states:
• Solid Green: All features near their highs. Indicates a strong, accelerating uptrend. May also reflect explosive or hyperbolic upside moves (including gaps).
• Fading Solid Green: A recently strong uptrend is losing momentum. Price may shift into a slower uptrend, consolidation, or even a reversal.
• Fading Green → Yellow: Often appears as a dirty yellow or a rapidly mixing pattern of green and red. Signals that the uptrend is weakening toward neutrality or beginning to turn negative.
• Yellow → Deepening Red: Two possible scenarios:
o Coming from a strong uptrend → suggests a sharp fade, though the trend may still technically be up.
o Coming from a weaker uptrend or sideways market → suggests the start of an accelerating downtrend.
• Solid Red: All features near their lows. Indicates a strong, accelerating downtrend. May also reflect crash-type conditions or downside gaps.
• Fading Solid Red: A recently strong downtrend is losing strength. Market may move into a slower decline, consolidation, or early reversal upward.
• Fading Red → Yellow : The downtrend is weakening toward neutral, with potential for a bullish shift.
• Yellow → Increasing Green: Two possible scenarios:
o Coming from a strong downtrend, it reflects a sharp fade of bearish momentum, though the market may still technically be trending down.
o Coming from a weaker downtrend or sideways movement, it suggests the start of an accelerating uptrend.
Note: Market evolution does not always follow this neat “color cycle.” It may jump between states, skip stages, or reverse abruptly depending on market conditions. This makes the background coloring particularly valuable as a contextual map of current and evolving price dynamics.
Signal Crossovers:
Although the fast signal is very similar (but not identical) to the background coloring, it provides a numerical representation indicating a bullish interpretation for rising values and bearish for falling.
o High-confidence entries:
Fast signal rising from < -0.7 and crossing above the slow signal → potential long entry.
Fast signal falling from > +0.7 and crossing below the slow signal → potential short entry.
o Low-confidence entries:
Crossovers near zero may still provide a valid trigger but may be noisy and should be confirmed with other signals.
o Zero-crossings:
Indicate broader state changes, useful for conservative positioning or option strategies. For confirmation of a Fast signal 0-crossing, wait for the Slow signal to cross as well.
________________________________________
*) Note on Aggregation
While the indicator currently uses a heuristic linear combination of features, alternatives such as Principal Component Analysis (PCA) could provide a more formal aggregation. However, while in the absence of matrix algebra, the required eigenvalue decomposition can be approximated, its computational expense does not justify the marginal higher insight in this case. The current heuristic approach offers a practical balance of clarity, speed, and accuracy.
Gold 5m — MACD 694 Strategy (with ADX/Bias + ATR Trailing)This is my sustain gold trade for trading gold 5m TF
Prev Day Close Line + Label — White Text / Royal Blue (v6)Previous Day Close line with clear labeling.
- Gap up vs PDC
- Gap down vs PDC
Helps analyze what yesterday attempted to do helps to confirm whether the attempt was successful.
Inside Candle DivergenceStudy Material: Inside Candle Divergence Indicator (aiTrendview)
1. Introduction
The Inside Candle Divergence Indicator is a custom tool built on TradingView using Pine Script. It is designed to help traders identify potential reversal points or trend continuations using a mix of candlestick analysis, RSI (Relative Strength Index), VWAP (Volume Weighted Average Price), Pivot Points, and Volume analytics. The tool also provides a dashboard table on the chart, summarizing all key values in a single glance for traders and analysts.
This indicator is not just a signal generator but also an educational framework—explaining how different concepts in technical analysis combine to build a systematic approach for market entries and exits.
________________________________________
2. Core Concepts Behind the Tool
A. Inside Candle Pattern
An Inside Candle forms when the current candle’s high is lower than or equal to the previous candle’s high, and the low is higher than or equal to the previous candle’s low.
• This means the entire price action of the current candle is "inside" the range of the previous candle.
• A bullish inside candle occurs when the close is higher than the open.
• A bearish inside candle occurs when the close is lower than the open.
This pattern shows market indecision but also sets up potential breakouts or trend reversals.
________________________________________
B. RSI (Relative Strength Index)
The indicator calculates RSI using the formula from the ta.rsi() function in TradingView. RSI helps measure momentum in the market.
• A low RSI (below 25) signals an oversold zone → possible buy.
• A high RSI (above 75) signals an overbought zone → possible sell.
By combining RSI with the Inside Candle, the indicator ensures that signals are triggered only when momentum and price patterns confirm each other.
________________________________________
C. Buy & Sell Signals
• Buy Signal: Triggered when RSI < Buy Level (default 25) and a bullish inside candle forms.
• Sell Signal: Triggered when RSI > Sell Level (default 75) and a bearish inside candle forms.
When triggered, the chart displays a BUY (green label below candle) or SELL (red label above candle) marker. The indicator also saves the entry price and signal bar for future reference inside the dashboard.
________________________________________
D. VWAP (Volume Weighted Average Price)
VWAP is calculated using the typical price (H+L+C)/3 and weighting it by volume.
• VWAP shows the average trading price weighted by volume, widely used by institutions.
• The tool calculates the distance of price from VWAP in % terms.
• If price is far above VWAP, the market may be overheated (overbought). If far below, it may be undervalued (oversold).
________________________________________
E. Volume Analysis
The tool splits volume into Buy Volume and Sell Volume:
• Buy Volume: If close > open.
• Sell Volume: If close ≤ open.
• Cumulative totals are maintained, and percentages are calculated to show what proportion of total market volume is bullish vs bearish.
• A progress bar style visual (using blocks █) shows the dominance of buyers or sellers.
This allows traders to quickly measure whether buyers or sellers are controlling the market trend.
________________________________________
F. Daily Pivot Points
Pivot Points are calculated using the previous day’s high, low, and close:
• Pivot = (High + Low + Close) / 3
• R1, S1, R2, S2, R3, S3 levels are derived from this pivot.
• These levels act as support and resistance zones.
The script plots Pivot, R1, and S1 lines on the chart for easy reference.
________________________________________
G. Trend Direction
The indicator checks where the price is compared to R1 and S1:
• If price > R1 → Bullish Trend
• If price < S1 → Bearish Trend
• Otherwise → Neutral Trend
The trend direction is displayed in the dashboard with arrows (↑, ↓, →).
________________________________________
H. Price Change Calculation
The tool calculates:
• Price Change = Current Close – Previous Close
• Percentage Change = (Change / Previous Close) × 100
• Displays ▲ (green upward) or ▼ (red downward) with the exact percentage.
This gives traders a quick snapshot of intraday price movement.
________________________________________
I. Dashboard Table
One of the most powerful features is the real-time dashboard table shown on the chart. It contains:
1. Symbol & Price Info (Current ticker, price, change %)
2. RSI Reading (with color coding: green for oversold, red for overbought)
3. VWAP and Distance from VWAP
4. Volume Analysis with Progress Bar (Buy vs Sell %)
5. Pivot Levels (Pivot, R1, S1)
6. Trend Direction (Bullish, Bearish, Neutral)
7. Signal Status (Last Buy/Sell signal with entry price)
This reduces the need for multiple indicators and gives traders a command-center view directly on the chart.
________________________________________
J. Alerts
The tool generates alerts whenever a Buy or Sell condition is met. Traders can set up TradingView alerts to be notified instantly when:
• Buy Signal Alert → RSI oversold + Bullish inside candle
• Sell Signal Alert → RSI overbought + Bearish inside candle
This ensures no opportunity is missed even if you’re not actively monitoring the chart.
________________________________________
K. Background Highlights
The chart background also changes faintly (light green or light red) when a Buy or Sell condition is triggered. This gives traders visual confirmation along with signals and alerts.
________________________________________
3. Practical Use of This Tool
• Scalpers & Intraday Traders can use it for quick momentum-based entries.
• Swing Traders can use the RSI + Inside Candle + Pivot Points to find medium-term reversals.
• Analysts can use the dashboard for real-time summaries in reports.
• Volume Analysis helps understand institutional activity.
Remember: This is not a standalone holy grail. It must be used with proper risk management and confirmation from higher timeframes.
________________________________________
4. Strict Disclaimer (aiTrendview)
⚠️ Disclaimer from aiTrendview:
This indicator is designed for educational and analytical purposes only. It is not financial advice or a guaranteed trading strategy. Markets are inherently risky and unpredictable; past performance of indicators does not ensure future results. Trading involves risk of financial loss, and traders must use proper risk management, stop-loss, and independent judgment.
aiTrendview strictly follows TradingView.com rules and compliance guidelines.
Any misuse of this tool, its code, or analytical features for unauthorized commercial purposes, false promises, or misleading activities is strictly discouraged. The creators of this script and aiTrendview will not be responsible for any losses, damages, or misuse arising from its application. Always trade responsibly and only with money you can afford to lose.
________________________________________
Session Asiatique (1h à 6h - Heure de Paris)//@version=5
indicator("Session Asiatique (1h à 6h - Heure de Paris)", overlay=true)
// Variables pour le rectangle de la session
var box sessionBox = na
var float sessionHigh = na
var float sessionLow = na
// Heure actuelle en UTC
utcHour = hour(time)
// Heure actuelle en heure de Paris
parisHour = hour(time, "Europe/Paris")
// Détection de la session asiatique (1h à 6h heure de Paris)
inSession = parisHour >= 1 and parisHour < 6
startSession = inSession and not inSession
endSession = not inSession and inSession
// Début de la session : création du rectangle et initialisation des bornes
if startSession
sessionLow := low
sessionHigh := high
sessionBox := box.new(left=bar_index, right=bar_index, top=high, bottom=low, border_color=color.rgb(118, 118, 119), bgcolor=color.new(#404140, 85))
// Mise à jour du rectangle pendant la session
if inSession and not na(sessionBox)
sessionHigh := math.max(sessionHigh, high)
sessionLow := math.min(sessionLow, low)
box.set_right(sessionBox, bar_index)
box.set_top(sessionBox, sessionHigh)
box.set_bottom(sessionBox, sessionLow)
// Fin de la session : finalisation du rectangle
if endSession and not na(sessionBox)
box.set_right(sessionBox, bar_index)
Market BreadthMarket breadth is a technical analysis technique that gauges the strength or weakness of moves in a major index.
Supported index ETF: SPY, NDX, DIA, IWM, OEF, MDY, IWB, IWV.
Supported sector index ETF: XLK, XLC, XLY, XLP, XLV, XLU, XLF, XLRE, XLE, XLB, XLI.
Estrategy EURUSD M3 Scalping Estrategia para operar el EURUSD en temp de 3 min, indica sl y tp 6 pips sl y 10 pips tp
A SRCDrawing support and resistance lines based on the price of candles that are multiple times larger than their recent period average
Setup Cripto EMA + Volume//@version=5 indicator("Sinais Multi-Cripto – EMA+Volume (BTC/ETH/BNB/SOL/XRP)", overlay=false)
// Inputs emaFast = input.int(50, "EMA Curta") emaSlow = input.int(200, "EMA Longa") emaPull = input.int(20, "EMA Pullback") volLen = input.int(20, "Média Volume")
symBTC = input.symbol(defval="BINANCE:BTCUSDT", title="BTC") symETH = input.symbol(defval="BINANCE:ETHUSDT", title="ETH") symBNB = input.symbol(defval="BINANCE:BNBUSDT", title="BNB") symSOL = input.symbol(defval="BINANCE:SOLUSDT", title="SOL") symXRP = input.symbol(defval="BINANCE:XRPUSDT", title="XRP")
f_sig(sym) => c = request.security(sym, timeframe.period, close) v = request.security(sym, timeframe.period, volume) e50 = ta.ema(c, emaFast) e200 = ta.ema(c, emaSlow) e20 = ta.ema(c, emaPull) vma = ta.sma(v, volLen) long = (e50 > e200) and (c > e20) and (v > vma) short = (e50 < e200) and (c < e20) and (v > vma)
= f_sig(symBTC) = f_sig(symETH) = f_sig(symBNB) = f_sig(symSOL) = f_sig(symXRP)
// Exibição plotchar(btcL, title="BTC Long", char="▲", location=location.top) plotchar(btcS, title="BTC Short", char="▼", location=location.bottom) plotchar(ethL, title="ETH Long", char="▲", location=location.top) plotchar(ethS, title="ETH Short", char="▼", location=location.bottom) plotchar(bnbL, title="BNB Long", char="▲", location=location.top) plotchar(bnbS, title="BNB Short", char="▼", location=location.bottom) plotchar(solL, title="SOL Long", char="▲", location=location.top) plotchar(solS, title="SOL Short", char="▼", location=location.bottom) plotchar(xrpL, title="XRP Long", char="▲", location=location.top) plotchar(xrpS, title="XRP Short", char="▼", location=location.bottom)
Daily High/Low (15m) + EMA Pre-Market H/L + ORBStraightforward:
I built a swing-trading indicator with ChatGPT that plots 15-minute highs and lows, draws pre-market high/low lines, and adds a 15-minute opening-range breakout feature.
Technical:
Using ChatGPT, I developed a swing-trade indicator that calculates 15-minute highs/lows, overlays pre-market high and low levels, and includes a 15-minute Opening Range Breakout (ORB) module.
Promotional:
I created a ChatGPT-powered swing-trading indicator that maps 15-minute highs/lows, marks pre-market levels, and features a 15-minute Opening Range Breakout for clearer entries.
MACD Bullish Divergence + Multi-TF RSI Buy SignalsNew script to overlap MACD Bullish Divergence and RSI signals to give confluence.
Clean Volume Bars (Green/Red + Above Avg Highlight)📊 Clean Volume Bars (Green/Red + Above Avg Highlight)
This script provides a clearer view of market volume by combining standard green/red volume bars with dynamic highlights for above-average activity.
Features:
✅ Green / Red Volume Bars – standard visualization:
Green when the candle closes higher than it opened
Red when the candle closes lower than it opened
✅ Average Volume Line – a simple moving average (default 20 periods) to track relative volume.
✅ Above Average Highlights – bars that exceed the average volume are emphasized:
White for above-average bullish volume
Black for above-average bearish volume
How to Use:
Look for white volume spikes during up candles → potential strong bullish activity.
Watch for black volume spikes during down candles → potential strong bearish pressure.
Combine with price action, trend, or other indicators for confluence (this is not a standalone trading system).
TIKOLE SVM Sentiment Combo Oscillator MACD"This one has MACD and RSI. Accuracy is very good. Best for 5-minute and 15-minute timeframes."
So basically, you mean:
The script combines MACD-style histogram with RSI logic.
It gives high accuracy signals.
Works best on 5-minute and 15-minute charts (scalping + intraday).
⚡ If you want, I can also add MACD (fast EMA / slow EMA) into the same script along with your RSI sentiment oscillator, so you’ll get a dual-confirmation system (RSI sentiment + MACD crossover + histogram).
Market Breadth (NIFTY50)This market breadth indicator good to indentified short term market sentiment.
X FocusDesigned to help traders reduce distractions by de-emphasizing specific time ranges on the chart. Instead of highlighting high-activity zones, this tool intentionally applies a muted overlay to selected sessions, allowing traders to concentrate on price action that occurs outside those designated ranges.
Core Purpose
The primary goal of this indicator is to combat the “noise” that often arises during certain periods, such as overnight sessions or pre-market trading. By visually softening those areas, traders can focus on the more relevant trading windows WITHOUT losing any time-based context. Unlike traditional tools that remove data entirely, X Focus preserves all candlestick and price information—ensuring that key levels, gaps, or reference values are still visible.
Key Features
Custom Session Filtering
Users can define up to three time ranges depending on preference. This flexibility allows for tailoring the indicator to different market strategies.
De-Emphasis by Design
Instead of masking or deleting data, the indicator overlays a semi-transparent shading box over the chosen sessions. This ensures traders remain aware of the data while maintaining visual focus on the price action outside of the selected time blocks.
Dual Utility – Highlight or Suppress
While built on the principle of minimizing distractions, the same framework can also be used in reverse to highlight specific areas of interest. This versatility makes it suitable for both noise-reduction and spotlighting critical ranges.
Dark Mode / Light Mode
Adjustable color schemes allow seamless integration into any chart setup, whether the user prefers dark or light backgrounds.
Non-Intrusive Visualization
The shading effect is applied without altering price bars, indicators, or other overlays. This ensures compatibility with existing technical tools and strategies.
Use Case
Traders who find themselves reacting too strongly to inconsequential movements during certain times (such as after-hours or low-volume sessions) can benefit from the X Focus indicator. It helps maintain clarity and discipline by visually guiding attention toward the periods that matter most—without erasing or ignoring potentially useful price references.
OHLC Horizontal Compact + Volume + Buy/SellA compact, single-row horizontal table for TradingView displaying Open, High, Low, Close (OHLC), net change, percentage change, volume, and buy/sell pressure percentages. The table is fully color-coded for easy interpretation: green for positive values, red for negative, and yellow for neutral. Table position is fully customizable (top, middle, bottom / left, center, right). Ideal for traders who want a concise, real-time snapshot of price action and market sentiment in a single row.
Features:
OHLC values in one horizontal row
Net change (Δ) and % change with directional arrows
Real-time volume display
Buy/Sell pressure % with dynamic coloring
Fully customizable table placement
Works on all timeframes
AmazingGPT//@version=6
indicator("AmazingGPT", shorttitle="AmazingGPT", overlay=true, max_lines_count=500, max_labels_count=500)
// ─────────────────────────── Inputs
group_ma = "SMMA"
group_avwap = "AVWAP"
group_fibo = "Fibo"
group_toler = "Yakınlık (2/3)"
group_trig = "Trigger & Onay"
group_misc = "Görsel/HUD"
// SMMA
len21 = input.int(21, "SMMA 21", group=group_ma, minval=1)
len50 = input.int(50, "SMMA 50", group=group_ma, minval=1)
len200 = input.int(200, "SMMA 200", group=group_ma, minval=1)
// AVWAP
const int anchorDefault = timestamp("2025-06-13T00:00:00")
anchorTime = input.time(anchorDefault, "AVWAP Anchor (tarih)", group=group_avwap)
bandMode = input.string("ATR", "Band mode", options= , group=group_avwap)
band1K = input.float(1.0, "Band 1 (×Unit)", step=0.1, group=group_avwap)
band2K = input.float(0.0, "Band 2 (×Unit)", step=0.1, group=group_avwap)
// Fibo
useAutoFib = input.bool(false, "Auto Fib (son 252 bar HL)", group=group_fibo)
fibL_in = input.float(0.0, "Swing Low (fiyat)", group=group_fibo, step=0.01)
fibH_in = input.float(0.0, "Swing High (fiyat)", group=group_fibo, step=0.01)
// Yakınlık (2/3) – ayrı eşikler
tolMA = input.float(1.00, "Yakınlık eşiği – SMMA (×ATR)", minval=0.0, step=0.05, group=group_toler)
tolAV = input.float(0.80, "Yakınlık eşiği – AVWAP (×ATR)", minval=0.0, step=0.05, group=group_toler)
tolFibo = input.float(0.60, "Yakınlık eşiği – Fibo (×ATR)", minval=0.0, step=0.05, group=group_toler)
starterTolMA = input.float(1.00, "Starter SMMA eşiği (×ATR)", minval=0.0, step=0.05, group=group_toler)
// Trigger & Onay
useDailyLock = input.bool(true, "Lock core calcs to Daily (1D)", group=group_trig)
triggerSrc = input.string("Auto", "Trigger Source", options= , group=group_trig)
useCH3auto = input.bool(true, "Auto: CH3 fallback ON", group=group_trig)
fallbackBars = input.int(3, "Fallback after N bars", minval=1, group=group_trig)
tamponTL = input.float(0.10, "Tampon (TL)", step=0.01, group=group_trig)
tamponATRf = input.float(0.15, "Tampon (×ATR)", step=0.01, group=group_trig)
capATR = input.float(0.60, "Cap (kovalama) ≤ ×ATR", step=0.05, group=group_trig)
vetoATR = input.float(1.00, "Veto (asla kovala) ≥ ×ATR", step=0.05, group=group_trig)
useRSIbreak = input.bool(false, "RSI≥50 (sadece kırılımda)", group=group_trig)
nearCloseStarter = input.bool(true, "Starter (reclaim gününde) ENABLE", group=group_trig)
// Görsel
showHud = input.bool(true, "HUD göster", group=group_misc)
showBands = input.bool(true, "AVWAP bantlarını göster", group=group_misc)
// ─────────────────────────── Daily sources (lock)
smma21D = request.security(syminfo.tickerid, "D", ta.rma(close, len21))
smma50D = request.security(syminfo.tickerid, "D", ta.rma(close, len50))
smma200D = request.security(syminfo.tickerid, "D", ta.rma(close, len200))
atrD = request.security(syminfo.tickerid, "D", ta.atr(14))
rsiD = request.security(syminfo.tickerid, "D", ta.rsi(close, 14))
v20D = request.security(syminfo.tickerid, "D", ta.sma(volume, 20))
dHighD = request.security(syminfo.tickerid, "D", high)
h3HighD = request.security(syminfo.tickerid, "D", ta.highest(high, 3))
ch3CloseD= request.security(syminfo.tickerid, "D", ta.highest(close, 3))
// ─────────────────────────── Core calcs (lock uygulanmış)
smma21 = useDailyLock ? smma21D : ta.rma(close, len21)
smma50 = useDailyLock ? smma50D : ta.rma(close, len50)
smma200 = useDailyLock ? smma200D : ta.rma(close, len200)
atr = useDailyLock ? atrD : ta.atr(14)
rsi = useDailyLock ? rsiD : ta.rsi(close, 14)
v20 = useDailyLock ? v20D : ta.sma(volume, 20)
// ─────────────────────────── AVWAP (anchor sonrası)
tp = hlc3
isAfter = time >= anchorTime
var float cumV = na
var float cumTPV = na
var float cumTP2V = na
if isAfter
cumV := nz(cumV ) + volume
cumTPV := nz(cumTPV ) + tp * volume
cumTP2V := nz(cumTP2V ) + (tp*tp) * volume
else
cumV := na
cumTPV := na
cumTP2V := na
avwap = isAfter ? (cumTPV / cumV) : na
// Band birimi: ATR veya VWAP-σ
vwVar = isAfter ? math.max(0.0, cumTP2V/cumV - avwap*avwap) : na
vwStd = isAfter ? math.sqrt(vwVar) : na
bandUnit = bandMode == "ATR" ? atr : nz(vwStd, 0)
upper1 = isAfter and showBands ? avwap + band1K*bandUnit : na
lower1 = isAfter and showBands ? avwap - band1K*bandUnit : na
upper2 = isAfter and showBands and band2K>0 ? avwap + band2K*bandUnit : na
lower2 = isAfter and showBands and band2K>0 ? avwap - band2K*bandUnit : na
// ─────────────────────────── Fibo (manuel/auto)
var float swingL = na
var float swingH = na
if useAutoFib
swingL := ta.lowest(low, 252)
swingH := ta.highest(high, 252)
else
swingL := fibL_in
swingH := fibH_in
float L = na(swingL) or na(swingH) ? na : math.min(swingL, swingH)
float H = na(swingL) or na(swingH) ? na : math.max(swingL, swingH)
fib382 = na(L) ? na : H - 0.382 * (H - L)
fib500 = na(L) ? na : H - 0.500 * (H - L)
fib618 = na(L) ? na : H - 0.618 * (H - L)
// ─────────────────────────── 2/3 yakınlık (ayrı eşikler)
d21ATR = math.abs(close - smma21) / atr
dAVATR = na(avwap) ? 10e6 : math.abs(close - avwap) / atr
dFATR = na(fib382) ? 10e6 : math.min(math.abs(close - fib382), math.min(math.abs(close - fib500), math.abs(close - fib618))) / atr
near21 = d21ATR <= tolMA
nearAV = dAVATR <= tolAV
nearFib = dFATR <= tolFibo
countConfluence = (near21?1:0) + (nearAV?1:0) + (nearFib?1:0)
twoOfThree = countConfluence >= 2
// ─────────────────────────── Trigger (Auto → CH3 fallback)
d1High = useDailyLock ? dHighD : high
h3High = useDailyLock ? h3HighD : ta.highest(high, 3)
ch3Close = useDailyLock ? ch3CloseD : ta.highest(close, 3)
stretch = d21ATR
grindCond = close > smma21 and close > avwap and close > smma21 and close > avwap and close > smma21 and close > avwap and stretch <= 0.6
reclaimCond = (close >= smma21) and (close >= avwap) and twoOfThree
tampon = math.max(tamponTL, tamponATRf*atr)
manualHigh =
triggerSrc == "D-1 High" ? d1High :
triggerSrc == "H3 High" ? h3High : na
manualTrig = not na(manualHigh) ? math.ceil((manualHigh + tampon)/syminfo.mintick)*syminfo.mintick :
triggerSrc == "CH3 Close" ? math.ceil((ch3Close + tampon)/syminfo.mintick)*syminfo.mintick : na
baseHighAuto = grindCond ? h3High : d1High
brokeHigh = high > baseHighAuto
barsNoBreak = ta.barssince(brokeHigh)
useCH3 = useCH3auto and reclaimCond and (barsNoBreak >= fallbackBars)
autoTrig = useCH3 ? math.ceil((ch3Close + tampon)/syminfo.mintick)*syminfo.mintick
: math.ceil((baseHighAuto + tampon)/syminfo.mintick)*syminfo.mintick
trigger = triggerSrc == "Auto" ? autoTrig : manualTrig
// Mesafe filtreleri (cap/veto) ve RSI kırılım filtresi
dist = close - trigger
okCap = dist <= capATR*atr
veto = dist >= vetoATR*atr
rsiOK = not useRSIbreak or (rsi >= 50)
// Starter (sadece reclaim gününde, cap'e değil SMMA yakınlığına bakar)
starterToday = nearCloseStarter and reclaimCond and (d21ATR <= starterTolMA) and (volume >= v20*1.0)
// ─────────────────────────── Plots
plot(smma21, "SMMA21", color=color.new(color.white, 0), linewidth=2)
plot(smma50, "SMMA50", color=color.new(color.blue, 0), linewidth=2)
plot(smma200, "SMMA200", color=color.new(color.red, 0), linewidth=2)
plot(avwap, "AVWAP", color=color.new(color.orange, 0), linewidth=2)
pU1 = plot(upper1, "AVWAP Band1+", color=color.new(color.lime, 40))
pL1 = plot(lower1, "AVWAP Band1-", color=color.new(color.lime, 40))
pU2 = plot(upper2, "AVWAP Band2+", color=color.new(color.green, 70))
pL2 = plot(lower2, "AVWAP Band2-", color=color.new(color.green, 70))
trigColor = okCap ? color.teal : (veto ? color.red : color.gray)
plot(trigger, "Trigger", color=color.new(trigColor, 0), style=plot.style_circles, linewidth=2)
// İşaretler
plotshape(starterToday, title="Starter", style=shape.triangleup, location=location.belowbar, color=color.new(color.teal, 0), size=size.tiny, text="Starter")
breakoutNow = (close >= trigger) and okCap and rsiOK
plotshape(breakoutNow, title="Breakout", style=shape.triangledown, location=location.abovebar, color=color.new(color.fuchsia, 0), size=size.tiny, text="BRK")
// ─────────────────────────── Alerts
alertcondition(starterToday, title="Starter_Ready", message="Starter: reclaim + Δ21 ≤ starterTolMA + v≥v20")
alertcondition(breakoutNow, title="Trigger_Breakout", message="Trigger üstü kapanış (cap OK, RSI filtresi OK)")
// ─────────────────────────── HUD
var label hudLbl = na
if barstate.islast and showHud
hudTxt = "2/3:" + (twoOfThree ? "✅" : "❌") +
" Trg:" + str.tostring(trigger, format.mintick) +
" ATR:" + str.tostring(atr, format.mintick) +
" Δ21:" + str.tostring(d21ATR, "#.##") + "≤" + str.tostring(tolMA, "#.##") +
" ΔAV:" + str.tostring(dAVATR, "#.##") + "≤" + str.tostring(tolAV, "#.##") +
" ΔF:" + str.tostring(dFATR, "#.##") + "≤" + str.tostring(tolFibo, "#.##") +
" RSI50:" + (rsiOK ? "✅" : "❌") +
" Cap:" + (okCap ? "≤"+str.tostring(capATR, "#.##")+" OK" : (veto ? "≥"+str.tostring(vetoATR, "#.##")+" VETO" : ">"+str.tostring(capATR, "#.##")+" FAR"))
if not na(hudLbl)
label.delete(hudLbl)
hudLbl := label.new(bar_index, high, hudTxt, style=label.style_label_upper_left, textcolor=color.white, color=color.new(color.black, 60))
Corner Badge: PDC,Open,VWAP & Current + Delta to PDCSimple corner badge highlighting previous day's close, opening price, vwap and current price. Calculates delta to PDC and shades green or red if above or below PDC
We know this is all on the chart, but the data is easily accesible, offers a basic heat map and shows quickly whether opening is gapped up or down vs PDC when scrolling a watchlist.
Other two will just confirm trend or reversal.
An all green box means Price gapped up from PDC, VWAP and Current Price and above PDC.
Possible continuation?
Green, Red Red, reveals gap up followed by reversal or vice versa.
Nothing fancy. It's a start.
Might edit or delete after trying for a while.