Chart patterns
Breakout + Retest StrategyThe Breakout + Retest Strategy is a proven price action approach used by professional traders to catch high-probability market moves after key levels are broken. This strategy aims to enter the market after confirmation — reducing false breakouts and improving entry accuracy.
🔍 Strategy Logic:
Identify a Key Support or Resistance Level
These could be recent swing highs/lows, consolidation zones, or session highs.
Wait for a Clean Breakout
Price must decisively break above resistance or below support with strong momentum.
Watch for the Retest
After the breakout, wait for the price to pull back to the broken level (now flipped support/resistance).
Enter on Retest Confirmation
Look for signs like rejection wicks, bullish/bearish engulfing candles, or strong volume on the retest.
Set Risk-Managed Stops and Targets
Stop loss goes below (for long) or above (for short) the retested level.
Target is usually set at a 1:2 or higher risk-to-reward ratio, or based on structure.
✅ Why It Works:
Filters out fake breakouts
Uses market structure and liquidity traps to your advantage
Combines both momentum and confirmation
⚙️ Best Timeframes:
15-minute to 1-hour for intraday setups
4-hour and daily for swing trades
📊 Ideal for:
Futures (NQ, ES, Gold)
Forex pairs
Crypto
Stocks near key earnings or breakout zones
Divergence Indicator with Multi-Length Pivot DetectionThis Pine Script, titled “Divergence Indicator with Multi-Length Pivot Detection”, tool that detects both regular and hidden divergences between price action and an oscillator (defaulting to close, but configurable). It features multi-length pivot logic, angle-based validation, no-cross filtering, and OB/OS region filtering, making it a robust and precise divergence engine. Below is a detailed breakdown:
⸻
🔧 Inputs and Configuration
• osc_src: Oscillator source (e.g. close, RSI, MACD).
• show_hidden: Toggles detection of hidden divergences.
• min_*_angle settings: Control the minimum angle thresholds (in degrees) for confirming valid divergences (ensures momentum is strong enough).
• validate_no_cross: Ensures oscillator and price slopes don’t “cross” the actual values (i.e. filters out invalid or messy trends).
• oversold_level, overbought_level: Used when use_ob_os_filter is enabled to require oscillator to be in OS/OB zones for regular divergence.
• min_div_length: Minimum distance in bars between previous and current pivot points.
⸻
🔁 Internal Engine Mechanics
1. Pivot Detection Engine (Phase 1: Historical Memory)
• For all combinations of left1 and right1 in the range :
• Records all valid pivot lows and pivot highs.
• Stores their:
• bar index
• price value
• oscillator value
This forms a “memory buffer” of past pivots that future price pivots are compared against.
2. Current Pivot Detection (Phase 2: Scanning)
• Loops through larger pivot configurations (left2 ∈ , right2 = 1) to detect new current pivots.
• For each new pivot, it compares against the historical pivots from phase 1.
⸻
📐 Slope and Angle Calculation
For each matching pivot pair (historical vs current):
• Price and Oscillator Slopes are calculated via linear regression, producing:
• price_angle
• osc_angle
• These are converted using math.atan() and math.todegrees() to get proper angular direction and intensity of trend.
⸻
🧠 Divergence Logic
✅ Bullish Divergence
• Regular Bullish: Price makes a lower low, oscillator makes a higher low.
• Hidden Bullish: Price makes a higher low, oscillator makes a lower low.
• Conditions:
• Must meet minimum angle thresholds.
• Optional: Must be in oversold region (osc_src < oversold_level).
• If validate_no_cross is enabled, linearly interpolated slope must not be violated.
✅ Bearish Divergence
• Regular Bearish: Price makes a higher high, oscillator makes a lower high.
• Hidden Bearish: Price makes a lower high, oscillator makes a higher high.
• Conditions mirror the bullish case (with polarity reversed).
⸻
🖍️ Visualization
• Draws colored lines between pivots for visual clarity:
• Green: Regular Bullish
• Lime: Hidden Bullish
• Red: Regular Bearish
• Maroon: Hidden Bearish
• Uses plotshape() to mark divergence bars:
• Triangle-up for bullish
• Triangle-down for bearish
The lines and shapes help quickly identify divergence zones with strong momentum structure.
⸻
🧪 Filtering Enhancements
• No Cross Slope Filter: Checks that oscillator and price values stay above/below their respective slope lines throughout the interval.
• OB/OS Filter: Restricts divergence signals to occur only in oversold/overbought conditions for regular divergences.
• Signal Thinning: Keeps line count to 100 using array.shift() and line.delete().
⸻
🧬 Design Philosophy
• Built to mimic institutional-grade divergence detection, avoiding common false positives.
• Uses adaptive pivots, rigorous angle validation, and noise filtering.
Crypto Weighted 60 Day Return Index60 Day Return of Crypto Index (Volatility Adjusted) weightings based on Holdings
BTC
ETH
SOL
AAVE
XRP
Futures Trade Entry Indicator (MTF)Work in Progress with the help of Claude. Not ready for active trading. Public for help improving. This will be a multi-timeframe futures trading indicator with supply/demand zones, Fair Value Gaps (FVGs), and sophisticated entry/exit logic.I've created a comprehensive Pine Script v6 indicator that matches all your specifications! Here's what the script includes:
## **Key Features Implemented:**
### **🔄 Multi-Timeframe Logic**
- **1H Chart Data**: Detects Supply Zones, Demand Zones, and Fair Value Gaps
- **Current Timeframe**: Monitors for re-entry and confirmation signals
### **📊 Zone Detection**
- **Supply Zones**: Identified using pivot highs with configurable strength
- **Demand Zones**: Identified using pivot lows with touch validation
- **Fair Value Gaps**: Both bullish and bearish FVGs detected automatically
- **Auto-Expiry**: Zones expire after 24 hours (configurable)
### **⚡ Entry Logic**
- **Dual Confirmation Required**:
- ✅ Engulfing candle pattern (bullish/bearish)
- ✅ Market structure shift (HH→LL or LL→HH)
- **Zone Re-entry**: Price must be within identified zones/FVGs
### **🎯 Probability System**
- **Smart Scoring**: Based on zone age, strength, and risk/reward ratio
- **Color-Coded**: Green (High), Yellow (Medium), Red (Low)
- **Real-time Calculation**: Updates with each potential entry
### **🎨 Visual Elements**
- **Colored Zones**: Supply (red), Demand (green), FVGs (blue/orange)
- **Entry Labels**: 🟩 LONG / 🟥 SHORT markers
- **Probability Labels**: Display confidence levels
- **Confirmation Shapes**: Triangle indicators for pattern completion
### **⚙️ Manual Controls**
All the requested toggles are available in the settings panel:
- Show/Hide Supply Zones
- Show/Hide Demand Zones
- Show/Hide FVGs
- Show/Hide Labels
- Show/Hide Probability
- Zone strength and expiry settings
- Custom colors for all elements
### **🔔 Alert System**
- Entry opportunity alerts
- Includes probability assessment
- Ticker symbol identification
## **Usage Instructions:**
1. **Apply to 15m chart** for active trading signals
2. **Configure settings** based on your preferences
3. **Set up alerts** for automated notifications
4. **Monitor probability levels** for trade quality assessment
The script automatically handles the complex multi-timeframe analysis while keeping the interface clean and user-friendly. All zones update dynamically and expire appropriately to avoid clutter.
Would you like me to adjust any specific parameters or add additional features?
IFVG ExtendedThis indicator identifies and visualizes "Imbalance Fair Value Gaps" (IFVGs) on a price chart. It highlights these gaps, tracks their evolution, and signals when they are "filled" or "invalidated" by price action. The script is quite advanced, using custom types, arrays, and dynamic drawing.
1. Types and Variables
Custom Types:
lab: Stores label information (x, y, direction).
fvg: Stores Fair Value Gap data, including its boundaries, direction, state, labels, and other properties.
Arrays:
Four arrays track bullish and bearish FVGs, and their "invalidated" (filled) versions.
Signals:
Boolean variables to store if a bullish or bearish signal is triggered.
2. User Inputs and Parameters
Display Settings:
How many recent FVGs to show, signal preference (close or wick), ATR multiplier for gap size filtering, and colors for bullish/bearish/midline.
3. Chart Data
Price Data:
Open, high, low, close, and ATR (Average True Range) are stored for use in calculations.
4. Functions
label_maker:
Draws an up or down arrow label at a given point, colored for bullish or bearish.
fvg_manage:
Checks if any FVGs in the array have been "invalidated" (i.e., price has crossed their boundary). If so, moves them to the invalidated array.
inv_manage:
Manages invalidated FVGs, checking if a signal should be fired (i.e., price has reacted to the gap). Also removes old FVGs.
send_it:
Draws the FVGs and their labels on the chart, using boxes and lines for visualization.
5. Main Logic and Visualization
FVG Detection:
On each bar, checks for new bullish or bearish FVGs based on price action and ATR filter.
Adds new FVGs to the appropriate array.
FVG Management:
Updates the arrays, moves invalidated FVGs, and checks for signals.
Drawing:
On the last bar, clears all previous drawings and redraws the current FVGs and their labels.
6. Alerts
Alert Conditions:
Sets up alerts for when a bullish or bearish IFVG signal is triggered, so users can be notified.
Summary
In short:
This script automatically finds and tracks "Imbalance Fair Value Gaps" on your chart, highlights them, and alerts you when price interacts with them in a significant way. It uses advanced Pine Script features to manage and visualize these zones dynamically, helping traders spot potential reversal or continuation points based on gap theory
FVG + Liquidity Sweepsthis is a test and i don't know if it is gonna actually work but let me know if it does.
Twin Range Filter – Buy/Sell SignalsThe Twin Range Filter is a trend-following indicator that combines two adaptive volatility filters to identify potential market reversals and trend continuations. It uses two configurable smoothing periods (fast and slow) to calculate a dynamic range around price, filtering out market noise and highlighting meaningful shifts in direction.
This indicator plots BUY and SELL signals based on price action in relation to the range filter, as well as internal trend conditions.
✅ How It Works:
Long Signal (BUY) is triggered when:
Price is above the filtered range (showing strength), and
Short-term upward momentum is confirmed.
Short Signal (SELL) is triggered when:
Price is below the filtered range (showing weakness), and
Short-term downward momentum is confirmed.
The signals are highlighted using green "Long" and red "Short" labels on the chart.
Background colors reinforce the current directional bias.
🔔 Alerts:
Long Signal – A new BUY condition has been detected.
Short Signal – A new SELL condition has been detected.
📌 Use Cases:
Entry timing for swing or intraday trades
Trend confirmation filter
Signal generator in automated strategies (when paired with a strategy script)
DAX Inducere Simplă v1.3 – Confirmare InducereDAX Inducere Simplă v1.3 – Confirmare Inducere ,signals before fvg mss and displacement
Elliott Wave Probability System Pro v2🎯 Major Improvements Made to Elliott Wave Script
Key Changes:
1. Advanced Trend Detection (Lines 55-82)
Uses 5 different methods to determine trend over last 75 bars:
Price position in range
Linear regression slope
Moving average alignment
Higher highs/lows pattern
Up vs down bar count
Combines all methods into a trendScore for accurate direction
2. Adaptive Target Direction
New input: adaptiveTargets (line 28) - can toggle on/off
When ON: Targets follow the 75-bar trend regardless of short-term indicators
When OFF: Works like original (based on current momentum)
3. Improved Target Calculation
Bullish targets use extensions from current price to recent high
Bearish targets use retracements from current price to recent low
More realistic price levels based on actual market structure
4. Enhanced Status Display
Added "Trend (75 bars)" row showing BULLISH/BEARISH/NEUTRAL
Helps you see why targets are pointing a certain direction
5. Better Probability Calculation
Base probability adjusts with trend strength (70% if strong trend, 50% if not)
Gradual probability decay with distance
Minimum 15% probability (more realistic than 10%)
New Features:
Trend-Based Alerts
Alerts when 75-bar trend changes from bullish to bearish (or vice versa)
Trend Weight in Scoring
Added trendWeight to the total score calculation
Makes signals more aligned with larger trend
Visual Improvements
Projection lines now show at 40% probability (was 50%)
Better visibility of likely targets
How It Works Now:
If last 75 bars show a downtrend , targets will be bearish (even if RSI is oversold)
If last 75 bars show an uptrend , targets will be bullish (even if RSI is overbought)
The probability adjusts based on trend strength
This solves the issue where the script was showing bullish targets in a clear downtrend. Now it properly reflects the dominant trend direction while still considering short-term indicators for probability calculations.
Multi-Timeframe TrendBelow is a PineScript that calculates the trend for multiple timeframes (5 minutes, 15 minutes, 1 hour, 4 hours, and daily) using the Relative Strength Index (RSI) and Moving Averages (MA) to determine bullish, bearish, or neutral trends. The script displays the trend information on the TradingView chart using a table.
Gaussian Volatility Adjusted Gaussian Volatility Adjusted Indicator
The Gaussian Volatility Adjusted indicator is a powerful tool designed to identify trend direction and momentum by combining a Gaussian-filtered moving average with volatility-based thresholds. By smoothing price data with a Gaussian filter and adjusting for market volatility using Average True Range (ATR) and Standard Deviation (SD), this indicator generates clear bullish and bearish signals. The Exponential Moving Average (EMA) of the momentum difference and price bars are dynamically colored to highlight trend strength, making it easier for traders to identify potential entry and exit points in various market conditions.
How It Works
Gaussian Filter Calculations
Gaussian Filter: Applies a Gaussian smoothing filter to a user-defined price source, typically an EMA of the closing price, over a configurable length (default: 70) with a specified sigma (default: 12). The Gaussian filter uses a weighted sum based on a Gaussian distribution to reduce noise while preserving significant price trends. Weights are calculated using the Gaussian formula and normalized to ensure accurate smoothing.
Base Moving Average: Optionally applies an EMA (default: enabled, length: 45) to the closing price before Gaussian filtering, providing a smoother input for the Gaussian calculation to enhance signal reliability.
Volatility Adjustments
ATR-Based Bands: Calculates the Average True Range (ATR) over a user-defined period (default: 24), scaled by a sensitivity factor (default: 1) and an ATR factor (default: 0.85). These form volatility-adjusted bands around the Gaussian-filtered value:
Upper Band: Gaussian value + (ATR × ATR Factor).
Lower Band: Gaussian value - (ATR × ATR Factor).
Standard Deviation Bands: Computes the Standard Deviation (SD) of the closing price over a user-defined period (default: 27), scaled by the sensitivity factor. These form additional bands:
Upper SD Band: Gaussian value + SD.
Lower SD Band: Gaussian value - SD.
Trend and Momentum SignalsTrend
Detection:Bullish Trend: Triggered when the closing price exceeds the upper SD band, setting the trend to +1.
Bearish Trend: Triggered when the closing price falls below the upper ATR-based band, setting the trend to -1.
Momentum Calculation: Computes a momentum difference (Diff) based on the trend:
For a bullish trend (+1), Diff = Close - Upper ATR Band.
For a bearish trend (-1), Diff = Close - (Gaussian + SD).
EMA of Momentum: Applies an EMA (default length: 45) to the momentum difference to smooth the momentum signal.
Final Trend with EMA Confluences:
If EMA confluence is enabled (default: true), a bullish signal (+1) is confirmed when the trend is +1 and Diff exceeds the EMA of Diff. A bearish signal (-1) is confirmed when the trend is -1 and Diff is below the EMA of Diff.
If EMA confluence is disabled, the final trend follows the initial trend direction (±1).
Visual Representation
The indicator provides a clear and intuitive visual interface:
EMA Line: Plots the EMA of the momentum difference, colored based on the final trend:
Green: Bullish trend (Final_Trend = +1).
Red: Bearish trend (Final_Trend = -1).
Gray: Neutral or no trend.
Zero Line: A dashed line at zero (semi-transparent) serves as a reference for the EMA plot.
Bar Coloring: Price bars are colored to reflect the trend:
Green: Bullish trend (Final_Trend = +1).
Red: Bearish trend (Final_Trend = -1).
No Color: Neutral or no trend.
Volatility Bands: While not plotted in the provided script, the ATR and SD bands are calculated and could be plotted for additional context, marking key levels for trend detection.
Customization & Parameters
The Gaussian Volatility Adjusted indicator offers flexible parameters to suit various trading styles:
Volatility Parameters:
ATR Length: Period for ATR calculation (default: 24).
ATR Factor: Multiplier for ATR-based bands (default: 0.85).
SD Length: Period for Standard Deviation calculation (default: 27).
Sensitivity: Scales ATR and SD for band sensitivity (default: 1).
Moving Average Parameters:
Use EMA Confluence: Enable/disable EMA confluence for trend confirmation (default: true).
EMA Length: Period for EMA calculations (default: 45).
Gaussian Parameter:
Gaussian Length: Period for Gaussian filter (default: 70).
Sigma: Controls the Gaussian filter’s smoothness (default: 12).
Color Settings: EMA line and bars use green for bullish signals, red for bearish signals, and gray for neutral states, with customizable transparency for the zero line.
Trading Applications
This indicator is versatile and can be applied across various markets and strategies:
Trend Following:
Use the final trend signals and bar coloring to identify and follow bullish or bearish trends, with the Gaussian filter reducing noise for clearer trend detection.
Momentum Trading: The EMA of the momentum difference highlights strong momentum shifts, ideal for entering or exiting trades based on trend strength.
Reversal Detection: Monitor price crossings of the ATR and SD bands to identify potential trend reversals, especially when confirmed by the EMA confluence.
Scalping and Swing Trading: Adjust parameters (e.g., ATR length, Gaussian length, or sensitivity) to suit short-term scalping or longer-term swing trading strategies.
Final Note
The Gaussian Volatility Adjusted indicator is a robust tool for traders seeking to leverage smoothed price data and volatility-adjusted thresholds for trend and momentum analysis. Its combination of Gaussian filtering, ATR and SD-based bands, and EMA confluence provides a comprehensive framework for identifying trading opportunities. The dynamic coloring of the EMA line and price bars enhances visual clarity, making it easier to act on signals. As with all indicators, backtest thoroughly and integrate into a comprehensive trading strategy for optimal results.
Trend Magic Real-Time Cross for TradersPostTrend Magic Real-Time Cross for TradersPost. IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
Kalman VWMA For LoopKalman VWMA For Loop Indicator
The Kalman VWMA For Loop indicator is a sophisticated tool designed to smooth price data using a Kalman filter applied to a Volume Weighted Moving Average (VWMA). By combining the VWMA’s volume-weighted price sensitivity with the adaptive noise reduction of a Kalman filter, this indicator provides traders with a robust momentum and trend-following signal. The indicator includes a customizable for-loop mechanism to potentially iterate over a range of calculations or parameters, enhancing flexibility for advanced trading strategies. Visual outputs are plotted to help traders identify trends and potential trading opportunities with reduced noise.
How It Works
VWMA Calculations
Volume Weighted Moving Average (VWMA): Computes a VWMA based on a user-selected price source (default: Close) over a configurable period (default: 14). The VWMA weights price data by trading volume, providing a more accurate representation of market activity compared to a simple moving average.
Kalman Filter Calculation
Kalman Filter: Applies a Kalman filter to the price source to smooth price movements and reduce noise.
The filter uses:
Process Noise: Controls the adaptability of the filter to price changes (default: 0.01).
Measurement Noise: Adjusts sensitivity to price fluctuations (default: 3).
Filter Order (N): Defines the number of states in the Kalman filter (default: 3), allowing for multi-state modeling of price dynamics.
The Kalman filter iteratively predicts and updates the price estimate using state estimates and error covariances stored in arrays. This process minimizes noise while preserving significant price trends.
For-Loop Mechanism
The script includes a for-loop structure with user-defined parameters (from and to_, defaulting to 1 and 25, respectively). While the provided code does not fully implement the for-loop’s functionality, it is intended to allow iterative calculations or parameter sweeps, such as testing multiple periods or thresholds within the specified range. This feature enhances the indicator’s flexibility for optimization or multi-scenario analysis.
Visual Representations
The indicator plots the VWMA as a red line on the chart, providing a clear visual reference for the volume-weighted trend.
The Kalman-filtered price is calculated but not plotted in the provided code. When plotted, it would appear as a smoothed price line, highlighting the underlying trend with reduced noise.
The for-loop parameters suggest potential for additional visual outputs (e.g., multiple VWMA lines or signals) if fully implemented, but the current script only plots the VWMA.
Customization & Parameters
The Kalman VWMA For Loop indicator offers flexible parameters to suit various trading styles:
Moving Average Parameters:
Price Source: Select the input price (default: Close; options: Close, High, Low, Open).
MA Period: Adjust the VWMA calculation period (default: 14).
Kalman Parameters:
Process Noise: Adjusts the filter’s adaptability to price changes (default: 0.01).
Measurement Noise: Controls sensitivity to price fluctuations (default: 3).
Filter Order (N): Sets the number of states for the Kalman filter (default: 3).
For-Loop Parameters:
From: Starting value for the for-loop (default: 1).
To: Ending value for the for-loop (default: 25).
Color Settings: The VWMA is plotted in red, with potential for additional customizable colors if the for-loop is expanded to plot multiple outputs.
Trading Applications
This indicator is versatile and can be applied across various markets and strategies:
Trend Following:
Use the Kalman-filtered price and VWMA to identify the direction and strength of trends, with the smoothed output reducing false signals in volatile markets.
Momentum Trading: The VWMA highlights volume-driven price movements, allowing traders to enter or exit based on momentum shifts.
Parameter Optimization: The for-loop structure (if fully implemented) enables testing multiple VWMA periods or Kalman parameters, aiding in strategy optimization.
Scalping and Swing Trading: Adjust the MA period and Kalman parameters to suit short-term (scalping) or longer-term (swing trading) strategies.
Final Note
The Kalman VWMA For Loop indicator is a powerful tool for traders seeking to combine volume-weighted price analysis with advanced noise reduction via a Kalman filter. Its customizable parameters and potential for iterative calculations through the for-loop make it adaptable to various trading styles. While the for-loop functionality is not fully implemented in the provided code, completing it could enable dynamic parameter testing or signal generation. As with all indicators, backtest thoroughly and integrate into a comprehensive trading strategy for optimal results.
Ashish indicator//@version=5
// Copyright (c) 2021-present, Alex Orekhov (everget)
indicator('Ashish indicator', overlay=true)
amplitude = input(title='Amplitude', defval=1)
channelDeviation = input(title='Channel Deviation', defval=2)
showArrows = input(title='Show Arrows', defval=true)
showChannels = input(title='Show Channels', defval=false)
var int trend = 0
var int nextTrend = 0
var float maxLowPrice = nz(low , low)
var float minHighPrice = nz(high , high)
var float up = 0.0
var float down = 0.0
float atrHigh = 0.0
float atrLow = 0.0
float arrowUp = na
float arrowDown = na
atr2 = ta.atr(100) / 2
dev = channelDeviation * atr2
highPrice = high
lowPrice = low
highma = ta.sma(high, amplitude)
lowma = ta.sma(low, amplitude)
if nextTrend == 1
maxLowPrice := math.max(lowPrice, maxLowPrice)
if highma < maxLowPrice and close < nz(low , low)
trend := 1
nextTrend := 0
minHighPrice := highPrice
minHighPrice
else
minHighPrice := math.min(highPrice, minHighPrice)
if lowma > minHighPrice and close > nz(high , high)
trend := 0
nextTrend := 1
maxLowPrice := lowPrice
maxLowPrice
if trend == 0
if not na(trend ) and trend != 0
up := na(down ) ? down : down
arrowUp := up - atr2
arrowUp
else
up := na(up ) ? maxLowPrice : math.max(maxLowPrice, up )
up
atrHigh := up + dev
atrLow := up - dev
atrLow
else
if not na(trend ) and trend != 1
down := na(up ) ? up : up
arrowDown := down + atr2
arrowDown
else
down := na(down ) ? minHighPrice : math.min(minHighPrice, down )
down
atrHigh := down + dev
atrLow := down - dev
atrLow
ht = trend == 0 ? up : down
var color buyColor = color.purple
var color sellColor = color.red
htColor = trend == 0 ? buyColor : sellColor
htPlot = plot(ht, title='Ashish indicator', linewidth=2, color=htColor)
atrHighPlot = plot(showChannels ? atrHigh : na, title='ATR High', style=plot.style_circles, color=sellColor)
atrLowPlot = plot(showChannels ? atrLow : na, title='ATR Low', style=plot.style_circles, color=buyColor)
fill(htPlot, atrHighPlot, title='ATR High Ribbon', color=sellColor, transp=90)
fill(htPlot, atrLowPlot, title='ATR Low Ribbon', color=buyColor, transp=90)
buySignal = not na(arrowUp) and trend == 0 and trend == 1
sellSignal = not na(arrowDown) and trend == 1 and trend == 0
plotshape(showArrows and buySignal ? atrLow : na, title='Arrow Up', style=shape.triangleup, location=location.belowbar, size=size.tiny, color=buyColor)
plotshape(showArrows and sellSignal ? atrHigh : na, title='Arrow Down', style=shape.triangledown, location=location.abovebar, size=size.tiny, color=sellColor)
alertcondition(buySignal, title='Alert: Ashish indicator Buy', message='Ashish indicator Buy')
alertcondition(sellSignal, title='Alert: Ashish indicator Sell', message='Ashish indicator Sell')
CE XAU/USDT Strategy📌 Auto-Trading Strategy Using CE on XAU/USDT (5M)
Indicator: CE
Parameters:
• ATR Period: 1
• ATR Multiplier: 1.85
Timeframe: 5 minutes
Instrument: Gold (XAU/USD)
🔁 Logic:
• Buy signal → Close short, open long
• Sell signal → Close long, open short
⚙️ Automation:
1. CE indicator on TradingView generates signals
2. Signals are sent via webhook to a Python bot
3. The bot opens/closes trades in MT5 accordingly
✅ Advantages:
• Full automation
• Operates 24/7 without manual intervention
⚠️ Important:
• Always test on a demo account
• Manage risk and position size properly
📌 Стратегия автоторговли по CE на XAU/USDT (5М)
Индикатор: CE
Параметры:
• ATR Period: 1
• ATR Множитель: 1.85
Таймфрейм: 5 минут
Инструмент: Золото (XAU/USD)
🔁 Логика:
• Buy сигнал → закрыть шорт, открыть лонг
• Sell сигнал → закрыть лонг, открыть шорт
⚙️ Автоматизация:
1. CE в TradingView генерирует сигналы
2. Webhook отправляет их в Python-бот
3. Бот открывает/закрывает сделки в MT5
✅ Плюсы:
• Полная автоматизация
• Работа 24/7 без вмешательства
⚠️ Важно:
• Тестируй на демо
• Управляй рисками и лотами
Volume vs Volatility Trend Signal1 is increasing volume decreasing volatility -1 is decreasing volume increasing volatility 0 is neither
Breakout + Volume Filter//@version=5
indicator("Breakout + Volume Filter", overlay=true)
length = input.int(20)
volMultiplier = input.float(1.5)
highestHigh = ta.highest(high, length)
breakout = close > highestHigh
avgVol = ta.sma(volume, length)
validBreakout = breakout and volume > avgVol * volMultiplier
plotshape(validBreakout, title="Breakout Up", location=location.abovebar, color=color.green, style=shape.triangleup)
alertcondition(validBreakout, title="Breakout Detected", message="פריצה עם נפח גבוה!")
Scalping Indicator v6This Script Show You Recent Scalping Trades u can get instantly we have use the knowledge we gain across the time we might be right or wrong do your own research and use this indicator on ur own risk
Corys Buy and SellThe Cory’s Buy and Sell indicator is an advanced, all-in-one trading toolkit that combines dynamic trend detection, volatility breakout alerts, and visual EMA strength to help traders confidently identify high-probability buy and sell opportunities.
🔍 Key Features:
Adaptive Supertrend Engine
Powered by a modified Keltner Channel, this trend-following algorithm generates timely BUY 🚀 and SELL 😡 signals based on market momentum and volatility, with adjustable sensitivity and factor settings for full control.
EMA Energy Bands (Optional)
A cascade of 15 EMAs (from 9 to 51 periods) visually maps market energy. Colours shift from green (bullish) to red (bearish), showing short- to medium-term trend strength at a glance.
Trend Catcher Overlay
Highlights major shifts in trend using a fast/slow EMA crossover (10 vs 20 EMA). Bars are coloured to reflect bullish reversals for added confidence.
Pullback Signal Detection
Identifies bullish pullback opportunities when price reclaims key EMA levels after a crossover, marked with a green triangle for entry timing.
Built-in Range Detection System
Automatically highlights price consolidation zones using ATR-based logic. When price breaks above or below the detected range, the zone changes colour (green for breakout up, red for breakdown), helping traders spot breakout opportunities.
Smart Labels & Alerts
Instant BUY/SELL labels on the chart and built-in alert conditions make this indicator suitable for both discretionary and automated trading strategies.
⚙️ Customisable Inputs:
Sensitivity (for trend signals)
EMA Energy toggle
Keltner & ATR Lengths
Range Detection parameters and styling
Best For: Trend traders, breakout traders, and swing traders looking for a clean, powerful overlay that combines momentum, structure, and volatility in one tool.
Ultra Algo//@version=5
indicator("ترند + دعم", overlay=true)
length = input.int(20, title="عدد الشموع للتحليل")
lookback = input.int(50, title="عدد الشموع للترند")
// حساب أعلى وأدنى سعر لخط الدعم
lowestLow = ta.lowest(low, length)
// إيجاد قاعين (لرسم ترند صاعد) أو قمتين (لرسم ترند هابط)
var float trendLineStart = na
var float trendLineEnd = na
var int trendStartBar = na
var int trendEndBar = na
// ترند صاعد: نبحث عن قاعين
for i = 1 to lookback
if low < low and low < low
if na(trendLineStart)
trendLineStart := low
trendStartBar := bar_index
else
trendLineEnd := low
trendEndBar := bar_index
break
// ترند هابط: نبحث عن قمتين
var float downTrendStart = na
var float downTrendEnd = na
var int downStartBar = na
var int downEndBar = na
for i = 1 to lookback
if high > high and high > high
if na(downTrendStart)
downTrendStart := high
downStartBar := bar_index
else
downTrendEnd := high
downEndBar := bar_index
break
// رسم خط الترند الصاعد
if not na(trendLineStart) and not na(trendLineEnd)
line.new(x1=trendStartBar, y1=trendLineStart, x2=trendEndBar, y2=trendLineEnd, color=color.green, width=2, extend=extend.right)
// رسم خط الترند الهابط
if not na(downTrendStart) and not na(downTrendEnd)
line.new(x1=downStartBar, y1=downTrendStart, x2=downEndBar, y2=downTrendEnd, color=color.red, width=2, extend=extend.right)
// دعم
plot(lowestLow, title="خط الدعم", color=color.blue, linewidth=2)
PHL Sweep Signals(1 Hour)PHL Sweep Signals (Full History)
This indicator is designed to identify high-probability reversal setups by detecting liquidity sweeps of the previous standard hour's high and low (PHL). It provides clear, actionable signals complete with visual aids and a data table to keep you in tune with the higher-timeframe context.
Key Features
Previous Hour Levels: Automatically draws the high and low of the previous standard hour as key reference lines for the current trading hour. The line colors rotate to provide a clear visual separation.
Bearish Sweep Signal: Identifies a specific bearish pattern: a green (bullish) candle that wicks above the previous hour's high but fails to hold, with its body remaining entirely below the line.
Bullish Sweep Signal: Identifies the opposite bullish pattern: a red (bearish) candle that wicks below the previous hour's low but is absorbed, with its body remaining entirely above the line.
Clear Visual Signals: When a signal is confirmed, the indicator provides a multi-faceted alert:
Plots a "Buy" or "Sell" arrow on the chart.
Draws a colored box around the signal candle for easy identification.
Displays a label with the potential Stop Loss size (calculated from the size of the signal candle).
Informative Display Table: Includes a convenient table in the corner showing the Open and Close data for the last 3 hours, helping you stay aware of the broader market context without leaving your chart.
Built-in Alerts: Triggers an alert for every confirmed Buy and Sell signal so you never miss a potential setup.
How to Use
This indicator helps you spot potential exhaustion and reversals at key hourly levels.
A "Sell" signal suggests a failed breakout to the upside, indicating potential weakness and a possible entry for shorts.
A "Buy" signal suggests a failed breakdown to the downside, indicating potential strength and a possible entry for longs.
As with any tool, these signals are most powerful when used as part of a comprehensive trading strategy and combined with your own analysis for confirmation.
Optimal Settings:
Timeframe: 5-Minute
Time Zone: UTC-4 (New York Time)
-ratheeshinv