GD Spread FilterAdditional chart for Gold spread, which highlights not relevant periods (clearings and night time)
Indicadores y estrategias
PT Spread FilterAdditional chart for Platinum spread, which highlights not relevant periods (clearings and night time)
CNY Spread FilterAdditional chart for CNY spread, which highlights not relevant periods (clearings and night time)
Time+Another way of looking at time, with each time classification split into 4 parts, where you can assess in what quarter of time price moves, or does not.
ATR Supertrend [QuantAlgo]🟢 Overview
The ATR Supertrend indicator identifies trend direction and reversal points using volatility-adjusted dynamic support and resistance levels. It combines Average True Range (ATR) volatility measurement with adaptive price bands and EMA smoothing to create trailing stop levels that automatically adjust to market conditions, helping traders and investors identify trend changes, maintain positions during trending markets, and exit when momentum shifts across multiple timeframes and asset classes.
🟢 How It Works
The indicator's core methodology lies in its volatility-adaptive band system, where dynamic support and resistance levels are calculated based on market volatility and price movement:
smoothedSource = ta.ema(source, smoothingPeriod)
atr = ta.rma(ta.tr(true), atrLength) * atrMultiplier
The script uses ATR-based bands that expand and contract with market volatility, ensuring the indicator adapts to different market conditions rather than using fixed price distances:
if trend == 1
supertrend := math.max(supertrend, smoothedSource - atr)
else
supertrend := math.min(supertrend, smoothedSource + atr)
First, it applies optional EMA smoothing to the price source to reduce noise and filter out minor price fluctuations that could trigger premature trend changes, allowing traders to focus on genuine momentum shifts.
Then, the ATR calculation measures market volatility using the Average True Range over the specified lookback period, multiplied by the user-defined factor to set the band distance:
atr = ta.rma(ta.tr(true), atrLength) * atrMultiplier
Next, dynamic trend detection occurs through a state-based system where the indicator tracks whether price is in an uptrend or downtrend, automatically adjusting the Supertrend line position:
if trend == 1
if smoothedSource < supertrend
trend := -1
supertrend := smoothedSource + atr
The Supertrend line can act as a trailing stop that follows price during trends but never moves against the trend direction, i.e., it ratchets upward with price in uptrends and ratchets downward with price in downtrends.
Finally, trend reversal signals are generated when price crosses the Supertrend line, indicating a shift in market momentum:
bullSignal = trend == 1 and trend == -1
bearSignal = trend == -1 and trend == 1
This creates a volatility-adaptive trend-following system that combines dynamic support/resistance levels with momentum confirmation, providing traders with clear directional signals and automatic stop-loss levels that adjust to changing market conditions.
🟢 Signal Interpretation
▶ Bullish Trend (Green): Price trading above Supertrend line with indicator showing bullish color, indicating established upward momentum = Long/Buy opportunities
▶ Bearish Trend (Red): Price trading below Supertrend line with indicator showing bearish color, indicating established downward momentum = Short/Sell opportunities
▶ Supertrend Line as Dynamic Support: In uptrends, the Supertrend line can act as trailing support level that rises with price, never declining = Use as potential stop-loss reference for long positions = Price holding above indicates trend strength
▶ Supertrend Line as Dynamic Resistance: In downtrends, the Supertrend line can act as trailing resistance level that falls with price, never rising = Use as potential stop-loss reference for short positions = Price holding below indicates trend weakness
🟢 Features
▶ Preconfigured Presets: Three optimized parameter sets for different trading approaches. "Default" provides balanced trend detection for swing trading on daily/4-hour charts with moderate sensitivity. "Fast Response" delivers quick trend change detection for intraday trading on 5-minute to 1-hour charts, capturing moves early with increased whipsaw potential. "Smooth Trend" focuses on strong sustained trends for position trading on daily/weekly timeframes, filtering noise to identify only major trend shifts.
▶ Built-in Alerts: Three alert conditions enable comprehensive automated monitoring of trend changes and momentum shifts. "Bullish Trend" triggers when price crosses above the Supertrend line and the trend state changes from bearish to bullish, signaling potential long entry opportunities. "Bearish Trend" activates when price crosses below the Supertrend line and the trend state changes from bullish to bearish, signaling potential short entry or long exit points. "Any Trend Change" provides a combined alert for any trend reversal regardless of direction, allowing traders to be notified of all momentum shifts without setting up separate alerts. These notifications enable traders to capitalize on trend changes and protect positions without continuous chart monitoring.
▶ Color Customization: Five visual themes (Classic, Aqua, Cosmic, Ember, Neon, plus Custom) accommodate different chart backgrounds and visual preferences, ensuring optimal contrast for identifying bullish versus bearish trends across various trading environments. The adjustable cloud fill transparency control (0-100%) allows fine-tuning of the gradient area prominence between the Supertrend line and price, with higher opacity values creating subtle background context while lower values produce bold trend zone emphasis. Optional bar coloring with adjustable transparency (0-100%) extends the trend color directly to the price bars themselves, providing immediate visual reinforcement of current trend direction without requiring reference to the Supertrend line, with transparency controls allowing users to maintain visibility of candlestick patterns while still showing trend context.
Double BB Touch Alert캔들이 기본 볼린저밴드(20,2,종가)와 사용자밴드(4,4,시가)를 동시에 닿았을 때 알람 발생시키는 스크립트
"A script that triggers an alert when the candle simultaneously touches both the default Bollinger Bands (20, 2, close) and a custom band (4, 4, open)."
AI BUY SELL BOT Indicator(KEWME)This strategy is primarily a Trend Following and Scalping strategy. It relies on the crossover of two Exponential Moving Averages (EMA) to identify short-term momentum shifts. The "AI" or "KEWME" part usually refers to the filtering logic added to standard EMAs to reduce false signals during choppy (sideways) markets.
1. Core Components
Fast EMA (Period 9): This tracks the most recent price data very closely. It reacts quickly to price changes.
Slow EMA (Period 15): This acts as the baseline or immediate support/resistance level. It reacts slower than the 9 EMA.
2. Buy Signal Logic (Long Entry)
A Buy signal is generated when the short-term momentum shifts upwards.
Crossover Condition: The EMA 9 (Fast) must cross ABOVE the EMA 15 (Slow).
Candle Confirmation: The candle causing the crossover should ideally close green (bullish) and above both EMA lines.
AI/Filter Logic:
Slope Check: The "AI" logic checks if the slope of the EMA 15 is pointing up. If the lines are flat (horizontal), the signal is often ignored to avoid sideways markets.
Volume: There should be higher than average volume during the crossover to confirm the strength of the move.
Trader's Action: Enter a Buy position immediately after the candle closes.
3. Sell Signal Logic (Short Entry)
A Sell signal is generated when the short-term momentum shifts downwards.
Crossunder Condition: The EMA 9 (Fast) must cross BELOW the EMA 15 (Slow).
Candle Confirmation: The candle causing the crossover should ideally close red (bearish) and below both EMA lines.
AI/Filter Logic:
Slope Check: The "AI" logic checks if the slope of the EMA 15 is pointing down.
Volume: Selling pressure (volume) should be visible.
Trader's Action: Enter a Sell position immediately after the candle closes.
4. The "AI" filtering (Why it is different from basic EMA)
Standard EMA crossovers often fail in "Choppy Markets" (when price moves up and down within a small range), causing losses. The KEWME/AI version usually adds these extra rules:
Range Filter: If the distance between EMA 9 and EMA 15 is very small (the lines are hugging each other), the AI suppresses the signal. It waits for the lines to "fan out" or separate.
Trend Alignment: It might check a higher timeframe (like 200 EMA). If the price is above the 200 EMA, it might only show Buy signals and hide Sell signals (Trend Filtering).
5. Exit Strategy (Stop Loss & Target)
Stop Loss (SL):
For Buy: Just below the recent Swing Low or below the EMA 15.
For Sell: Just above the recent Swing High or above the EMA 15.
Take Profit (TP): usually taken when the EMAs cross back in the opposite direction, or at a 1:1.5 Risk-Reward ratio.
3 minutes ago
Release Notes
This strategy is primarily a Trend Following and Scalping strategy. It relies on the crossover of two Exponential Moving Averages (EMA) to identify short-term momentum shifts. The "AI" or "KEWME" part usually refers to the filtering logic added to standard EMAs to reduce false signals during choppy (sideways) markets.
1. Core Components
Fast EMA (Period 9): This tracks the most recent price data very closely. It reacts quickly to price changes.
Slow EMA (Period 15): This acts as the baseline or immediate support/resistance level. It reacts slower than the 9 EMA.
2. Buy Signal Logic (Long Entry)
A Buy signal is generated when the short-term momentum shifts upwards.
Crossover Condition: The EMA 9 (Fast) must cross ABOVE the EMA 15 (Slow).
Candle Confirmation: The candle causing the crossover should ideally close green (bullish) and above both EMA lines.
AI/Filter Logic:
Slope Check: The "AI" logic checks if the slope of the EMA 15 is pointing up. If the lines are flat (horizontal), the signal is often ignored to avoid sideways markets.
Volume: There should be higher than average volume during the crossover to confirm the strength of the move.
Trader's Action: Enter a Buy position immediately after the candle closes.
3. Sell Signal Logic (Short Entry)
A Sell signal is generated when the short-term momentum shifts downwards.
Crossunder Condition: The EMA 9 (Fast) must cross BELOW the EMA 15 (Slow).
Candle Confirmation: The candle causing the crossover should ideally close red (bearish) and below both EMA lines.
AI/Filter Logic:
Slope Check: The "AI" logic checks if the slope of the EMA 15 is pointing down.
Volume: Selling pressure (volume) should be visible.
Trader's Action: Enter a Sell position immediately after the candle closes.
4. The "AI" filtering (Why it is different from basic EMA)
Standard EMA crossovers often fail in "Choppy Markets" (when price moves up and down within a small range), causing losses. The KEWME/AI version usually adds these extra rules:
Range Filter: If the distance between EMA 9 and EMA 15 is very small (the lines are hugging each other), the AI suppresses the signal. It waits for the lines to "fan out" or separate.
Trend Alignment: It might check a higher timeframe (like 200 EMA). If the price is above the 200 EMA, it might only show Buy signals and hide Sell signals (Trend Filtering).
5. Exit Strategy (Stop Loss & Target)
Stop Loss (SL):
For Buy: Just below the recent Swing Low or below the EMA 15.
For Sell: Just above the recent Swing High or above the EMA 15.
Take Profit (TP): usually taken when the EMAs cross back in the opposite direction, or at a 1:1.5 Risk-Reward ratio.
Buy / Sell Volume LabelsINDICATOR NAME:
Buy/Sell Volume Labels
DESCRIPTION:
Buy/Sell Volume Labels displays real-time buying and selling volume with dynamic color-coded labels that highlight market dominance. The indicator automatically emphasizes the dominant side (buy or sell) with bright green or red backgrounds, while the non-dominant side fades to gray for instant visual clarity.
Key Features:
- Dynamic Color Coding: Dominant volume side displays in bright green (buy) or red (sell), non-dominant side in gray
- Trend Indicator: Optional "Bullish Trend", "Bearish Trend", or "Neutral" label shows current market bias
- Flexible Display Options: Choose to show percentages only, volume only, or both
- Customizable Position: Place labels anywhere on chart (top, center, bottom; left, center, right)
- Adjustable Size: Six size options from Tiny to Huge, including Auto
- Lookback Period: Calculate volume for current bar or sum across multiple bars
- Neutral Threshold: Define when market is considered neutral vs. trending
How It Works:
- The indicator calculates buying and selling volume based on where price closes within each bar's range. When buying volume dominates, the Buy label turns bright green with black text while the Sell label turns gray. When selling dominates, the Sell label turns bright red with white text while the Buy label turns gray. This makes it immediately obvious which side controls the market.
Perfect For:
- Day traders and scalpers on futures (/MNQ, /ES, /NQ)
- Identifying accumulation vs. distribution phases
- Confirming trend strength and reversals
- Quick visual assessment of market pressure
- All timeframes from tick charts to daily
Settings:
- Header location (9 positions)
- Display mode (Volume, Percent- age, or Both)
- Table size (Tiny to Huge + Auto)
- Lookback period (bars)
- Trend label toggle
- Neutral threshold percentage
Created by NPR21 for the TradingView community.
Infinity Trader TDSTDS – Trend Direction Structure Strategy
TDS (Trend Direction Structure) is a rule-based trading strategy that focuses on market structure and directional bias to identify high-probability trade setups.
The strategy is designed to trade only in the direction of the confirmed trend, reducing false entries and improving consistency.
🔹 Core Principle
Markets move in trends and structures.
TDS identifies:
Current trend direction
Internal structure continuations
Confirmed trend reversals
Trades are executed only when structure and direction align.
🔹 Trend Classification
Buy Trend – Higher highs and higher lows
Sell Trend – Lower highs and lower lows
🔹 Structure Signals Used
Internal Continuation
ICB (Internal Continuation Buy)
Entry during pullback in a buy trend
ICS (Internal Continuation Sell)
Entry during pullback in a sell trend
Internal Change of Trend
iCBT – Early change to buy trend
iCST – Early change to sell trend
External Change of Trend
CBT – Confirmed buy trend reversal
CST – Confirmed sell trend reversal
🔹 Entry Logic
Trade only after structure confirmation
Entries occur on pullbacks or continuation zones
Avoid ranging and low-momentum markets
🔹 Risk Management
Structure-based Stop Loss
Fixed or dynamic Take Profit
Risk-to-Reward ratio typically 1:2 or higher
🔹 Best Suitable For
Forex (major pairs like EUR/USD)
Intraday & swing trading
Manual trading and AI/robot automation
🔹 Objective
TDS aims to deliver consistent profits, controlled drawdowns, and disciplined execution by following trend direction and market structure.
Post-Exercise Option ValueThis indicator visualizes the post-exercise value of stock options for a single underlying symbol.
It calculates what an options position would be worth after exercising , based on the difference between price and strike, and displays how that value changes over time using close, high, and low prices.
What it shows
Value at Close – post-exercise value using the candle’s closing price
Value at High – post-exercise value using the candle’s high
Value at Low – post-exercise value using the candle’s low
Shaded regions highlight the intrabar range between close↔high and low↔close
Values are floored at $0 when price is below the strike
Calculation logic
The indicator uses the following formula:
Post-exercise value = max((Price − Strike) × Units × Multiplier, 0)
This reflects the net value of shares received if options were exercised at the strike and valued at the current market price.
Inputs
Strike price (exercise price)
Number of units (shares or share-equivalent units)
Multiplier (e.g., 100 for standard US equity option contracts)
Custom value target for alerts
Alerts
Optional alerts are available for:
Price crossing above or below the strike
Post-exercise value crossing above (or below) a user-defined dollar target
Alerts are evaluated on bar close and can be enabled individually via TradingView’s alert dialog.
Notes
Designed for tracking a single ticker
Does not model time value, volatility, or option premiums
Intended for visualization and monitoring purposes only
This tool is useful for understanding how the value of an exercised options position evolves relative to price movement.
Stockbee 9 million EP (Up or Down)Stockbee 9 million EP showing dot under candlestick for easy identification.
Greg's LevelsWell Team Bull, this was more difficult than I thought but here it is. Greg's Levels.
Based on the work of Nosral and the Daily High/Low script
Thanks to Greg for his video that finally made it click. Greg's video is here
www.youtube.com
I'm not the best coder, especially with pinescript so please let me know if I can clean it up or adjust things. Or just do it and share it to the community.
In my script the higher time frames don't trump lower, that is more complex coding, so I added the ability to change the lines or line thickness to take precedence.
I am also not sure how to chose the closest POI (point of interest) until it's mitigated than show the next so all POI's are seen. If you watch the video you'll see the hot box Greg refers to.
Since I was in it this far I added the ability to add a 4th time frame if you want to add the hourly, 30m, 15m, monthly, etc.
Anyway. Let's go Team Bull.
DOD
Blaez
RS Proxy Suite (Sector-Weighted) - by kuokkuokIndicator Description
RS Proxy Suite (Sector-Weighted) is a Pine Script indicator for TradingView, designed for stock traders to calculate a stock's Relative Strength (RS) proxy score. This indicator simulates a market proxy universe by weighting multiple sector ETFs, evaluating a stock's strength relative to a benchmark like the SPX. Inspired by the M.E.T.S. (Multiple Edge Trading Strategy) system, it helps users identify market-leading stocks, potential breakout opportunities, and low-risk entry points.
Key Features and Benefits:
RS Proxy Rating (1–99 Score): Computes the stock's RS score (higher is stronger), aiding in screening super-strong stocks. A score above 80 indicates the stock outperforms most peers, making it a prime buy candidate.
RS Line and Blue Dot Divergence: Displays the RS line trend and marks RS-leading new high divergences. This acts like an "early warning light," signaling potential low-risk entries (e.g., when RS hits a new high but price hasn't caught up yet).
Sector-Weighted Design: Integrates Growth, Cyclical, Defensive, and Policy ETFs to simulate a comprehensive market environment. Weights are adjustable for flexibility across market phases.
Dashboard Display: A concise panel shows RS Rating, RS Trend, and Blue Dot status for quick decision-making.
Application Scenarios: Ideal for technical analysts to screen leaders, spot trend reversals, or confirm breakouts with VCP patterns (Volatility Contraction Patterns). Its strength lies in avoiding single-index bias for more stable RS assessments.
This indicator avoids subjective judgments, relying on quantitative momentum calculations to help traders "go with the flow" and reduce false breakout risks. Shared for community use—feedback welcome for improvements.
User Manual -
This manual guides you on installing and using the RS Proxy Suite (Sector-Weighted) indicator on TradingView. It's suited for daily or weekly charts, applicable to US stocks or markets correlated with SPX. Ensure your TradingView account supports Pine Script v6.
1. Installation Steps
Step 1: Log in to TradingView and open the Chart page.
Step 2: Click the "Indicators" button in the top toolbar, search for "RS Proxy Suite (Sector-Weighted)" (or paste the Pine Script code into the Pine Editor and add it).
Step 3: If installing from the Community Scripts library, click "Add to Chart"; for custom code, save and add to the chart.
Step 4: The indicator will appear below the chart (overlay=false). Confirm no error messages.
2. Parameter Adjustment Guide
The indicator offers multiple input parameters in TradingView's "Settings" panel. Defaults are optimized, but adjust based on market conditions. Here's a grouped breakdown:
Data Source:
Market Index SPX: Default "SP:SPX", changeable to other indices (e.g., "TVC:NDX").
Calculation Price: Default close (closing price), switch to high/low/open for sensitivity tweaks.
RS Momentum Periods (Adjustable):
Short Term (Default 63 days): Short-term momentum; larger values smooth it out.
Medium Term (Default 126 days): Mid-term momentum.
Long Term (Default 252 days): Long-term momentum for capturing major trends.
Momentum Weights:
Short Term Weight: Default 0.4, emphasizes recent performance.
Medium Term Weight: Default 0.2.
Long Term Weight: Default 0.4. Sum doesn't need to be 1; system normalizes automatically.
Sector Weights: Each ETF weight is independently adjustable (step 0.1). Defaults reflect sector importance, e.g., higher for growth ETFs.
XLK Weight (Technology): Default 1.5.
SOXX Weight (Semiconductors): Default 1.3.
XLY Weight (Consumer Discretionary): Default 1.2.
XLC Weight (Communication Services): Default 1.1.
XLG Weight (Large Cap Growth): Default 1.3.
XLI Weight (Industrials): Default 1.0.
XLF Weight (Financials): Default 1.0.
XLB Weight (Materials): Default 0.9.
XLE Weight (Energy): Default 0.9.
XLV Weight (Health Care): Default 0.8.
XLP Weight (Consumer Staples): Default 0.8.
XLU Weight (Utilities): Default 0.7.
XLRE Weight (Real Estate): Default 0.7.
PPA Weight (Aerospace & Defense): Default 0.9.
Adjustment Tips: Boost XLK/SOXX for tech-favorable markets; increase XLV/XLP for defensive phases.
Visualization Settings:
Show RS Line: Displays RS line (black) and 50-day MA (gray).
Show Blue Dot Divergence (Blue Dot): Marks divergence signals.
Show Dashboard: Enables the dashboard.
Dashboard Position: Choose locations like "Bottom Right".
3. Output Interpretation
RS Line: Black line shows stock strength vs. SPX; upward trend means outperforming. Gray line is 50-day MA—breaking above signals strength.
Blue Dot: Blue circle appears for RS leading price new highs (like a "coiled spring"), indicating potential low-risk entries. Confirm with: RS > 50-day MA and volume surge.
Dashboard:
RS Rating: Score 1–99; green (>80) for strong, yellow (50–80) neutral, red (<50) weak.
RS Trend: Green "Strong" or red "Weak".
Blue Dot: Blue "Present" or red "None".
Interpretation Analogy: RS Rating is like a stock's "health score"—above 80 is an "athlete" worth tracking for breakouts; Blue Dot is a "green light," but pair with volume to confirm true breakouts (avoid fakes).
4. Usage Examples
Screening Leaders: Add to AAPL chart—if RS Rating > 85 and Blue Dot appears, check if price nears VCP pivot; this is a low-risk buy setup.
Trend Judgment: Rising RS line with M.E.T.S. Stage 2 (uptrend) confirms trend-following trades.
Weight Tweaks: For defensive markets, raise XLV/XLU weights and recalculate RS Proxy.
5. Common Issues and Warnings
Q: Indicator not showing? A: Verify ETF symbols (e.g., AMEX:XLK) or switch timeframes.
Q: Inaccurate scores? A: Adjust periods/weights and backtest on historical data.
Q: Avoiding false breakouts? A: Combine with volume and support/resistance; Blue Dot is a alert, not a buy signal.
Warnings: Based on historical data; markets are volatile—use with other tools. Results are for reference only, not investment advice. Test in a demo account.
Median Anchor Oscillator [ALPHA]ALPHA – Median Anchor Oscillator
A clean, outlier-resistant z-score oscillator built around a rolling median (not mean) and Median Absolute Deviation (MAD) instead of standard deviation.
Key features:
- Green/red histogram shows deviation strength from the median anchor
- Dashed lines at ± threshold (default 2.5 – adjustable)
- Optional purple fill for extreme zones
- Auto-scales perfectly (no price squish on BTC or high-value assets)
Ideal for mean-reversion traders spotting overextension or "gravity" pullbacks.
SHORT = breaching top dashed line (red)
LONG = breaching bottom dashed line (green)
Use with a MACD or RSI for those divergence signal confirmations.
This is ALPHA – early version, still tuning.
Companion overlay suite (medians, pivot, signals, RSI overlay) coming in future, possible standalone update(s).
Feedback / suggestions very welcome!
Tags: z-score, median, oscillator, mean-reversion, BTC, crypto, deviation
ApexTrend Lite
ApexTrend Lite is a directional trend band indicator designed to show market structure, trend direction, and volatility in a simple visual form.
The indicator plots a single adaptive band that changes position based on trend conditions. In bullish markets, the band appears below price. In bearish markets, the band appears above price. During sideways or low-strength conditions, the band compresses near the trend average.
The band automatically expands when volatility and trend strength increase and contracts when conditions weaken. Color intensity reflects trend strength, helping distinguish strong trends from weak or choppy periods.
The band is anchored to candle extremes, ensuring it hugs price without gaps and accurately represents market structure. ApexTrend Lite does not repaint and works across all asset classes, including equities, indices, and commodities.
This is the Lite version focused on clean visual trend context
orb by codeUltimate Opening Range Break (ORB) Tool
Shows the future NY and ASIA sessions with a countdown timer.
Toggle past sessions, future session markers, midlines, countdown boxes, and all labels for the opening range breakout.
Takes the high, low, midline of the 15 min candle 1 hour into the sessions.
Customize every color element — including fills, highs, lows, and midlines for both NY and Asia sessions.
Built for traders who want a clean, flexible, and powerful ORB workflow.
20MA_Touch_LongCandle//@version=5
indicator("MA20 Touch + Big Bull Candle (Daily)", overlay=true)
// --- Inputs
maLen = input.int(20, "MA Length", minval=1)
avgLen = input.int(20, "Avg Body Lookback", minval=5)
bigMult = input.float(2.0, "Big Candle Multiplier", step=0.1)
touchMode = input.string("Touch (low <= MA)", "MA Touch Mode", options= )
nearPct = input.float(0.3, "Near % (if Near mode)", step=0.1) // 0.3% default
// --- MA
ma20 = ta.sma(close, maLen)
plot(ma20, "MA20", linewidth=2)
// --- Candle metrics
body = math.abs(close - open)
avgBody = ta.sma(body, avgLen)
// --- Conditions
isBull = close > open
isBig = body >= avgBody * bigMult
touchCond = switch touchMode
"Touch (low <= MA)" => low <= ma20 and high >= ma20 // '찍었다' 느낌(통과 포함)
=> math.abs(close - ma20) / ma20 * 100 <= nearPct
signal = isBull and isBig and touchCond
// --- Plot
plotshape(signal, title="Signal", style=shape.labelup, text="MA20 BIG", location=location.belowbar, size=size.tiny)
// --- Alert
alertcondition(signal, title="MA20 Touch + Big Bull", message="MA20 Touch + Big Bull Candle detected on {{ticker}} (Daily)")
MACDHLAdapted from Mohamed3nan. Added 1H MACD logic. Background colors indicate momentum shifts: Red for bearish (Red Histogram peaking) and Green for bullish (Green Histogram bottoming). Buy/Sell signals are triggered by Center Line breakouts or rejections. The Center Line serves as a dynamic Support and Resistance (S/R) for short-term trading.
TGA Real Historialen Based on the Publish script window on your screen, here is a concise description in English that you can use for your indicator:
"This indicator displays the historical balance of the U.S. Treasury General Account (TGA). Data is dynamically loaded from an external CSV file hosted on GitHub to ensure the history is automatically kept up to date."
clirings//@version=5
indicator("Range Marker ", overlay=true)
// Функция для проверки времени на вхождение в диапазон с 23:50 до 10:00 (ночной клиринг)
isNightTime = (hour >= 23 and minute >= 50) or (hour < 9)
// Функция для проверки времени на вхождение в диапазон с 18:50 до 19:05 (вечерний клиринг)
isEveningClearing = (hour == 18 and minute >= 50) or (hour == 19 and minute <= 5)
// Функция для проверки времени на вхождение в диапазона с 14:00 до 14:05 (дневной клиринг)
isDayClearing = (hour == 14 and minute <= 5)
// Фоновый цвет для ночного времени (23:50–09:00)
bgcolor(isNightTime ? color.new(color.blue, 80) : na, title="Night Session")
// Фоновый цвет для вечернего клиринга (18:50–19:05)
bgcolor(isEveningClearing ? color.new(color.red, 80) : na, title="Evening Clearing")
// Фоновый цвет для дневного клиринга (14:00–14:05)
bgcolor(isDayClearing ? color.new(color.orange, 80) : na, title="Day Clearing")






















