Digital Clock with Candle Alert📊 Digital Clock with Candle Alert
A sleek, customizable digital clock for your trading charts that displays real-time with seconds and provides visual alerts before new candles form. Never miss a candle entry again!
✨ Key Features:
- Real-time Digital Clock - Shows hours, minutes, and seconds in your chosen timezone
- Visual Candle Alerts - Blinking notification before new candles form
- Multi-Timeframe Alerts - Get alerts for any timeframe regardless of your chart period
- Fully Customizable - Colors, size, position, and alert timing all configurable
- Half-Second Blinking - Eye-catching 2Hz blink rate for maximum visibility
- 6 Timezone Options - Exchange, UTC, New York, London, Tokyo, Sydney
🎯 Use Cases:
- Scalping - Know exactly when the next candle will form
- Entry Timing - Perfect for strategies that enter on new candles
- Multi-Timeframe Trading - Monitor higher timeframe candles while on lower timeframes
- General Awareness - Always know the current time in your trading timezone
⚙️ Settings:
Time Settings:
- Timezone selection (Exchange default or specific zones)
Display Options:
- Text and background colors for normal operation
- Alert colors for blinking state
- Text size (tiny to huge)
- Position (9 locations on chart)
Alert Configuration:
- Enable/disable blinking alerts
- Select timeframe to monitor
- Alert lead time (5 seconds to 1 hour)
📝 Important Notes:
- Clock updates depend on incoming price ticks
- During low-volume periods, updates may be less frequent
- Works best on liquid instruments during active market hours
- Alert timeframe is independent of your chart timeframe
💡 Tips:
- Use contrasting alert colors for maximum visibility
- Set lead time based on your reaction needs
- Position clock where it won't obstruct price action
- Try red background with white text for urgent alerts
🔄 Version 1.0 - Initial release
Göstergeler ve stratejiler
Advanced DMA Pattern Detection SystemAdvanced DMA Pattern Detection System with Smart Intelligence
Professional-grade moving average indicator that combines traditional DMA analysis with advanced pattern recognition and probabilistic forecasting.
Core Features:
6 Key DMAs (5, 10, 20, 50, 100, 200) with descriptive labels showing trading purpose
Advanced Pattern Recognition - Detects Institutional Accumulation, Distribution Phases, Bull/Bear Transitions, and Choppy Markets
Probability Engine - Assigns confidence scores (0-100%) with Low/Medium/High classifications
Historical Validation - Tracks success rate of last 20 pattern signals for real performance data
Smart Alert System - Only triggers on significant pattern changes (20%+ probability shifts)
Dual Display System:
Movable Information Table - Shows current pattern, probability, confidence level, success rate, and recommended action
Chart Alerts & Background Colors - Visual confirmation of high-confidence setups (80%+ patterns)
Traditional DMA Labels - Clear identification of each average's trading significance
Complete Customization:
Master on/off controls for entire system
Individual toggles for all components (DMAs, table, alerts, colors)
Adjustable alert sensitivity (Conservative/Medium/Aggressive)
6 table positions to fit any chart layout
Perfect For: Swing traders, position traders, and anyone wanting systematic trend analysis with quantified probability scores rather than subjective interpretation.
Bottom Line: Transforms basic moving averages into an intelligent trading system that tells you exactly what the market structure means and what to do about it.
Volume Labels BABYBOTVolume labels babybot spwan for use with 1 min breakout volume candles OKLO NFLX ASML HIMS
The Visualized Trader (Fractal Timeframe)The **The Visualized Trader (Fractal Timeframe)** indicator for TradingView is a tool designed to help traders identify strong bullish or bearish trends by analyzing multiple technical indicators across two timeframes: the current chart timeframe and a user-selected higher timeframe. It visually displays trend alignment through arrows on the chart and a condition table in the top-right corner, making it easy to see when conditions align for potential trade opportunities.
### Key Features
1. **Multi-Indicator Analysis**: Combines five technical conditions to confirm trend direction:
- **Trend**: Based on the slope of the 50-period Simple Moving Average (SMA). Upward slope indicates bullish, downward indicates bearish.
- **Stochastic (Stoch)**: Uses Stochastic Oscillator (5, 3, 2) to measure momentum. Rising values suggest bullish momentum, falling values suggest bearish.
- **Momentum (Mom)**: Derived from the MACD fast line (5, 20, 30). Rising MACD line indicates bullish momentum, falling indicates bearish.
- **Dad**: Uses the MACD signal line. Rising signal line is bullish, falling is bearish.
- **Price Change (PC)**: Compares the current close to the previous close. Higher close is bullish, lower is bearish.
2. **Dual Timeframe Comparison**:
- Calculates the same five conditions on both the current timeframe and a user-selected higher timeframe (e.g., daily).
- Helps traders see if the trend on the higher timeframe aligns with the current chart, providing context for stronger trade decisions.
3. **Visual Signals**:
- **Arrows on Chart**:
- **Current Timeframe**: Blue upward arrows below bars for bullish alignment, red downward arrows above bars for bearish alignment.
- **Higher Timeframe**: Green upward triangles below bars for bullish alignment, orange downward triangles above bars for bearish alignment.
- Arrows appear only when all five conditions align (all bullish or all bearish), indicating strong trend potential.
4. **Condition Table**:
- Displays a table in the top-right corner with two rows:
- **Top Row**: Current timeframe conditions (Trend, Stoch, Mom, Dad, PC).
- **Bottom Row**: Higher timeframe conditions (labeled with "HTF").
- Each cell is color-coded: green for bullish, red for bearish.
- The table can be toggled on/off via input settings.
5. **User Input**:
- **Show Condition Boxes**: Toggle the table display (default: on).
- **Comparison Timeframe**: Choose the higher timeframe (e.g., "D" for daily, default setting).
### How It Works
- The indicator evaluates the five conditions on both timeframes.
- When all conditions are bullish (or bearish) on a given timeframe, it plots an arrow/triangle to signal a strong trend.
- The condition table provides a quick visual summary, allowing traders to compare the current and higher timeframe trends at a glance.
### Use Case
- **Purpose**: Helps traders confirm strong trend entries by ensuring multiple indicators align across two timeframes.
- **Example**: If you're trading on a 1-hour chart and see blue arrows with all green cells in the current timeframe row, plus green cells in the higher timeframe (e.g., daily) row, it suggests a strong bullish trend supported by both timeframes.
- **Benefit**: Reduces noise by focusing on aligned signals, helping traders avoid weak or conflicting setups.
### Settings
- Access the indicator settings in TradingView to:
- Enable/disable the condition table.
- Select a higher timeframe (e.g., 4H, D, W) for comparison.
### Notes
- Best used in trending markets; may produce fewer signals in choppy conditions.
- Combine with other analysis (e.g., support/resistance) for better decision-making.
- The higher timeframe signals (triangles) provide context, so prioritize trades where both timeframes align.
This indicator simplifies complex trend analysis into clear visual cues, making it ideal for traders seeking confirmation of strong momentum moves.
(MA with colored trend background)MA with colored trend background is a versatile trend-detection indicator that allows users to choose between three types of moving averages:
EMA (Exponential Moving Average)
KAMA (Kaufman Adaptive Moving Average)
Kijun-sen (from the Ichimoku system)
The indicator automatically detects trend shifts based on candlestick interactions with the selected MA line, and visually reflects the current trend direction using dynamic background coloring. Its goal is to help traders quickly interpret trend strength and direction—without relying on multiple indicators.
How it works
The indicator follows this logic to detect bullish and bearish conditions:
Bullish signal (green trend):
When the candle closes above the selected MA and both the open and close are above the MA, a bullish trend is signaled and the chart background turns green.
Bearish signal (red trend):
When the candle closes below the MA and both the open and close are below it, a bearish trend is triggered and the background turns red.
The background color remains until an opposite signal appears, ensuring a consistent visual representation of the current trend phase.
What it does and why it’s useful
Unlike standard moving average indicators that only plot lines, KINSKI Flexi Trend MA provides:
Flexibility to switch between different MA types (EMA, KAMA, or Kijun), allowing users to adapt it to various market environments.
Visual context via background color that enhances clarity—even when scanning multiple charts or working across timeframes.
KAMA uses fixed internal parameters (fast=2, slow=30) to provide a responsive, noise-filtering MA line.
Kijun-sen is calculated as the midpoint between the highest high and lowest low over a user-defined period, similar to its role in Ichimoku.
This combination of visual clarity and analytical flexibility makes the indicator highly suitable for:
Trend-following strategies
Breakout confirmation
Scalping (on lower timeframes)
Swing trading
How to use it
Select the MA type from the dropdown:
EMA (standard exponential moving average)
KAMA (adaptive smoothing)
Kijun-sen (Ichimoku mid-line)
Adjust the MA length depending on your trading style or timeframe:
e.g., EMA 50 for medium-term trend, Kijun 9 for faster signals.
Observe the background color:
Green → bullish trend in progress.
Red → bearish trend in progress.
Background color change may serve as an entry or exit confirmation.
Additional explanation for tracking this indicator:
When we're in a bullish trend, the background is green. We can see a narrow red background appearing when there is a certain pullback. The narrow sections of the colored background indicate that a pullback is active, and we can expect a return to the bullish side. We then return to the green zone. This is also a good indicator during consolidations because it visually shows us that the color changes in the background, as well as their same width, are consistent. This indicates that we should avoid trading during this period.
Common DMAs with LabelsHere's a short description for publishing:
Common Daily Moving Averages (DMA) Indicator with Smart Labels
Displays the most widely-used moving averages that professional traders watch: 5, 10, 20, 50, 100, and 200 DMAs with clear color-coding and descriptive labels.
Key Features:
Smart Labels - Each DMA shows its trading purpose (Day Trading, Swing Trading, Bull/Bear Line, etc.)
Customizable Display - Toggle any DMA on/off individually
Golden/Death Cross Alerts - Optional 50/200 crossover signals
Live Status Table - Shows current DMA values vs price with up/down arrows
Professional Styling - Color-coded lines with appropriate thickness (200 DMA emphasized)
Perfect for:
Multi-timeframe trend analysis
Support/resistance identification
Bull/bear market confirmation
Entry/exit timing
Usage: Add to chart, customize which DMAs to display in settings. Labels appear on the right showing each average's trading significance. Enable the status table for quick price-vs-DMA reference.
Ideal for both beginners learning key moving averages and experienced traders wanting a clean, informative DMA setup.
Trend Trading Indicator with Adjustable MA FilterThis indicator tracks MA buy and sell labels, and has adjustable MA types and lengths along with a trend filter and time This indicator tracks MA buy and sell labels, and has adjustable MA types and lengths along with a trend filter and time filter
[DIP] Many Moving AveragesHighly customizable set of moving averages. I noticed there wasn't anything simple, easy to use and customizable in the public domain so I decided to make my own.
Supports:
- Up to 8 Moving Averages ( SMA , EMA , HMA , RMA, VWMA , WMA )
- Each moving average can be configured with its own Period, Type, Source and Timeframe.
SQZPROaltStanding on the shoulders of John Carter (Trade The Markets and Simpler Trading) along with Drecken, LazyBear, Makit0 and Beardy_Fred. This version of the Squeeze Pro compares Bollinger Band Width to Keltner Channel Width in determining one of four conditions: no squeeze (BBW > KCW 2x), moderate/wide squeeze (BBW < KCW 2x but > KCW 1.5x), original squeeze (BBW < KCW 1.5x but > KCW1x) and tight squeeze (BBW < KCW 1x). Other approaches compared upper and lower channel values and I found that confusing in some circumstances. Directly comparing the band widths made more sense to me. This version provides the same signals most of the time, but this approach cleared up my confusion. {Happy emoji}
0DTE Expected Move Lines0DTE Expected Move Levels – Manual VIX Input
This indicator calculates and displays intraday expected move zones for SPX or other indices based on a manually entered VIX value. It helps intraday or 0DTE option traders visualize potential price ranges where price is statistically likely to stay.
What it does:
Uses VIX to estimate the daily expected move:
EM = Spot × (VIX / 100) × √(1 / 365)
Draws horizontal lines at:
±1× EM → suggested short strike range
±1.5× EM → more conservative range
Ideal for Iron Condors, Straddles, Butterflies, or short premium strategies
Features:
Clean visual markers using line.new() (no plot(), so works on all TradingView plans)
Manual VIX input for full flexibility
Lightweight and fast – updates with every bar
✅ Works best on SPX, SPY, ES, or MES charts.
No Nonsense Forex Moving Averages ATR Bands[T1][T69]🔍 Overview
This indicator implements a No Nonsense Forex-style Baseline combined with ATR Bands, built using the moving_averages_library by Teyo69. It plots a configurable moving average and dynamically adjusts upper/lower ATR bands for trade zone detection and baseline confirmation.
✨ Features
30+ Moving Average types
ATR bands to define dynamic trade zones
Visual background highlighting for trade signals
Supports both "Within Range" and "Baseline Bias" display modes
Clean, minimal overlay with effective zone coloring
⚙️ How to Use
Choose MA Type: Select the baseline logic (SMA, EMA, HMA, etc.)
Configure ATR Bands: Adjust the ATR length and multiplier
Select Background Mode:
Within Range: Yellow = price inside band, Gray = outside
Long/Short Baseline Signal: Green = price above baseline, Red = below
Trade Setup:
Use the baseline for trend direction
Wait for confirmation or avoidance when price is outside the band
🛠 Configuration
Source: Price source for MA
MA Type: Any supported MA from the library
MA Length: Number of bars for smoothing
ATR Length: Period for Average True Range
ATR Multiplier: Width of the bands
Background Signal Mode: Choose visual signal type
⚠️ Limitations
Works with one MA at a time
Requires the moving_averages_library imported
Does not include confirmation or exit logic — use with full NNFX stack
💡 Tips
Combine with Volume or Confirmation indicators for NNFX strategy
Use adaptive MAs like KAMA, JMA, or VIDYA for dynamic baselines
Adjust ATR settings based on asset volatility
📘 Credits
Library: Teyo69/moving_averages_library/1
Inspired by: No Nonsense Forex (VP) Baseline + ATR Band methodology & MigthyZinger
Daily Weekly Monthly Highs & Lows [Dova Lazarus]Daily Weekly Monthly Highs & Lows
📊 Overview
This Pine Script indicator displays key support and resistance levels by plotting the highs and lows from Daily, Weekly, and Monthly timeframes on your current chart. It's designed as an educational tool to help traders understand multi-timeframe analysis and identify significant price levels.
🎯 Key Features
Multi-Timeframe Support & Resistance
- Daily Levels: Shows previous daily highs and lows
- Weekly Levels: Displays weekly highs and lows
- Monthly Levels: Plots monthly highs and lows
- Smart Display: Only shows relevant timeframes based on your current chart timeframe
Fully Customizable Appearance
- Individual Colors: Set unique colors for each timeframe
- Line Styles: Choose between Solid, Dashed, or Dotted lines
- Line Width: Adjust thickness from 1-4 pixels
- Lookback Periods: Control how many historical levels to display
User-Friendly Options
- Enable/Disable: Toggle any timeframe on/off
- Line Extension: Option to extend lines into the future
- Clean Interface: Organized settings groups for easy configuration
🔧 Settings
Timeframes Group
- Show Daily/Weekly/Monthly Levels: Enable or disable each timeframe
- Lookback Periods: Number of historical levels to display (1-10)
Line Settings Group
- Color: Choose custom colors for each timeframe
- Style: Select line appearance (Solid/Dashed/Dotted)
- Width: Set line thickness (1-4 pixels)
Display Options Group
- Extend Lines Forward: Project lines 20 bars into the future
📈 How to Use
1. Add to Chart: Apply the indicator to any timeframe chart
2. Configure Timeframes: Enable the timeframes you want to see
3. Customize Appearance: Set colors and line styles for easy identification
4. Identify Levels: Use the plotted levels as potential support/resistance zones
5. Plan Trades: Look for price reactions at these key levels
💡 Trading Applications
- Support & Resistance: Identify key price levels where reversals may occur
- Entry Points: Look for bounces or breaks at these levels
- Stop Loss Placement: Use levels to set logical stop losses
- Target Setting: Previous highs/lows can serve as profit targets
- Multi-Timeframe Analysis: Understand the bigger picture context
🎓 Educational Value
This indicator is perfect for:
- Learning Pine Script: Clean, well-commented code structure
- Understanding Multi-Timeframe Analysis: See how different timeframes interact
- Practicing Technical Analysis: Identify key support/resistance concepts
- Code Study: Full variable names and detailed comments for learning
⚙️ Technical Details
- Version: Pine Script v6
- Overlay: True (plots directly on price chart)
- Max Lines: 500 (handles multiple timeframes efficiently)
- Compatibility: Works on all timeframes (shows relevant levels only)
🔍 What Makes This Different
- Educational Focus: Designed for learning with clear code structure
- Simplified Interface: Easy-to-use settings without overwhelming options
- Visual Clarity: Clean line display with customizable appearance
- Practical Application: Real trading tool, not just a demonstration
📋 Requirements
- TradingView account (any plan)
- Basic understanding of support/resistance concepts
- Any chart timeframe (indicator adapts automatically)
🚀 Quick Start
1. Add indicator to your chart
2. Default settings work great out of the box
3. Customize colors if desired (Green=Daily, Orange=Weekly, Red=Monthly)
4. Watch for price reactions at the plotted levels
5. Use as part of your technical analysis toolkit
---
*This indicator is designed as an educational tool and should be used in conjunction with other forms of analysis. Past performance does not guarantee future results.*
XRP Scalping Bot v2 (Freq-Boost + Risk Mgmt)sumn i made with help from ai. uses bollinger, adx, atr, macd, rsi, ema. originally for XRP/USDC for 3commas. just trying to get something right
Vortex strategy🧠 Overview
The Vortex Strategy is a sophisticated trend-following and volatility-based trading algorithm designed for precision entries during directional market phases. It leverages Jurik smoothing, velocity filtering, and Vortex Indicator derivatives, enhanced with advanced risk management and hourly optimization. This strategy is best suited for futures and high-volume intraday markets like the CME E-Mini S&P 500 (ES1!).
🔧 Core Features
🔄 Vortex Indicator with Velocity Filter
Uses a velocity-enhanced form of the classic Vortex Indicator (VIP and VIM) to capture directional momentum.
Smooth VMP/VMM via SS & BW and pass that through a custom velocity function using RMS-scaled filtering.
📉 Super Smoother Trend Filter
Implements Ehlers' Super Smoother Filter to define trend bias dynamically.
Acts as a directional filter for long/short entry conditions, avoiding whipsaws.
🔊 Volume Velocity Confirmation
Entry signals require increasing volume velocity, calculated using RMS scaling and normalized via bandpass filtering.
🧠 Signal Conditions
Long Entry: VIP crosses above VIM, price above smoothed trend filter, and volume velocity increasing.
Short Entry: VIM crosses above VIP, price below trend filter, and volume velocity increasing.
🛡️ Risk & Trade Management
🎯 Dynamic Stop Loss & Take Profit
SL and TP are calculated using ATR smoothed with Jurik MA.
TP multiplier is customizable by hour, optimizing profit capture per trading session.
🕐 Hourly Optimization
Define up to 3 specific trade hours, each with:
Unique risk % allocation
Unique TP multipliers
Falls back to user-defined default settings if outside optimized hours, (Asia, New York).
🪙 Position Sizing
Risk-based sizing per trade.
Contracts are calculated dynamically using user/hourly risk and stop distance.
Rounded down to whole units to comply with futures contract rules.
⚙️ Advanced Tools
Jurik Moving Average (JMA): Smoothing with minimal lag
T3 Moving Average: Tilson’s smoother with configurable alpha
Laguerre Ultimate Smoother: Custom low-pass filter for signal confirmation
Hann Window FIR Filter: Optional for fine-tuned smoothing
Butterworth High-Pass & Bandpass Filters: For noise reduction and signal isolation
Z-Score Normalization: Detect extreme moves
Modular MA Framework: Plug-and-play MA type selector for quick experiments
⚙️ User Inputs (Grouped)
📌 Strategy Settings
Trade Direction: Long, Short, or Both
User-defined base risk (%)
📌 Entry Filters
Source type (hl2 default)
Vortex Length and Velocity Length
Super Smoother length
Volume Velocity length
📌 Risk & TP Settings
ATR Length, SL Multiplier, TP Multiplier
Per-hour TP/SL & risk percentages
📌 Time Filter
Toggle & configure 3 active trade hours
✅ Execution Logic
Strategy orders are submitted using strategy entry with calculated qty and a stop trigger.
Exits are handled by strategy exit with both SL and TP conditions.
Ensures each entry aligns with direction, trend filter, and volume momentum.
📈 Ideal For
Intraday futures traders (e.g., CME ES1!)
Traders needing hour-by-hour performance tuning
Strategies requiring advanced smoothing and signal validation
Quantitative backtesters analyzing risk-adjusted performance
Flexi MA Reversal🔹 FlexiMA Reversal – Customizable MA-Based Reversal Indicator
FlexiMA Reversal is a real-time, moving average-based reversal indicator designed to highlight potential market turning points using signal and alert lines. It provides visual cues for both early alerts and confirmed entry signals on candle close.
🔧 Key Features:
Customizable Moving Average Type: Choose from EMA, SMA, WMA, or VWMA (default is EMA).
Flexible MA Inputs: Configure up to three MAs (commonly used 5, 50, and 200).
Toggle Visibility: Enable or disable each MA line as needed.
Real-Time Alert System:
Thin alert lines appear when a potential reversal is detected.
Thicker signal lines confirm the reversal when price closes beyond the alert level.
Optional Visual Styling:
Choose custom colors for each MA, signal, and alert line.
Alert candles are automatically colored to match the corresponding alert line.
Option to show only signal lines for cleaner charts.
Customizable projection length for both alert and signal lines.
📈 Strategy Logic:
This indicator is designed to detect reversal opportunities based on the relationship between price and a selected short-term moving average.
Bullish Setup:
Price closes below the selected MA (e.g., EMA 5).
A bullish alert line is drawn at the high.
If a subsequent candle closes above the alert line and the MA, a bullish signal line is plotted.
Bearish Setup:
Price closes above the selected MA.
A bearish alert line is drawn at the low.
If a subsequent candle closes below the alert line and the MA, a bearish signal line is plotted.
This approach attempts to capture quick market shifts where short-term momentum reverses direction near key MA levels.
🎯 How to Use:
Although originally developed using the 5 EMA strategy, through testing it was found that using 6, 7, or 8 EMA offers even better signal quality.
To add broader trend context, 50 MA and 200 MA lines are included and can be toggled on/off based on your strategy preference.
🔍 Trend Filtering & Re-Entry Tips:
Due to the nature of shorter moving averages, reversal signals may appear frequently. For better trend alignment:
Use the 50 MA as a trend filter:
❌ Ignore bearish signals when price is above 50 MA
❌ Ignore bullish signals when price is below 50 MA
Alternatively, filtered-out signals can be used for re-entry within the trend:
For example, if you receive a bearish alert and signal above the 50 MA, and the next candle closes back above the bearish alert line, this may be interpreted as a bullish re-entry opportunity into the prevailing uptrend.
🛠️ Styling Tips:
You can disable alert candle coloring in the Style tab of the indicator settings.
Use the "Show Only Signal Lines" checkbox to keep the chart minimalistic while still tracking confirmed entries.
Step-MA Baseline (with optional smoother)Trackline – Trend-Following Baseline with Confirmation Zones
A clean trend-following baseline that adapts to price action while filtering noise. Built on a smoothed moving average (EMA or HMA), Trackline highlights directional bias, with optional zone coloring to indicate breakout alignment or pullback opportunities. Use it to identify trend direction, validate entries, or act as dynamic support/resistance in trending environments.
Features:
• Customizable length & smoothing method (EMA, HMA, or WMA)
• Optional signal coloring (bullish/bearish/neutral)
• Works on all timeframes and assets
• Pairs well with momentum or liquidity tools
Confirmed Entry Grid Pro//@version=5
indicator("Confirmed Entry Grid Pro", overlay=true)
// === المتوسطات ===
ma9 = ta.sma(close, 9)
ma21 = ta.sma(close, 21)
ma200 = ta.sma(close, 200)
// === الاتجاه ===
trendBull = close > ma200
trendBear = close < ma200
// === الزخم ===
rsi = ta.rsi(close, 14)
rsiBull = rsi > 50
rsiBear = rsi < 50
// === الحجم ===
volMA = ta.sma(volume, 20)
volHigh = volume > volMA
// === شموع ابتلاعية ===
bullEngulf = close > open and open < close and close > open
bearEngulf = close < open and open > close and close < open
// === بولنجر باند ===
basis = ta.sma(close, 20)
dev = ta.stdev(close, 20)
upper = basis + 2 * dev
lower = basis - 2 * dev
bbBreakUp = close > upper
bbBreakDown = close < lower
// === دعم / مقاومة ديناميكية ===
support = ta.lowest(low, 20)
resistance = ta.highest(high, 20)
nearSupport = math.abs(close - support) / close < 0.015
nearResistance = math.abs(close - resistance) / close < 0.015
// === تقاطع المتوسطات ===
crossUp = ta.crossover(ma9, ma21)
crossDown = ta.crossunder(ma9, ma21)
// === ATR ===
atr = ta.atr(14)
atrActive = atr > ta.sma(atr, 14)
// === SMC: BOS + CHOCH ===
bosUp = high > high and low > low
bosDown = low < low and high < high
chochUp = close > high and close < high
chochDown = close < low and close > low
smcBuy = bosUp and chochUp
smcSell = bosDown and chochDown
// === مناطق السيولة ===
liqHigh = ta.highest(high, 30)
liqLow = ta.lowest(low, 30)
liquidityBuyZone = close < liqLow
liquiditySellZone = close > liqHigh
// === حساب النقاط لكل صفقة ===
buyScore = (trendBull ? 1 : 0) + (rsiBull ? 1 : 0) + (volHigh ? 1 : 0) + (bullEngulf ? 1 : 0) + (smcBuy ? 1 : 0) + (bbBreakUp ? 1 : 0) + (nearSupport ? 1 : 0) + (crossUp ? 1 : 0) + (atrActive ? 1 : 0) + (liquidityBuyZone ? 1 : 0)
sellScore = (trendBear ? 1 : 0) + (rsiBear ? 1 : 0) + (volHigh ? 1 : 0) + (bearEngulf ? 1 : 0) + (smcSell ? 1 : 0) + (bbBreakDown ? 1 : 0) + (nearResistance ? 1 : 0) + (crossDown ? 1 : 0) + (atrActive ? 1 : 0) + (liquiditySellZone ? 1 : 0)
// === شروط الإشارات مع منع التكرار خلال آخر 5 شموع ===
var int lastBuyBar = na
var int lastSellBar = na
canBuy = buyScore >= 5 and (na(lastBuyBar) or bar_index - lastBuyBar > 5)
canSell = sellScore >= 5 and (na(lastSellBar) or bar_index - lastSellBar > 5)
if canBuy
lastBuyBar := bar_index
if canSell
lastSellBar := bar_index
showBuy = canBuy
showSell = canSell
// === طول الخطوط ===
var int lineLen = 5
// === رسم الإشارات ===
plotshape(showBuy, title="BUY", location=location.belowbar, style=shape.triangleup, size=size.small, color=color.green)
plotshape(showSell, title="SELL", location=location.abovebar, style=shape.triangledown, size=size.small, color=color.red)
// === خطوط الصفقة ===
var line buyLines = array.new_line(0)
var line sellLines = array.new_line(0)
if (showBuy)
entry = low
tpLevels = array.new_float(5)
array.set(tpLevels, 0, 0.618)
array.set(tpLevels, 1, 1.0)
array.set(tpLevels, 2, 1.272)
array.set(tpLevels, 3, 1.618)
array.set(tpLevels, 4, 2.0)
slLevel = -0.618
for i = 0 to 4
tp = entry + array.get(tpLevels, i) * atr
line = line.new(bar_index, tp, bar_index + lineLen, tp, color=color.green)
array.push(buyLines, line)
sl = entry + slLevel * atr
slLine = line.new(bar_index, sl, bar_index + lineLen, sl, color=color.red)
array.push(buyLines, slLine)
if (showSell)
entry = high
tpLevels = array.new_float(5)
array.set(tpLevels, 0, -0.618)
array.set(tpLevels, 1, -1.0)
array.set(tpLevels, 2, -1.272)
array.set(tpLevels, 3, -1.618)
array.set(tpLevels, 4, -2.0)
slLevel = 0.618
for i = 0 to 4
tp = entry + array.get(tpLevels, i) * atr
line = line.new(bar_index, tp, bar_index + lineLen, tp, color=color.green)
array.push(sellLines, line)
sl = entry + slLevel * atr
slLine = line.new(bar_index, sl, bar_index + lineLen, sl, color=color.red)
array.push(sellLines, slLine)
// === نسبة المخاطرة ===
label.new(bar_index, showBuy ? low : na, "Risk: 38.2%", style=label.style_label_left, textcolor=color.white, size=size.tiny, color=color.gray)
label.new(bar_index, showSell ? high : na, "Risk: 38.2%", style=label.style_label_left, textcolor=color.white, size=size.tiny, color=color.gray)
COT_OscillatorThe COT Ocsillator Indicator is a quantitative analysis tool that uses the positioning of so-called Commercials from the weekly Commitments of Traders (COT) report published by the CFTC. It is designed to detect extreme hedging behavior by institutional participants and translates it into a normalized scale from 0 to 100. The goal is to provide early indication of potential market reversals or overextensions.
What is the "Commercial Index"?
Commercials are market participants with a direct connection to the underlying asset – such as producers, processors, or large-scale users of commodities. They are often referred to as "Smart Money" due to their fundamental market insight and hedging purpose.
The Commercial Index measures where the current net position of Commercials (Long - Short) stands within a user-defined historical lookback window:
Index = 100: the most bullish net position in the selected period.
Index = 0: the most bearish net position.
How does the indicator work?
Data Source: The script uses the latest TradingView/LibraryCOT/4, which provides structured access to official COT data.
Calculation:
Weekly long and short positions of Commercials are requested based on the selected root symbol (e.g., "HG" for Copper).
Net position is calculated as: Net = Long - Short.
This value is normalized within the selected historical range (e.g., 150 weeks) between the highest and lowest net positions.
Result: A smooth oscillator ranging from 0 to 100 is plotted.
How to use the indicator?
Select your target future market (e.g., "GC" for Gold, "CL" for Crude Oil, "HG" for Copper).
Optionally adjust the three time windows to observe short-, mid-, and long-term sentiment (e.g., 125, 250, 500 weeks).
Watch for extreme readings:
Above 80–100: Commercials are heavily net long.
Below 20–0: Commercials are heavily net short.
These extremes are especially relevant when combined with price action, seasonality, or technical signals.
What makes this script unique?
Objective sentiment evaluation based on real institutional positioning.
Three timeframes shown in parallel for multi-horizon analysis.
No smoothing or distortion – raw positioning is visualized cleanly.
Useful in futures markets, where hedging behavior is a major driver.
Tips for Use:
Best viewed on weekly daily or charts (e.g., COMEX:HG1!, NYMEX:CL1!, CBOT:ZW1!).
Combine with technical setups or external sentiment tools for confirmation.
Can be used as a core building block in COT-based strategies or signal generation systems.
This indicator helps you track the footprints of Smart Money – and anticipate where the market might turn.
0DTE Expected Move Lines0DTE Expected Move Levels – Manual VIX Input
This indicator calculates and displays intraday expected move zones for SPX or other indices based on a manually entered VIX value. It helps intraday or 0DTE option traders visualize potential price ranges where price is statistically likely to stay.
What it does:
Uses VIX to estimate the daily expected move:
EM = Spot × (VIX / 100) × √(1 / 365)
Draws horizontal lines at:
±1× EM → suggested short strike range
±1.5× EM → more conservative range
Ideal for Iron Condors, Straddles, Butterflies, or short premium strategies
Features:
Clean visual markers using line.new() (no plot(), so works on all TradingView plans)
Manual VIX input for full flexibility
Lightweight and fast – updates with every bar
✅ Works best on SPX, SPY, ES, or MES charts.
SMC Structure Levels – BOS & CHoCH for XAUUSDThis is a custom-made TradingView indicator designed to visualize high-confidence market structure shifts based on Smart Money Concepts (SMC), focusing on Break of Structure (BOS) and Change of Character (CHoCH) points. The tool is optimized for XAUUSD but works across all major forex, crypto, and index markets.
It identifies key pivot points and filters them using both price distance and bar spacing, helping traders focus only on meaningful structural changes — not noisy signals. This makes it ideal for traders looking to track institutional-style price behavior with clarity.
🔑 Key Features:
Clean BOS & CHoCH Labels: The indicator plots “BOS” above candles when a structural break occurs in the trend direction, and “CHoCH” below candles when early signs of a reversal appear.
Spaced Signals: Only plots structure shifts that meet both time and price distance filters, preventing clutter and overplotting on the chart.
Swing-Based Logic: Built on pivot high/low analysis with adjustable sensitivity, ensuring flexible structure detection on any timeframe.
Fully Customizable: Modify:
Swing Sensitivity (number of bars before/after pivot)
Minimum bar spacing between BOS/CHoCH signals
Minimum price movement (in pips) between labels
Toggle BOS or CHoCH visibility individually
No Repainting: Once confirmed, signals remain fixed on the chart for historical review.
Zero Clutter: Unlike typical SMC tools that flood the chart, this indicator prioritizes clarity and signal quality.
🧠 What is BOS & CHoCH?
Break of Structure (BOS): Indicates continuation of the current market trend.
Change of Character (CHoCH): Suggests a potential early trend reversal or shift in momentum.
These tools are often used by Smart Money traders to mark significant turning points and trend confirmations.
⚙️ Use Cases:
Structural tracking in Smart Money Concepts (SMC)
Identifying trend continuation or early reversal
XAUUSD (Gold) swing and intraday analysis
Support for Order Blocks, Liquidity Grabs, and FVG confluence
Backtesting market structure break behavior
📌 Best Pairs:
XAUUSD (Gold)
Any asset where structure-based analysis is relevant
📎 Release Notes:
v1.0 – Initial release of BOS/CHoCH structure tool with spacing and pip-distance filtering for XAUUSD analysis.
⚠️ Disclaimer:
This indicator is built for educational and analytical purposes only. It does not constitute trading advice or guarantee profitable signals. Always use with a proper risk management strategy and confirm signals with additional confluence.
✅ This matches the exact quality and structure of the description you showed earlier.
Just copy this into your TradingView script page when publishing. If you'd like the next version with Order Blocks or FVG, say the word.
Sessions with Extended LinesClear Sessions with lines showing upper and lower.
This script can be used with multiple different stances.
The main ones being looking for ORB breakouts or liquidity sweeps
tiktok strat5 minute timeframe only!!!
first 15 minutes of market open is a range
trades breakouts on that range