new alertable spacemanhope these alerts work. open to fixes
slight modification to Key Levels SpacemanBTC IDWM script
credit: spacemanbtc
Indikator dan strategi
Humontre Signal Channel — Free EditionHumontre Signal Channel is a clean, high-clarity trend and volatility tool designed to help traders identify directional bias, momentum shifts, and breakout conditions with minimal noise.
The Free Edition provides the core engine behind the Humontre system: dynamic EMA bands, adaptive trend coloring, and precise LONG / SHORT signals.
Whether you trade Crypto, Forex, Indices or Stocks , the Signal Channel keeps you aligned with market structure in a simple and intuitive way.
🔍 How It Works
1. Dynamic EMA Channel
A fast-reacting EMA forms the core of the system. The channel boundaries can be calculated using:
ATR × Multiplier (recommended)
Percentage mode (alternative for low-volatility markets)
This creates a flexible volatility envelope that naturally highlights trend strength and momentum expansion.
2. Adaptive Trend Coloring
The EMA automatically shifts colors:
Green → bullish pressure
Red → bearish pressure
Clear, objective trend visualization without interpretation.
3. Long & Short Signals
Signals appear when price closes outside the band:
LONG → Close crosses above the upper band
SHORT → Close crosses below the lower band
Repeated signals in the same direction are filtered for cleaner momentum confirmation.
4. Multi-Market Ready
Works on all markets and timeframes:
Crypto
Forex
Indices
Stocks
Commodities
🆓 Free Edition Includes
Dynamic EMA Channel
ATR or % Band Mode
Adaptive Trend Colors
Clean LONG / SHORT Signals
Basic Alerts
Minimal, unobtrusive chart visuals
Ideal for learning the Humontre system and spotting breakout opportunities.
⭐ Upgrade to the Pro Edition (Invite-Only)
The Humontre Signal Channel — Pro Edition unlocks advanced professional features:
Automatic SL & TP levels
Dynamic Risk-to-Reward box
SL/TP labels & smart line system
Live trade tracking
Full trade history table
UI & theme customization
Alerts for SL/TP hits
Much more coming…
If you’d like access, feel free to contact me.
📌 Disclaimer
This indicator is for educational purposes only and does not constitute financial advice. Always use proper risk management.
TrendShift DetectorReversal detector identifying no-wick candles after trend shifts. Scans for first candle without opening-side wick following bullish/bearish sequences. Visual triangle signals (▼ SHORT / ▲ LONG). Customizable parameters: sequence length, body size, wick tolerance, lookback period.
Forex indicator By petran Elevate your market analysis with this powerful, all-in-one visual toolkit designed for discretionary traders across Forex, indices, and commodities (metals).
Core Features:
Trading Sessions Overlay: Clear visual bands highlighting the Asian, London, and New York trading sessions directly on your chart. Never miss a market open or a session overlap again.
Smart Daily Levels: Automatically plots the most essential reference points from the previous day:
PDH / PDL (Previous Day High/Low) – Key support and resistance.
PWH / PWL (Previous Week High/Low) – Higher timeframe context.
DO (Day Open) – A crucial intraday pivot level.
Motivational Watermark: A unique and customizable text overlay at the top of your screen. Display your favorite trading quote, rule, or reminder to maintain the right mindset during the trading day.
Clean & Customizable: Designed for clarity. Adjust colors, session times, and watermark text to fit your personal trading style and chart aesthetics.
Why Traders Choose This Indicator:
Saves Time: No more manually drawing sessions or calculating yesterday's levels.
Improves Discipline: The visual sessions and watermark help you trade only during your planned times and follow your rules.
Universal Application: Works seamlessly on any liquid market where session activity and daily ranges matter.
Perfect for traders who rely on price action, session-based strategies, and need a clean, informative chart environment.
Global BB Resonance [by TESTEDED]📈 Global BB Resonance Hunter
1. Design Philosophy: Dimensional Reduction
In modern trading, "Information Overload" is the enemy. Traders often clutter their charts with 15+ Bollinger Band lines across 1H, 4H, Daily, and Weekly timeframes, resulting in a "spaghetti chart" that is impossible to read quickly.
The core logic of this indicator is "Dimensional Reduction." Instead of drawing every single line, this script runs a background algorithm to detect "Confluence" (Resonance).
The Thesis: A single Bollinger line (e.g., 1H Upper) is easily broken. However, when multiple dimensions overlap (e.g., 1H Upper + Daily Mid + Weekly Low) at the exact same price level, a "Market Consensus" is formed. These are the critical "Walls" of the market.
The Solution: We sort all data by Price, not Time. If lines cluster together within a specific threshold (e.g., 0.15%), the script draws a single Resonance Box instead of multiple confusing lines.
2. Key Features
🛡️ Multi-Timeframe Monitoring: Simultaneously monitors 1H, 4H, Daily, Weekly, and Monthly Bollinger Bands in the background, regardless of your chart's current timeframe.
⚡ Smart Resonance Detection: Automatically groups overlapping levels into "Resonance Boxes."
⚡ (2-Line Confluence): Watch closely.
⚡⚡ (3-Line Confluence): Strong Support/Resistance.
⚡⚡⚡ (4+ Lines): "Iron Wall" Resonance.
📊 Volatility State Perception: Detects if the bands are Squeezing (accumulating energy) or Expanding (trending).
Style Options: Choose between Icons (🧊/🔥) or Geek Symbols (>.< / <^>).
🧘 Focus Mode (Sniper View): A unique feature that hides all individual lines, leaving only the Resonance Boxes and the Dashboard. This keeps your chart clean and distraction-free.
🔔 Smart Alerts: Get notified immediately when Price touches a Resonance Box or when a Squeeze occurs.
3. Visual Guide
A. The Symbols (State Indicators)
You can switch styles in the settings.
B. The Resonance Boxes
Red Box: Resistance Zone (Above Price).
Green Box: Support Zone (Below Price).
Label: E.g., ⚡⚡ 1H Up + D Mid. This tells you exactly which levels are overlapping.
4. Usage Strategy
The "Reversal" Setup: Look for a Green Resonance Box below price with High Confluence (⚡⚡). Ensure the state is NOT Expanding (<^> or 🔥).
The "Breakout" Setup: Look for the Squeeze Symbol (>.< or 🧊) on the dashboard. If price approaches a Resonance Box while Squeezing, expect a breakout.
The "Sniper" Method: Turn on Focus Mode. Set Alerts. Only look at the chart when price hits a "Wall."
How to use: youtu.be
📈 布林带多维共振捕猎者
1. 设计哲学:降维打击
在现代交易中,“信息过载”是最大的敌人。交易者经常在图表上叠加 1H、4H、日线、周线等 15 条以上的布林带线条,导致图表像“盘丝洞”一样难以阅读。
本指标的核心逻辑是“降维打击”与“数据可视化”。 我们不再画出每一条线,而是在后台运行算法来捕捉**“共振”(Confluence)**。
核心理念:单一周期的布林线(如 1H 上轨)很容易被刺破。但是,当多个维度的力量(如 1H 上轨 + 日线中轨 + 周线下轨)在同一个价格水平重叠时,就形成了**“市场合力”**。这些位置才是市场真正的“铜墙铁壁”。
解决方案:系统按价格而非时间对数据进行排序。如果多条线在特定阈值(如 0.15%)内聚集,脚本会画出一个**“共振框”**,而不是无数条混乱的线。
2. 核心功能
🛡️ 全维幽灵监控:无论当前图表周期如何,脚本都会在后台实时监控 1H, 4H, 日线, 周线, 月线 的数据。
⚡ 智能共振雷达:自动检测并合并重叠的关键位。
⚡ (2线共振):值得关注。
⚡⚡ (3线共振):强力支撑/阻力。
⚡⚡⚡ (4线以上):核弹级/铁壁共振。
📊 波动率状态感知:自动识别布林带是处于 挤压蓄势 还是 扩张爆发 阶段。
风格切换:支持 图标模式 (🧊/🔥) 或 极客符号模式 (>.< / <^>)。
🧘 专注模式 (Focus Mode):一键隐藏所有单线,只保留共振框和仪表盘。让您的图表瞬间清空,像狙击手一样只关注目标。
🔔 智能警报:当价格触及共振框,或出现极度压缩信号时,立即发送警报。
3. 视觉指南
A. 状态符号说明
您可以在设置中切换显示风格。
B. 共振框说明
红色方框:上方阻力区 (Resistance)。
绿色方框:下方支撑区 (Support)。
标签示例:⚡⚡ 1H Up + D Mid —— 明确告知您是哪几条线发生了共振。
4. 实战策略
“反转”交易:寻找价格下方的绿色共振框,且具有高星级 (⚡⚡)。前提是当前状态不是扩张状态 (<^> 或 🔥)。
“突破”交易:在仪表盘上看到 挤压符号 (>.< 或 🧊)。如果价格在挤压状态下逼近共振框,不要逆势阻挡,大概率会发生强力突破。
“狙击”模式:开启 专注模式。设置好警报。不要盯着 K 线波动,直到价格撞上“墙壁”触发警报时再介入。
使用说明: youtu.be
Candlewick Detector Heinken AshiTrend reversal detector based on no-wick candle analysis at the opening side. Identifies momentum shifts by marking the first reversal candle after a bullish or bearish sequence. The indicator scans up to 5 candles after a color change to detect the first candle without wick on the opening side (red candle with no upper wick or green candle with no lower wick). Clear visual signals with colored triangles. Fully customizable parameters including minimum sequence length, body size percentage, wick tolerance, and lookback period to adapt to all trading styles.
S.T. TREND INDICATORIt is TREND indicator. it has 8 supertrends which can be used for different higher time frame & with different atr & multiplier.which will give better idea of varius trend like long ,medium,short & immediate trend.it also has daily & weekly vwap. and two sma with adjustable length & timeframe. source used for calculation of supertrends is 1min HA candles.yyou can use it onnormal japnees candle also.
dual moving average crossover Erdal//@version=5
indicator("MA Cross Simple", overlay=true)
// Inputs
fastLen = input.int(10)
slowLen = input.int(100)
// Moving averages
fastMA = ta.sma(close, fastLen)
slowMA = ta.sma(close, slowLen)
// Plot
plot(fastMA, color=color.green)
plot(slowMA, color=color.red)
// Cross signals
bull = ta.crossover(fastMA, slowMA)
bear = ta.crossunder(fastMA, slowMA)
// Labels
if bull
label.new(bar_index, low, "BUY", style=label.style_label_up, color=color.green)
if bear
label.new(bar_index, high, "SELL", style=label.style_label_down, color=color.red)
Pivot HL+50 EMA Hariss 369A simple indicator detects pivot highs and lows. Buy signal is fired when pivot high crosses and closes over previous pivot high and price is above 50 EMA in order to trade with trend.
Sell signal is fired when pivot low crosses and closes below the previous pivot low and price is below 50 EMA.
It is very simple to use this and one can visualize the trend with this indicator. It can be used for any type of asset and in any time frame.
DWM HLOC, Mid & WicksSimple, yet effective.
1. Automatically calculate and projects key price levels from a previous period (Yesterday, OR Last Week / Month) onto the current trading session. It acts as an immediate Support & Resistance map based on historical price action.
2. Multi-Timeframe Logic
Modes --
Daily Mode: Projects yesterday's data onto today.
Weekly Mode: Projects last week's data onto the current week.
3. Key Levels Visualized The script calculates seven distinct price levels:
OHLC: Previous Open, High, Low, and Close.
Equilibrium (Mid): The exact 50% mark between the previous High and Low.
Wick Midpoints (New):
Upper Wick 50%: The midpoint between the High and the top of the body.
Lower Wick 50%: The midpoint between the Low and the bottom of the body.
4. Smart "Gap" Visualization The script uses unique starting points to help traders visualize market gaps:
Standard Levels (High, Low, Open, Mids): These lines originate from the Previous Period's Open, showing the full context of the level relative to time.
Close Level: This line originates from the Current Period's Open. This visually highlights the "Gap" (the jump in price between where the market closed previously and where it opened today).
5. Full Customization
Aesthetics: Every line can be individually toggled on/off.
Styling: Users can independently change the color, line style (Solid, Dotted, Dashed), and thickness for every specific level.
MCX GOLD1! SpotHelps convert MCX gold rolling contract symbol to spot price.
Note: It cant accurately infer the contract role date, so it makes some assumptions, use the rolldays to adjust where needed
5 DMA Entry Plus5 DMA Entry Plus - Multi-Strategy Entry Signal Indicator
Overview:
The 5 DMA Entry Plus is a versatile entry signal indicator that combines multiple proven technical analysis methods to identify potential buy opportunities. This indicator is designed to be highly customizable, allowing traders to toggle between different entry strategies or combine them for confluence-based entries.
Key Features:
1. Multiple Entry Strategy Options:
Default Close Above Entry: Triggers when price closes above the 5-day moving average (with optional HMA filter)
Green Wick Candle Signal: Identifies bullish candles where the wick pierces above key moving averages, indicating rejection of lower prices
5DMA Zero/Upslope Entry: Generates signals when the 5DMA is flat or sloping upward, confirming momentum
HMA Cross Entry: Triggers when price crosses above the Hull Moving Average, a responsive momentum indicator
2. Adaptive HMA Filter:
Toggle the HMA (Hull Moving Average) filter on or off to adjust signal sensitivity. When enabled, price must be above both the 5DMA and 20 HMA for confirmation. When disabled, only the 5DMA is required, generating more frequent signals.
3. Smart Reset Logic:
The indicator includes intelligent reset functionality that prevents signal spam. Once an entry signal is generated, no new signals appear until price closes below the moving average(s), ensuring clean, actionable entries without clutter.
4. Visual Components:
5-Day Moving Average (Blue Line): The primary trend reference
20-Period Hull Moving Average (Orange Line): Fast-responding momentum filter
Buy Signals (Green Labels): Clear "Buy" labels appear below candles when entry conditions are met
Built-in Alerts: Set up custom alerts to be notified when entry signals trigger
Customizable Inputs:
Use HMA Filter: Enable/disable the 20 HMA confirmation requirement
Include Green Wick Candle Signal: Toggle wick-based entry detection
Use 5DMA Zero/Upslope Entry: Enable slope-based entry logic
Use HMA Cross Entry: Enable HMA crossover signals
HMA Length: Adjust the Hull Moving Average period (default: 20)
Best Use Cases:
Swing trading on daily and 4-hour timeframes
Identifying pullback entries in uptrends
Combining multiple confirmation signals for high-probability setups
Filtering entries in momentum-based strategies
Strategy Flexibility:
This indicator allows you to use each entry method independently or combine multiple methods for confluence. Test different combinations to find what works best for your trading style and the instruments you trade.
Risk Management Note:
This indicator identifies potential entry points but does not provide exit signals or stop-loss levels. Always use proper risk management and combine with your own exit strategy.
Reversal_Detector//@version=6
indicator("상승 반전 탐지기 (Reversal Detector)", overlay=true)
// ==========================================
// 1. 설정 (Inputs)
// ==========================================
rsiLen = input.int(14, title="RSI 길이")
lbR = input.int(5, title="다이버전스 확인 범위 (오른쪽)")
lbL = input.int(5, title="다이버전스 확인 범위 (왼쪽)")
rangeUpper = input.int(60, title="RSI 과매수 기준")
rangeLower = input.int(30, title="RSI 과매도 기준")
// ==========================================
// 2. RSI 상승 다이버전스 계산 (핵심 로직)
// ==========================================
osc = ta.rsi(close, rsiLen)
// 피벗 로우(Pivot Low) 찾기: 주가의 저점
plFound = na(ta.pivotlow(osc, lbL, lbR)) ? false : true
// 다이버전스 조건 확인
// 1) 현재 RSI 저점이 이전 RSI 저점보다 높아야 함 (상승)
// 2) 현재 주가 저점이 이전 주가 저점보다 낮아야 함 (하락)
showBull = false
if plFound
// 이전 피벗 지점 찾기
oscLow = osc
priceLow = low
// 과거 데이터를 탐색하여 직전 저점과 비교
for i = 1 to 60
if not na(ta.pivotlow(osc, lbL, lbR) ) // 이전에 저점이 있었다면
prevOscLow = osc
prevPriceLow = low
// 다이버전스 조건: 가격은 더 떨어졌는데(Lower Low), RSI는 올랐을 때(Higher Low)
if priceLow < prevPriceLow and oscLow > prevOscLow and oscLow < rangeLower
showBull := true
break // 하나 찾으면 루프 종료
// ==========================================
// 3. 보조 조건 (MACD 골든크로스 & 이평선)
// ==========================================
= ta.macd(close, 12, 26, 9)
macdCross = ta.crossover(macdLine, signalLine) // MACD 골든크로스
ma5 = ta.sma(close, 5)
ma20 = ta.sma(close, 20)
maCross = ta.crossover(ma5, ma20) // 5일선이 20일선 돌파
// ==========================================
// 4. 시각화 (Plotting)
// ==========================================
// 1) 상승 다이버전스 발생 시 (강력한 바닥 신호)
plotshape(showBull,
title="상승 다이버전스",
style=shape.labelup,
location=location.belowbar,
color=color.red,
textcolor=color.white,
text="Bull Div (바닥신호)",
size=size.small,
offset=-lbR) // 과거 시점에 표시
// 2) MACD 골든크로스 (추세 확인용)
plotshape(macdCross and macdLine < 0, // 0선 아래에서 골든크로스 날 때만
title="MACD 골든크로스",
style=shape.triangleup,
location=location.belowbar,
color=color.yellow,
size=size.tiny,
text="MACD")
// 3) 이동평균선
plot(ma5, color=color.blue, title="5일선")
plot(ma20, color=color.orange, title="20일선")
// 알림 설정
alertcondition(showBull, title="상승 다이버전스 포착", message="상승 다이버전스 발생! 추세 반전 가능성")
MACD Momentum Structure & Volume Profile Sniper [MTF]**Description and Methodology**
This script offers a unique approach to Market Structure by moving away from traditional fractal-based highs and lows (which can be noisy). Instead, it utilizes **MACD Momentum Swings** to identify significant structural points, combined with an automated Fixed Range Volume Profile to pinpoint high-probability entry zones.
**1. Why MACD Structure? (The Core Concept)**
Traditional "ZigZag" or Fractal indicators rely solely on price action, often leading to fake-outs during low-volume consolidation.
* This script defines a "Swing High" only when the MACD Histogram crosses below zero (Momentum shifts Bearish).
* This script defines a "Swing Low" only when MACD crosses above zero (Momentum shifts Bullish).
By linking structure to momentum, we filter out weak price movements and focus on the true "heartbeat" of the trend.
**2. The "Mashup" Synergy: Structure + Volume + Logic**
This is not a random combination of indicators. Each component serves a specific step in the trading execution sequence:
* **Step 1 (Structure):** The script identifies a Change of Character (CHoCH) based on the MACD peaks described above.
* **Step 2 (Liquidity/Value):** When a CHoCH occurs, the script *automatically* draws a **Fixed Range Volume Profile (FRVP)** specifically covering the impulse leg that caused the break. This reveals the "Point of Control" (POC)—the hidden price level where the most volume occurred during the move.
* **Step 3 (The Sniper Entry):** The script creates a "Zone" around that POC. It then waits for Price to retrace into this zone.
* **Step 4 (Confirmation):** Once the zone is touched, the script monitors a lower timeframe (User selectable, default M1) for a fresh MACD crossover to trigger the final entry signal.
**Features**
* **Multi-Timeframe Dashboard:** Monitor the MACD Trend direction across 4 different timeframes simultaneously.
* **Dynamic Trendlines:** Automatically connects confirmed MACD peaks to visualize trend integrity.
* **Fibo Time Zones:** Projects potential future pivot points based on the duration of the previous swing.
* **Alert System:** Integrated alerts for Zone Touches and "Sniper" entries (Zone Touch + LTF Momentum Confirmation).
**How to Use**
1. **Identify Trend:** Look for the CHoCH labels. Green indicates a shift to Bullish, Red to Bearish.
2. **Wait for Pullback:** Do not chase the break. Wait for price to return to the Yellow POC Zone generated by the Volume Profile.
3. **Entry Trigger:** Watch for the "BUY" or "SELL" marks. These appear only when price hits the zone AND the lower-timeframe momentum aligns with the trade direction.
**Settings & Inputs**
* **Global MACD:** Adjust the sensitivity of the swing detection (Default 12, 26, 9).
* **Sniper Entry:** Select the timeframe used for the final confirmation (e.g., use M1 confirmation for an H1 chart structure).
* **VP Settings:** Customize how the Volume Profile looks on the chart.
*Disclaimer: This script is intended for educational purposes and market analysis. It does not provide financial advice.*
Gold AI RSI Monitor [Stacked + KNN]Here is a comprehensive description and user guide for the Gold AI RSI Monitor. You can copy and paste this into the "Description" field if you publish the script on TradingView, or save it for your own reference.
Gold AI RSI Monitor
🚀 Overview
The Gold AI RSI Monitor is a next-generation dashboard designed specifically for trading volatile assets like Gold (XAUUSD). It completely reimagines the traditional RSI by "stacking" 10 different timeframes (from 1-minute to Monthly) into a single, vertical view.
Integrated into this dashboard is a K-Nearest Neighbors (KNN) Machine Learning algorithm. This AI analyzes historical price action to find patterns similar to the current market and predicts the next likely move with a confidence score.
📊 Visual Guide: How to Read the Chart
1. The "Stacked" Lanes Instead of switching timeframes constantly, this indicator displays them all at once using vertical offsets.
Bottom Lane (0-100): 1-Minute RSI
Middle Lanes: 5m, 15m, 30m, 1H, 2H, 4H, Daily
Top Lane (900-1000): Monthly RSI
2. Gradient Color System The RSI lines change color based on momentum strength:
🔴 Red: Oversold / Bearish (Approaching 30 or lower)
🟡 Yellow: Neutral (Around 50)
🟢 Green: Overbought / Bullish (Approaching 70 or higher)
3. Tracker Lines Each timeframe has a dotted horizontal line extending to the right. This allows you to instantly see the exact RSI value for every timeframe without squinting.
🤖 The AI Engine (KNN)
The "AI" component uses a K-Nearest Neighbors algorithm.
Learning: It scans the last 1,000 bars of history.
Matching: It finds the 5 historical moments that look mathematically identical to the current market conditions (based on RSI and Volatility).
Predicting: It checks if price went UP or DOWN after those historical matches.
The Signals:
Buying Signal: If the majority of historical matches resulted in a price increase, the AI triggers a BUY.
Selling Signal: If the majority resulted in a drop, the AI triggers a SELL.
🎯 How to Trade with This Indicator
1. The "Crosshair" Signal
When the AI detects a high-probability setup, a massive Crosshair appears on your chart:
Green Crosshair: Strong BUY signal.
Red Crosshair: Strong SELL signal.
Note: The crosshair consists of a thick vertical line and a dashed horizontal line intersecting at the signal candle.
2. Timeframe Alignment (Confluence)
Do not rely on the AI alone. Look at the stacked RSIs:
Strong Long: The AI shows a Green Crosshair AND the lower timeframes (1m, 5m, 15m) are all turning Green/upward.
Strong Short: The AI shows a Red Crosshair AND the lower timeframes are turning Red/downward.
3. Support & Resistance Zones
Bottom Dotted Line (30): Support. If RSI hits this and turns up, it's a buying opportunity.
Top Dotted Line (70): Resistance. If RSI hits this and turns down, it's a selling opportunity.
⚙️ Settings Guide
RSI Length: Default is 14. Lower (e.g., 7) makes it faster/choppier; higher (e.g., 21) makes it smoother.
Enable AI Signals: Toggles the KNN calculation on/off.
Neighbors (K): How many historical matches to check. Default is 5.
Increase to 9-10 for fewer, more conservative signals.
Decrease to 3 for faster, more aggressive signals.
AI Timeframe: CRITICAL SETTING.
If left empty, the AI calculates based on your current chart.
Recommendation: For Gold scalping, set this to 15m or 1h. This ensures the AI looks at the bigger trend even if you are zooming in on the 1-minute chart.
⚠️ Disclaimer
This tool is for educational and analytical purposes. The "AI" is a statistical probability algorithm based on past performance, which is not indicative of future results. Always manage your risk.
MTF RSI Stacked + AI + Gradient MTF RSI Stacked + AI + Gradient
Quick-start guide & best-practice rules
What the indicator does
Multi-Time-Frame RSI in one pane
• 10 time-frames (1 m → 1 M) are stacked 100 points apart (0, 100, 200 … 900).
• Each RSI is plotted with a smooth red-yellow-green gradient:
– Red = RSI below 30 (oversold)
– Yellow = RSI near 50
– Green = RSI above 70 (overbought)
• Grey 30-70 bands are drawn for every TF so you can see extremities at a glance.
Built-in AI (KNN) signal
• On every close of the chosen AI-time-frame the script:
– Takes the last 14-period RSI + normalised ATR as “features”
– Compares them to the last N bars (default 1 000)
– Votes of the k = 5 closest neighbours → BUY / SELL / NEUTRAL
• Confidence % is shown in the badge (top-right).
• A thick vertical line (green/red) is printed once when the signal flips.
How to read it
• Gradient colour tells you instantly which TFs are overbought/obove sold.
• When all or most gradients are green → broad momentum up; look for shorts only on lower-TF pullbacks.
• When most are red → broad momentum down; favour longs only on lower-TF bounces.
• Use the AI signal as a confluence filter, not a stand-alone entry:
– If AI = BUY and 3+ higher-TF RSIs just crossed > 50 → consider long.
– If AI = SELL and 3+ higher-TF RSIs just crossed < 50 → consider short.
• Divergences: price makes a higher high but 1 h/4 h RSI (gradient) makes a lower high → possible reversal.
Settings you can tweak
AI timeframe – leave empty = same as chart, or pick a higher TF (e.g. “15” or “60”) to slow the signal down.
Training bars – 500-2 000 is the sweet spot; bigger = slower but more stable.
K neighbours – 3-7; lower = more signals, higher = smoother.
RSI length – 14 is standard; 9 gives earlier turns, 21 gives fewer false swings.
Practical trading workflow
Open the symbol on your execution TF (e.g. 5 m).
Set AI timeframe to 3-5× execution TF (e.g. 15 m or 30 m) so the signal survives market noise.
Wait for AI signal to align with gradient extremes on at least one higher TF.
Enter on the first gradient reversal inside the 30-70 band on the execution TF.
Place stop beyond the swing that caused the gradient flip; target next opposing 70/30 level on the same TF or trail with structure.
Colour cheat-sheet
Bright green → RSI ≥ 70 (overbought)
Bright red → RSI ≤ 30 (oversold)
Muted colours → RSI near 50 (neutral, momentum pause)
That’s it—one pane, ten time-frames, colour-coded extremes and an AI confluence layer.
Keep the chart clean, use price action for precise entries, and let the gradient tell you when the wind is at your back.
Séparateur H4 & DailyH4 & Daily Separator - TradingView Indicator
This Pine Script v6 indicator draws infinite vertical lines to mark H4 and Daily candle separations on your chart.
Features:
H4 Separations: Marks candles starting at 3am, 7am, 11am, 3pm, 7pm, and 11pm
Daily Separations: Marks candles starting at midnight (00:00)
Fully Customizable:
Toggle H4 and/or Daily lines independently
Choose line color, thickness (1-4), and style (Solid, Dotted, Dashed)
Control the number of visible vertical lines (1-500)
Use Case:
Perfect for traders who want to visualize higher timeframe separations while trading on lower timeframes. Helps identify H4 and Daily candle opens without switching charts.
Installation:
Simply copy the code into TradingView's Pine Editor and add it to your chart. All settings are adjustable in the indicator's settings panel.
Trend Trader//@version=6
indicator("Trend Trader", shorttitle="Trend Trader", overlay=true)
// User-defined input for moving averages
shortMA = input.int(10, minval=1, title="Short MA Period")
longMA = input.int(100, minval=1, title="Long MA Period")
// User-defined input for the instrument selection
instrument = input.string("US30", title="Select Instrument", options= )
// Set target values based on selected instrument
target_1 = instrument == "US30" ? 50 :
instrument == "NDX100" ? 25 :
instrument == "GER40" ? 25 :
instrument == "GOLD" ? 5 : 5 // default value
target_2 = instrument == "US30" ? 100 :
instrument == "NDX100" ? 50 :
instrument == "GER40" ? 50 :
instrument == "GOLD" ? 10 : 10 // default value
// User-defined input for the start and end times with default values
startTimeInput = input.int(12, title="Start Time for Session (UTC, in hours)", minval=0, maxval=23)
endTimeInput = input.int(17, title="End Time Session (UTC, in hours)", minval=0, maxval=23)
// Convert the input hours to minutes from midnight
startTime = startTimeInput * 60
endTime = endTimeInput * 60
// Function to convert the current exchange time to UTC time in minutes
toUTCTime(exchangeTime) =>
exchangeTimeInMinutes = exchangeTime / 60000
// Adjust for UTC time
utcTime = exchangeTimeInMinutes % 1440
utcTime
// Get the current time in UTC in minutes from midnight
utcTime = toUTCTime(time)
// Check if the current UTC time is within the allowed timeframe
isAllowedTime = (utcTime >= startTime and utcTime < endTime)
// Calculating moving averages
shortMAValue = ta.sma(close, shortMA)
longMAValue = ta.sma(close, longMA)
// Plotting the MAs
plot(shortMAValue, title="Short MA", color=color.blue)
plot(longMAValue, title="Long MA", color=color.red)
// MACD calculation for 15-minute chart
= request.security(syminfo.tickerid, "15", ta.macd(close, 12, 26, 9))
macdColor = macdLine > signalLine ? color.new(color.green, 70) : color.new(color.red, 70)
// Apply MACD color only during the allowed time range
bgcolor(isAllowedTime ? macdColor : na)
// Flags to track if a buy or sell signal has been triggered
var bool buyOnce = false
var bool sellOnce = false
// Tracking buy and sell entry prices
var float buyEntryPrice_1 = na
var float buyEntryPrice_2 = na
var float sellEntryPrice_1 = na
var float sellEntryPrice_2 = na
if not isAllowedTime
buyOnce :=false
sellOnce :=false
// Logic for Buy and Sell signals
buySignal = ta.crossover(shortMAValue, longMAValue) and isAllowedTime and macdLine > signalLine and not buyOnce
sellSignal = ta.crossunder(shortMAValue, longMAValue) and isAllowedTime and macdLine <= signalLine and not sellOnce
// Update last buy and sell signal values
if (buySignal)
buyEntryPrice_1 := close
buyEntryPrice_2 := close
buyOnce := true
if (sellSignal)
sellEntryPrice_1 := close
sellEntryPrice_2 := close
sellOnce := true
// Apply background color for entry candles
barcolor(buySignal or sellSignal ? color.yellow : na)
/// Creating buy and sell labels
if (buySignal)
label.new(bar_index, low, text="BUY", style=label.style_label_up, color=color.green, textcolor=color.white, yloc=yloc.belowbar)
if (sellSignal)
label.new(bar_index, high, text="SELL", style=label.style_label_down, color=color.red, textcolor=color.white, yloc=yloc.abovebar)
// Creating labels for 100-point movement
if (not na(buyEntryPrice_1) and close >= buyEntryPrice_1 + target_1)
label.new(bar_index, high, text=str.tostring(target_1), style=label.style_label_down, color=color.green, textcolor=color.white, yloc=yloc.abovebar)
buyEntryPrice_1 := na // Reset after label is created
if (not na(buyEntryPrice_2) and close >= buyEntryPrice_2 + target_2)
label.new(bar_index, high, text=str.tostring(target_2), style=label.style_label_down, color=color.green, textcolor=color.white, yloc=yloc.abovebar)
buyEntryPrice_2 := na // Reset after label is created
if (not na(sellEntryPrice_1) and close <= sellEntryPrice_1 - target_1)
label.new(bar_index, low, text=str.tostring(target_1), style=label.style_label_up, color=color.red, textcolor=color.white, yloc=yloc.belowbar)
sellEntryPrice_1 := na // Reset after label is created
if (not na(sellEntryPrice_2) and close <= sellEntryPrice_2 - target_2)
label.new(bar_index, low, text=str.tostring(target_2), style=label.style_label_up, color=color.red, textcolor=color.white, yloc=yloc.belowbar)
sellEntryPrice_2 := na // Reset after label is created
Candle Points (Based on High/Low)Places a dot on the candle at the 25% 50% and 75% mark.
Candle body opacity needs to reduced to see the dots when then are within the candle body.
ATR Volatility HistogramATR Volatility Histogram showing result as coloured histogram where Rising > Greenand Fallig < Red. Input can be varied in settings.






















