Double Bottom Strategy (Long Only, ATR Trailing Stop + Alerts)Updated chart script:
This script implements a long-only breakout strategy based on the recognition of a Double Bottom price pattern, enhanced with a 50 EMA trend filter and a dynamic ATR-based trailing stop. It is suitable for traders looking to capture reversals in trending markets using a structured pattern-based entry system.
🧠 Key Features:
Double Bottom Detection: Identifies double bottom structures using pivot lows with configurable tolerance.
ATR-Based Trailing Stop: Manages exits using a trailing stop calculated from Average True Range (ATR), dynamically adjusting to market volatility.
EMA Filter (Optional): Filters trades to only go long when price is above the 50 EMA (trend confirmation).
Alerts: Real-time alerts on entry and exit, formatted in JSON for webhook compatibility.
Backtest Range Controls: Customize historical testing period with start and end dates.
✅ Recommended Markets:
Gold (XAUUSD)
S&P 500 (SPX, ES)
Nasdaq (NDX, NQ)
Stocks (Equities)
⚠️ Not recommended for Forex due to differing behavior and noise levels in currency markets.
🛠️ User Guidance:
Tune the pivot period, tolerance, and ATR settings for best performance on your chosen asset.
Backtest thoroughly over your selected date range to assess historical effectiveness.
Use small position sizes initially to test viability in live or simulated environments.
Candlestick analysis
Consecutive Candle Box with Horizontal LinesWhen one or more candles are formed in a row, a box is formed. And when the top or bottom of the box is passed and a reversal candle is formed, the box is erased. If you use this box to make long and short trades, you can enter and take profit with a very high probability. This box can be very useful in finding an pivot point at the bottom or the bottom. I hope it will be of great help to you in short-term trading.
Check OAS of EMAsThis script checks the Optimal Alignment and Slope of the EMA's and prints a label if it finds one.
🔍 1. Optimal Alignment
This refers to the order of EMAs on the chart, which should reflect the trend.
In an uptrend, the alignment might be:
10 EMA above 20 EMA above 50 EMA
In a downtrend:
10 EMA below 20 EMA below 50 EMA
This "stacked" alignment confirms trend strength and direction.
📈 2. Slope
The angle or slope of the EMAs shows momentum.
A steep upward slope = strong bullish momentum.
A steep downward slope = strong bearish momentum.
Flat or sideways slope = weak or no trend (ranging market).
Gold Mini Strategy: EMA | RSI | MACD | VWAP | BB | PAGood Script to view all the important indicator into one
Gann Support and Resistance LevelsThis indicator plots dynamic Gann Degree Levels as potential support and resistance zones around the current market price. You can fully customize the Gann degree step (e.g., 45°, 30°, 90°), the number of levels above and below the price, and the price movement per degree to fine-tune the levels to your strategy.
Key Features:
✅ Dynamic levels update automatically with the live price
✅ Adjustable degree intervals (Gann steps)
✅ User control over how many levels to display above and below
✅ Fully customizable label size, label color, and text color for mobile-friendly visibility
✅ Clean visual design for easy chart analysis
How to Use:
Gann levels can act as potential support and resistance zones.
Watch for price reactions at major degrees like 0°, 90°, 180°, and 270°.
Can be combined with other technical tools like price action, trendlines, or Gann fans for deeper analysis.
📌 This tool is perfect for traders using Gann theory, grid-based strategies, or those looking to enhance their visual trading setups with structured levels.
RSI OS/OB Background StripesA simple indicator to provide the user with background stripes on the candle chart showing RSI Oversold and Overbought Levels.
Refined Order Block StrategyThis strategy combines Order Blocks and Fair Value Gaps (FVG) to identify potential high-probability trading opportunities. It is designed for trend-following traders and uses the EMA 200 as a trend filter to ensure trades are aligned with the overall market direction.
The strategy provides:
Entry Signals:
BUY: Triggered when the price breaks above a bullish order block during an uptrend.
SELL: Triggered when the price breaks below a bearish order block during a downtrend.
Exit Points:
Take Profit (TP): Based on a configurable Risk-Reward Ratio (e.g., 1:2).
Stop Loss (SL): Placed slightly above/below the order block to minimize risk.
Visual Highlights:
Order Blocks: Highlighted zones where institutional traders are likely active.
Fair Value Gaps (FVG): Marked areas of price inefficiency, often acting as targets.
DD_ORBORB STRATEGY OR OPEN RANGE BREAKOUT STRATEGY
The Opening Range Breakout (ORB) Strategy is a time-based intraday trading method where traders define a specific opening time window—usually the first 5, 15, or 30 minutes after market open to mark the high and low of that range.
A trade is triggered when price breaks out of this range:
📈 Buy when price breaks and closes above the opening range high
📉 Sell when price breaks and closes below the opening range low
This strategy works best on highly volatile instruments and is ideal for capturing early directional momentum. It’s commonly used by intraday traders to catch big moves that often occur after the market establishes its initial trend.
THIS INDICATOR PLOTS THE RANGE AUTOMATICALLY.
Ema-Wma-RsiRSI x EMA x WMA Crossover Signals — Clean Entry Points
This indicator combines RSI with EMA and WMA to generate Buy/Sell signals. A Buy signal appears when RSI crosses above both EMA and WMA after being below them. A Sell signal occurs when RSI crosses below both EMA and WMA after being above them. It helps filter out noise and confirm momentum.
+ Visual triangle markers for clarity
+ No repainting
+ Great for confirmation and trend filtering
Gap % Distribution Table (2% Bins)Description
This indicator displays a Gap % Distribution Table categorized in 2% bins ranging from `< -20%` to `> +20%`. It calculates the gap between today’s open and the previous day’s close, and groups occurrences into defined bins. The table includes:
Gap range, count, and percentage for each bin
A total row summarizing all entries
Customizable appearance including:
Font color, cell background fill (with transparency), and table border color
Column headers and full outer border
Date filtering using selectable start and end dates
Position control for placing the table on the chart area
Ideal for analyzing the historical behavior of opening gaps for any instrument.
Devils MarkThe Devil’s Mark Indicator identifies bullish or bearish candlesticks with no opposing wick, plotting a horizontal line at the open/low (bullish) or open/high (bearish) price to mark the inefficiency.
This line highlights the level where price is expected to retrace to form the missing wick, serving as a visual cue.
The line is automatically removed from the chart once price crosses it, confirming the inefficiency has been rebalanced.
对数通道选股器 - 5分15分绿色筛选🎯 Log Channel Multi-Timeframe Screener
A powerful screening tool that identifies stocks with bullish logarithmic regression channels across multiple timeframes. This indicator helps traders find high-quality opportunities by filtering stocks where both 5-minute and 15-minute log channels show upward trends.
🔍 KEY FEATURES:
• Multi-timeframe analysis (1m, 5m, 10m, 15m, 30m, 1D, 1W)
• Logarithmic regression channel calculation
• Real-time green/red channel status detection
• Built-in screening conditions for stock selection
• Visual table showing all timeframe statuses
📊 SCREENING CONDITIONS:
• "5min_green" = 1 (5-minute channel is bullish)
• "15min_green" = 1 (15-minute channel is bullish)
• "both_green" = 1 (Both 5m and 15m channels are bullish)
• "strict_qualified" = 1 (5m, 15m, and 30m all bullish)
• "very_strict" = 1 (All timeframes bullish)
🎨 VISUAL ELEMENTS:
• Color-coded status table (Green = Bullish, Red = Bearish)
• Signal labels when channels turn green
• Real-time status updates
⚡ HOW TO USE:
1. Add indicator to any chart
2. Use in TradingView Stock Screener
3. Set condition: "both_green = 1" for basic screening
4. Combine with volume and price filters for better results
🎯 BEST FOR:
• Swing trading setups
• Multi-timeframe trend confirmation
• Stock screening and watchlist building
• Trend following strategies
📈 ALGORITHM:
Based on logarithmic regression analysis where:
• Green Channel: end > start (upward trend)
• Red Channel: end ≤ start (downward trend)
Perfect for traders who want to identify stocks with aligned bullish momentum across multiple timeframes.
#StockScreener #LogarithmicRegression #MultiTimeframe #TrendAnalysis #SwingTrading
Support & Resistance with BreakoutAbsolutely! Below is a TradingView Pine Script v5 indicator that:
✅ Automatically identifies Support and Resistance zones using swing highs/lows
✅ Detects breakouts above resistance (BUY) and below support (SELL)
✅ Gives visual signals (arrows + labels) on breakout candles
✅ Works on any timeframe (5m, 15m, 1H, 4H, etc.)
Swing S/R Entry Indicator (5m)Overview: This is a swing trading Indictor works using support & resistance and market trend, it is designed for all type of markets (crypto, forex, stock etc.) and works on all commonly used timeframes (preferably on 1H, 4H Candles).
How it works:
Core logic behind this indicator is to finding the Support and Resistance, we find the Lower High (LH) and Higher Low (HL) to find the from where the price reversed(bounced back) and also we use a custom logic for figuring out the peak price in the last few candles (based on the input "Strength" ). Based on the multiple previous Support and Resistance (HH, HL, LL LH) we calculate a price level, this price level is used a major a factor for entering the trade. Once we have the price level we check if the current price crosses that price level, if it crossed then we consider that as a long/short entry (based on whether it crosses resistance or support line that we calculated). Once we have pre long/short signals we further filter it based on the market trend to prevent too early/late signals, this trend is calculated based on the value from the input field "Factor". Along with this if we don't see a clear trend we do the filtering by checking how many support or resistance level the price has bounced off.
Stop Loss and Take Profit: We have also added printing SL and TP levels on the chart to make the it easier for everyone to find the SL/TP values. Script calculates the SL value by checking the previous support level for LONG trade and previous resistance level for SHORT trades. Take profit are calculated in 1:1 ratio as of now. can you amek a same indicator for 5 mins chart
Heiken Ashi Colors - Classic Candles ModificationDo you want to use Heiken Ashi candles but you prefer seeing the true prices and range of the normal candles? Here's the fix.
This simple indicator recolors the body of the bars to match the Heiken Ashi calculations. The borders and wicks will remain the same as the classic candles, but the body will reflect the Heiken Ashi trend.
As a bonus, I have added "Bullish" and "Bearish" candle identifiers, currently using aqua and purple, to show Heiken Ashi bullish candles with no lower shadow (aqua) and Heiken Ashi bearish candles with no upper shadow (purple).
I hope you find this useful.
Volume Spike DetectorAn indicator that detects volume spikes. The indicator highlights bars where volume exceeds the recent average by a certain percentage. It compares current volume to a moving average of volume and colors the bar differently when it exceeds my set threshold
Session High/Low Levels with Mitigation*****This is an updated version of my daily high/low with mitigation, now with weekly, daily, 4hr, 2hr and 1hr levels.
This Pine Script script defines a TradingView indicator named "Session High/Low Levels" designed to track and display the session(of your choice) high and low levels of a trading session, with added functionality for marking levels as mitigated when certain conditions are met. Here's a breakdown of its functionality:
Session Highs and Lows:
Tracks the high and low levels for each session.
Retains the highs and lows for a configurable number of previous days.
Visualization:
Creates horizontal lines for each session's high and low levels.
Supports customization of line colors and styles.
Mitigation Tracking:
Monitors whether a high or low level has been "mitigated" (touched or exceeded by subsequent price action).
Changes the line style and color to indicate mitigation.
Provides an alert when mitigation occurs.
Configurable Extensions:
Lines can be extended beyond mitigation or stopped at the bar index where mitigation occurs, depending on user preference.
Efficient Array Management:
Uses arrays to manage daily highs, lows, their respective indices, and lines.
Ensures the size of stored data does not exceed the configured limit (daysToTrack).
Alerts:
Sends alerts when high or low levels are mitigated, which can be used for trading decisions.
Inputs
Session Start Hour/Minute: Defines when a new session starts.
Days to Track: Sets the number of previous days to display high/low levels.
Colors: Allows customization of line colors for unmitigated and mitigated levels.
Extend Lines: Toggles whether lines should extend past the mitigation point.
Code Highlights
New Session Detection: The script detects the start of a new session based on the configured session start time and resets daily highs/lows.
Line Management: Horizontal rays are created for highs and lows, and mitigated lines are updated with a dashed style and faded color.
Mitigation Logic: The script checks whether current price action exceeds stored high or low levels and updates their status and appearance accordingly.
Memory Management: Ensures the size of the arrays (highs, lows, lines) does not exceed the configured daysToTrack, deleting the oldest elements as necessary.
This indicator is highly customizable and useful for traders who want to track and analyze daily support and resistance levels, incorporating mitigation as a dynamic feature.
AbuSaad – Multi-Timeframe EMA Radar📡 Multi-Timeframe EMA Alert Indicator
✅ Supports EMA 9 / 20 / 50 / 100 / 200
✅ Works on 5m, 15m, 1h, 4h, and 30h timeframes
✅ Triggers alerts when price approaches any EMA within a $3 range
✅ Ideal for scalping and short-term trading
🚀 تم تطويره من أبو سعد
Alyamani KOR – Master Build v1//@version=5
indicator("Alyamani KOR – Master Build v1", overlay=true)
// إعدادات العرض
show_fvg = input.bool(true, "عرض FVG")
show_ob = input.bool(true, "عرض Order Block")
show_bb = input.bool(true, "عرض Breaker Block")
require_poi = input.bool(true, "اظهار OB فقط عند مناطق اهتمام؟")
// --- شروط عامة ---
isSweep = low < low and low < low
hasSmallHigh = high < high and high < high
isMSS = close > high and (close - open ) > (high - low ) * 0.6
// --- كشف FVG ---
isFVG = low > high
if isFVG and show_fvg
box.new(left=bar_index , right=bar_index, top=high , bottom=low , border_color=color.orange, bgcolor=color.new(color.orange, 85))
// --- اكتشاف Order Block ---
var float ob_top = na
var float ob_bottom = na
var int ob_bar = na
var bool ob_active = false
// --- منطقة اهتمام بدائية: هل يوجد FVG قرب الشمعة؟
near_poi = isFVG
// --- شروط OB المثالي ---
isValidOB = isSweep and hasSmallHigh and isMSS and (not require_poi or near_poi)
if isValidOB and show_ob
ob_top := high
ob_bottom := low
ob_bar := bar_index
ob_active := true
box.new(left=bar_index , right=bar_index, top=ob_top, bottom=ob_bottom, border_color=color.green, bgcolor=color.new(color.green, 85))
// --- Breaker Block detection ---
breaker_valid = ob_active and close > ob_top and low <= ob_top
if breaker_valid and show_bb
box.new(left=ob_bar, right=bar_index, top=ob_top, bottom=ob_bottom, border_color=color.red, bgcolor=color.new(color.red, 85))
ob_active := false // إنهاء OB
SMA Strategy with Re-Entry Signal (v6 Style)*SMA Trend Strategy with Re-Entry Signal (v6 Edition)*
This indicator is based on a classic moving average trend-following system, enhanced with re-entry signals designed for medium to short-term traders.
---
### 📈 Key Features:
1. *Trend Detection Logic:*
- The 30-period SMA (SMA30) is used as the trend filter.
- When the closing price is above the SMA30, the market is considered to be in an uptrend.
2. *Re-Entry Signal:*
- While in an uptrend, if the closing price crosses above the SMA20, a re-entry (add position) signal is triggered.
- These signals are shown with green upward arrows below the bars.
3. *Background Highlighting:*
- Green background: indicates an uptrend.
- Red background: indicates a break below SMA30, suggesting weakening momentum.
4. *Multi-SMA Visualization:*
- Five SMAs are displayed: SMA10, SMA20, SMA30, SMA60, and SMA250.
- This helps visualize both short-term and long-term trend structures.
---
### 🔍 Usage Tips:
- Use this script directly on your main chart to monitor trend direction and wait for re-entry signals during pullbacks.
- Combine with other tools like volume, price action, or candlestick patterns to confirm entries.
---
### ⚠️ Disclaimer:
- This indicator is for educational and informational purposes only. It does not constitute financial advice or a buy/sell signal.
- Avoid relying solely on this script for trading decisions. Always manage your own risk.
---
👨💻 *Developer’s Note:*
This script is 100% manually developed, not copied or auto-generated. It is an original implementation based on my personal trading logic. Suggestions and feedback are welcome!
W2050: Bullish Candle Linking EMA50 and MA20 (Weekly)On a weekly timeframe, if a bullish candle (close > open) has a body that includes both EMA50 and MA20, then print the label "W2050" above the candle.