Candle/RSI BUY SELLWhy Use Candlesticks?
They help traders visualize price action
Used in technical analysis and price pattern recognition (e.g., Doji, Engulfing, Hammer)
Assist in determining entry and exit points
Why Traders Use RSI:
To identify potential reversal zones
To confirm trend strength
To detect divergences between price and momentum
Why Combine Candlestick Patterns with RSI?
Using Candlestick patterns together with the Relative Strength Index (RSI) enhances trading decisions by combining price action and momentum analysis.
Conclusion:
Combining RSI with Candlestick patterns allows traders to:
Confirm potential reversals
Filter false signals
Improve entry and exit timing
Make more confident and accurate decisions
How It Works:
RSI Calculation
Custom RSI is calculated manually using Wilder's smoothing technique.
MA or BB Option
User can select whether to apply a smoothing MA or Bollinger Bands to RSI (useful for visual enhancements or custom strategies).
Buy/Sell Logic
check for:
Buy when the current candle is bullish (open <= close) and the previous candle was bearish (open >= close ), AND RSI is ≥ 50.
Sell when current candle is bearish and previous was bullish, AND RSI is ≤ 50.
Plot Buy/Sell Labels
Final Verdict
code is:
Valid (no syntax errors)
Useful (combines candlestick confirmation + RSI strength)
Extendable (can add divergence, alerts, etc.)
This Timeframe 5 min : XAU
Indicators and strategies
Consolidation Range with Signals (Zeiierman)█ Overview
Consolidation Range with Signals (Zeiierman) is a precision tool for identifying and trading market consolidation zones, where price contracts into tight ranges before significant movement. It provides dynamic range detection using either ADX-based trend strength or volatility compression metrics, and offers built-in take profit and stop loss signals based on breakout dynamics.
Whether you trade breakouts, range reversals, or trend continuation setups, this indicator visualizes the balance between supply and demand with clearly defined mid-bands, breakout zones, and momentum-sensitive TP/SL placements.
█ How It Works
⚪ Multi-Method Range Detection
ADX Mode
Uses the Average Directional Index (ADX) to detect low-trend-strength environments. When ADX is below your selected threshold, price is considered to be in consolidation.
Volatility Mode
This mode detects consolidation by identifying periods of volatility compression. It evaluates whether the following metrics are simultaneously below their respective historical rolling averages:
Standard Deviation
Variance
Average True Range (ATR)
⚪ Dynamic Range Band System
Once a range is confirmed, the system builds a dynamic band structure using a volatility-based filter and price-jump logic:
Middle Line (Trend Filter): Reacts to price imbalance using adaptive jump logic.
Upper & Lower Bands: Calculated by expanding from the middle line using a configurable multiplier.
This creates a clean, visual box that reflects current consolidation conditions and adapts as price fluctuates within or escapes the zone.
⚪ SL/TP Signal Engine
On detection of a breakout from the range, the indicator generates up to 3 Take Profit levels and one Stop Loss, based on the breakout direction:
All TP/SL levels are calculated using the filtered base range and multipliers.
Cooldown logic ensures signals are not spammed bar-to-bar.
Entries are visualized with colored lines and labeled levels.
This feature is ideal for traders who want automated risk and reward reference points for range breakout plays.
█ How to Use
⚪ Breakout Traders
Use the SL/TP signals when the price breaks above or below the range bands, especially after extended sideways movement. You can customize how far TP1, TP2, and TP3 sit from the entry using your own risk/reward profile.
⚪ Mean Reversion Traders
Use the bands to locate high-probability reversion zones. These serve as reference zones for scalping or fade entries within stable consolidation phases.
█ Settings
Range Detection Method – Choose between ADX or Volatility compression to define range criteria.
Range Period – Determines how many bars are used to compute trend/volatility.
Range Multiplier – Scales the width of the consolidation zone.
SL/TP System – Optional levels that project TP1/TP2/TP3 and SL from the base price using multipliers.
Cooldown – Prevents repeated SL/TP signals from triggering too frequently.
ADX Threshold & Smoothing – Adjusts sensitivity of trend strength detection.
StdDev / Variance / ATR Multipliers – Fine-tune compression detection logic.
-----------------
Disclaimer
The content provided in my scripts, indicators, ideas, algorithms, and systems is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
2 CGC EMAChecks for 2 green closes above EMA.
Sends only one buy signal when this happens initially.
Won't send another buy signal until price closes below the EMA at least once (resets).
EMA is plotted with your offset visually.
ATR Display ShorcutATR Value Display - On-Chart Volatility Monitor
Clean ATR display directly on your price chart - no extra panels needed!
This indicator displays the current Average True Range (ATR) value as a clean table overlay on your price chart, eliminating the need for a separate indicator panel below your main chart.
✨ Key Features:
On-chart display: ATR value shown directly on price chart
Customizable positioning: Choose from 4 corner positions
Clean design: Minimal, non-intrusive table format
Real-time updates: Always shows the latest ATR value
Adjustable period: Default 14-period, fully customizable
🎯 Perfect For:
Position sizing calculations
Stop-loss placement (1x, 1.5x, 2x ATR)
Volatility assessment at a glance
Clean chart setups without extra panels
Quick reference during live trading
📊 How to Use:
Add to chart
Select your preferred table position
Adjust ATR period if needed (default: 14)
The current ATR value displays automatically
💡 Pro Tip:
Use this ATR value to:
Set stop-losses at 1.5x or 2x ATR distance
Determine position size based on account risk
Compare current volatility to historical levels
Clean charts, clear data, better trading decisions.
Compatible with all timeframes and instruments. Pine Script v6.
Feel free to adjust this description to match your style or add any specific features you want to highlight!
Key Levels with Alerts
Introducing the "Key Levels with Alerts" Indicator
This powerful and fully customizable indicator for the TradingView platform helps you easily identify and monitor crucial **daily, weekly, and monthly price levels** directly on your chart. Beyond just visual representation, the indicator offers advanced alert capabilities to notify you of any price breaks at these significant areas.
Key Levels Identified by the Indicator
This indicator calculates and displays six vital price levels based on the previous day's, week's, and month's closed candles:
1. **PDH (Previous Day High):** The highest price of the previous day.
2. **PDL (Previous Day Low):** The lowest price of the previous day.
3. **PWH (Previous Week High):** The highest price of the previous week.
4. **PWL (Previous Week Low):** The lowest price of the previous week.
5. **PMH (Previous Month High):** The highest price of the previous month.
6. **PML (Previous Month Low):** The lowest price of the previous month.
Core Features
* **Visual Line Display:** Each of these six levels is plotted as a **horizontal line** on your chart. These lines start from the current candle and extend forward for a specified number of candles (defaulting to 20 candles).
* **Complete Style Customization:** For every level (PDH, PDL, PWH, PWL, PMH, PML), you can **independently customize** the line's color, width, and style (solid, dashed, dotted) directly through the indicator's settings. This feature allows you to easily differentiate between the various levels.
* **Toggleable Labels:** You can choose whether to display text labels like "PDH", "PDL", "PWH", "PWL", "PMH", "PML" at the end of each line. The style of these labels will also automatically match their corresponding line colors.
* **Line Visibility Control:** Beyond just labels, you can also independently **show or hide the lines themselves** for PDH, PDL, PWH, PWL, PMH, and PML.
* **Price Break Alerts:** This is one of the indicator's most important features. You can set up alerts for each of these levels:
* **PDH Break Alert:** Triggers when the price moves above the **Previous Day High**.
* **PDL Break Alert:** Triggers when the price moves below the **Previous Day Low**.
* **PWH Break Alert:** Triggers when the price moves above the **Previous Week High**.
* **PWL Break Alert:** Triggers when the price moves below the **Previous Week Low**.
* **PMH Break Alert:** Triggers when the price moves above the **Previous Month High**.
* **PML Break Alert:** Triggers when the price moves below the **Previous Month Low**.
* **Clear Alert Messages:** Each alert message includes the **symbol or ticker name** (e.g., ` `) so you can quickly identify which asset the alert pertains to and which level has been broken.
* **Enable/Disable Alerts:** You have the flexibility to enable or disable each PDH, PDL, PWH, PWL, PMH, and PML alert independently via the indicator's settings.
Why This Indicator Is Useful
Daily, weekly, and monthly High and Low levels often act as **key support and resistance areas**. Traders use these levels to identify potential entry and exit points, set stop-loss and take-profit targets, and understand overall market sentiment. This indicator, with its clear visualization and timely alerts, helps you effectively leverage this crucial information in your trading strategies.
Simple Monthly SeasonalityThis script helps traders quickly visualize how an asset performs month by month over a customizable historical period.
🔍 What it does:
• Calculates average monthly returns over the past N years (default: 15).
• Highlights the current month for quick context.
• Displays results in a clean 2-column table (Month | Avg % Return).
💡 Features:
• Works on any timeframe – internally pulls monthly data.
• Color-coded performance (green for positive, red for negative).
• Dynamic highlights – the current month is softly emphasized.
• Fully customizable lookback period (1–50 years).
📈 Use cases:
• Spot seasonal market trends.
• Time entries/exits based on recurring historical strength/weakness.
• Build the foundation for more advanced seasonality or macro scripts.
Just load it on any chart and see which months historically outshine the rest.
⸻
Enhanced EMA Band Rejection Strategy📈 Enhanced EMA Band Rejection Strategy 🎯
🌟 Revolutionary Trading Approach with Smart Band Recognition
🔥 What Makes This Strategy Unique?
🎪 The Power of EMA Band Rejection - This isn't just another EMA crossover strategy! We've engineered a sophisticated system that identifies high-probability reversal opportunities when price gets rejected from EMA bands, creating explosive momentum moves.
🎯 Core Trading Logic
📊 Dual EMA System (12 & 21)
🟢 Bullish Environment: EMA12 > EMA21 (Green Bands)
🔴 Bearish Environment: EMA12 < EMA21 (Red Bands)
⚡ Trend Consistency: Requires sustained trend direction for configurable bars
🚀 Entry Conditions - Precision Engineered
📈 LONG Setups (Bullish Rejection)
🎯 Price wicks down to touch EMA bands
💪 Strong bullish candle body (body > lower wick)
✂️ Minimal upper wick (< 2% of candle range)
🟢 Close ABOVE both EMAs (breakout confirmation)
🛡️ Previous candle didn't close below lower band
⏰ Consistent bullish trend for required bars
📉 SHORT Setups (Bearish Rejection)
🎯 Price wicks up to touch EMA bands
💪 Strong bearish candle body (body > upper wick)
✂️ Minimal lower wick (< 2% of candle range)
🔴 Close BELOW both EMAs (breakdown confirmation)
🛡️ Previous candle didn't close above upper band
⏰ Consistent bearish trend for required bars
🛡️ Advanced Risk Management
💎 Fixed Risk-Reward Ratio (Default 3:1)
🔴 Stop Loss: Previous candle's high/low
🎯 Take Profit: Automatically calculated based on R:R ratio
📊 Position Sizing: Percentage of equity (default 10%)
🔔 Smart Notification System
🚨 Complete Alert Suite:
🟢 Entry Signals: Instant trade entry notifications
🛑 Exit Alerts: Stop loss and take profit hits
⚠️ Setup Warnings: Potential setups forming
❌ Failed Conditions: Debug failed entries
📱 Mobile Friendly: Formatted for all devices
🎛️ Fully Customizable Parameters
⚙️ Fine-Tune Your Edge:
📏 EMA lengths (default 12/21)
🎯 Risk-reward ratio (1:1 to 10:1)
📊 Maximum wick percentage tolerance
⏳ Trend consistency requirements
🔔 Notification preferences
🧠 Advanced Debugging Features
🔍 Real-Time Analysis Dashboard:
📋 Live condition monitoring table
🎨 Color-coded background alerts
📊 Detailed failure analysis
💡 Previous candle position tracking
🔄 Trend consistency verification
🎨 Visual Excellence
🖼️ Professional Chart Presentation:
🔵 EMA12 (Blue line)
🔴 EMA21 (Red line)
🟢 Long entry backgrounds
🔴 Short entry backgrounds
🎯 Stop loss and take profit levels
🏷️ Entry/exit labels
📊 Performance Optimized
⚡ Built for Speed & Accuracy:
🚀 Efficient Pine Script v5 code
🎯 Precise mathematical calculations
🔄 Real-time condition checking
📱 Optimized for all timeframes
💾 Memory-efficient execution
🎪 Why Traders Love This Strategy
✅ High Win Rate Potential: Catches strong momentum moves after rejection
✅ Clear Entry/Exit Rules: No guesswork or emotional decisions
✅ Excellent Risk Management: Fixed R:R with automatic stops
✅ Trend-Following Edge: Only trades with the dominant trend
✅ Multiple Timeframe Friendly: Works on various timeframes
✅ Comprehensive Alerts: Never miss a trading opportunity
✅ Professional Grade: Institution-quality logic and execution
Made by NickGolobor.GM
FX Fix with Adjustable TimezoneFX Fix Time Highlighter
This indicator visually highlights candlesticks at a user-defined time and timezone to help traders easily identify when the FX fix occurs. Simply set your preferred timezone and the exact time you want to mark on the chart, and the indicator will automatically highlight the corresponding candlesticks.
Ideal for forex traders who want a clear visual reference of the FX fix window, aiding in analysis of price behavior during this key market event.
Features:
Customizable timezone selection
Adjustable highlight time (hour and minute)
Automatic candlestick highlighting at the chosen time
Supports all timeframes
Use this tool to better understand market dynamics around the FX fix and improve your trading decisions.
5/20 EMA Entry + 1/5 Cross-Count ExitThis script generates entry signals whenever the 5-period EMA crosses the 20-period EMA. A “BUY” label appears when the 5 EMA moves above the 20 EMA, and a “SELL” label appears when it moves below. Once a position is taken, the script begins counting every crossover between the 1-period EMA and the 5-period EMA. As soon as the first EMA(1)/EMA(5) cross occurs after entry, the script closes the trade and plots an “EXIT BUY” or “EXIT SELL” label on that bar. This ensures that each trade is exited on the very first short-term momentum shift (1/5 EMA cross) following the initial 5/20 EMA signal.
XAU/USD Custom Levels
XAU/USD Dynamic Support & Resistance Levels
This indicator automatically draws horizontal support and resistance levels for Gold (XAU/USD) based on the current market price, eliminating the need for manual price range adjustments.
**Key Features:**
- **Dynamic Price Range**: Automatically calculates levels above and below the current price using a customizable percentage range (default 5%)
- **Multi-Tier Level System**: Four distinct level types with different visual styling:
- Major Levels (100s) - Blue, thick lines
- Sub Levels (50s) - Red, medium lines
- Sub-Sub Levels (25s) - Yellow, thin lines
- Mini Levels (12.5s) - Gray, dotted lines
- **Fully Customizable**: Adjust range percentage, step size, colors, and line history through input settings
- **Universal Compatibility**: Works at any gold price level - whether $1800, $2500, $3300 or beyond
**How It Works:**
The script centers the level grid around the current closing price and extends lines from a specified number of bars back to the right edge of the chart. The hierarchical level system helps identify key psychological price points and potential support/resistance zones commonly used in gold trading.
**Settings:**
- Price Range %: Control how far above/below current price to draw levels (1-20%)
- Level Step Size: Adjust spacing between levels (1.0-50.0)
- Bars Back: Set how far back in history to start the lines
- Color Customization: Personalize colors for each level type
Perfect for gold traders who need clean, automatically-updating support and resistance levels without manual configuration.
BB Cross + Martingale Hedging Strategy🔁 Buy and Sell Trend Indicator (Multi-Entry Trend Follower)
This indicator detects bullish and bearish trends based on candle direction and highlights trend shifts with multiple entry opportunities.
🔍 Features:
Buy Signals: Triggered when a bullish candle follows a bearish one, initiating a potential upward trend.
Sell Signals: Triggered when a bearish candle follows a bullish one, signaling potential downward momentum.
Multi-Entry Logic: Captures up to 5 consecutive entries in the same trend to compound positions or confirm strength.
Visual Labels: Clearly marked buy/sell labels and trend continuation counts on the chart.
Color-coded Backgrounds: Light green/red highlights for bullish/bearish candles.
Alerts: Set real-time alerts for trend reversals and continuation signals, ensuring you're notified instantly.
🧠 Ideal For:
Trend-following traders looking for clear entry points.
Scalpers and swing traders who want to track momentum shifts.
Users who prefer visual confirmations and real-time alerts.
ATR Value on Chart_MCIthere are no indicators which showing ATR value in pips directly. This indicator is in Value of ATR in pips. Multiplier 1.5 times to forecast upcoming volatility and place SL reference before opening a trade
Stochastic Swing PointUsing Stochastic to define any swing points.
When Stochastic is OB or OS this indicator will find a high and low to create a label on it.
Default setting is 9 3 3 OB 80 OS 20
for educational purpose only
Test_MACD-English-
Sample MACD-Based Trading Strategy
1. Buy: Enter a long position when the MACD Histogram is greater than 0 and increasing, AND the current price is greater than the highest price of the previous 20 periods. Exit the trade when the MACD Histogram falls below 0 or when the stop-loss level is hit. Set the stop-loss level at the lowest price of the last 3 candlesticks when entering the trade.
2. Sell: The conditions for selling are the opposite of the buy conditions.
Golden Triangle Strategy (1H, Setup 1 & 2)🔺 Golden Triangle Strategy – Setup 1 & 2 with Dynamic Trailing Stop (Optimized for 1H Chart)
### 📘 Strategy Summary
This strategy blends **technical pattern recognition** with **volume confirmation** and **dynamic risk management** to capture high-probability breakouts. It features two independent entry setups . More details can be found at thepatternsite.com
I have added intelligent trailing stop that **tightens once a profit threshold is reached**. Please note that this is not mentioned in GoldenTriangle strategy. I just added to capture the profits.
### ✅ Entry Setups
#### **Setup 1 – Golden Triangle Breakout**
* Detects **triangle formations** using recent pivot highs and lows.
* A **bullish breakout** is confirmed when:
* Price **closes above the triangle top**, and
* Price is also **above the 50-period SMA**.
* Entry: At breakout candle close.
* Ideal for early momentum trades after consolidation.
#### **Setup 2 – Price + Volume Confirmation**
* Based on **mean reversion followed by volume surge**:
* Price drops **below the 50 SMA**, then closes **back above it**.
* Requires at least one **"up day"** (current close > previous close).
* Volume must be:
* Above its 50-SMA, **and**
* Higher than each of the **previous 4 days**.
* Entry: At the close of volume-confirmation day.
* Useful when triangle patterns are not clear, but accumulation is strong.
---
### 📈 Entry Logic Recap
| Condition | Setup 1 | Setup 2 |
| ------------------ | --------------------- | --------------------------------------- |
| Pattern | Triangle Breakout | SMA Reclaim + Volume Surge |
| SMA Filter | Close > 50 SMA | Price drops < 50 SMA, then closes above |
| Volume Requirement | Not Required | > Volume SMA + > last 4 bars |
| Entry Trigger | Breakout candle close | After volume confirmation |
---
### 🚪 Exit Strategy
#### 🔁 **Trailing Stop Loss (TSL)**
* **Initial stop:** 10% below the **highest price reached** after entry.
* **Tightening rule:**
* When profit reaches **10%**, the trailing stop is **tightened to 5%**.
* This keeps you in the trade while locking in more profit as the trade moves in your favor.
#### 🔻 **Manual Close**
* If the price drops below the trailing stop, the position is automatically closed using `strategy.close()`.
---
### 🌈 Visual Aids & Additions
* Green background shading while in a trade.
* Real-time dashboard showing:
* SMA values
* Entry signals
* Plots for:
* Dynamic trailing stop
* Weekly Fibonacci R3 and S3 levels as outer support/resistance zones.
---
### 🧠 Ideal Use Cases
* Works well on **1-hour charts** for intraday to short swing trades.
* Especially effective in **sideways-to-bullish markets**.
* Helps avoid false breakouts by using SMA and volume filters.
---
Tip: I also showed weekly R3 on the chart. When the price touches at this level lock your profits. You Dont have to wait until price hits trailing stop loss.
warning : This strategy is published educational purposes only.
Daily ADR TableDaily ADR Table Indicator
The Daily Average Daily Range (ADR) Table displays real-time volatility statistics directly on your chart. It shows both the current day's range and the historical average daily range as percentages of the current price, providing essential volatility metrics for trading decisions.
The indicator tracks today's range in real-time throughout the trading session using session-based calculations to ensure accuracy. It compares this against a customizable historical average (default 20 days, adjustable from 1-500 days) to help traders assess whether current volatility is above or below normal levels.
All values are displayed as percentages for easy comparison across different price levels and formatted to two decimal places for precision. The table position, text size, alignment, and colors are fully customizable with nine position options and professional default styling optimized for readability.
This indicator is valuable for day traders, swing traders, and market analysts who need to quickly assess current market volatility relative to historical norms. It assists in position sizing decisions, setting stop losses, and identifying potential breakout or consolidation scenarios based on range expansion or contraction.
5 AM NY 4H Candle High/LowThis indicator identifies the 4-hour candle that starts at 5:00 AM New York time (NYT) and automatically plots its high and low on intraday charts (e.g., 15m, 30m, 1H).
It helps traders:
Highlight a key session window often associated with increased market activity.
Use the 5AM–9AM NYT range for breakout, reversal, or liquidity zone strategies.
See clean horizontal levels that can act as support or resistance throughout the trading day.
🧠 Key Features:
Works on any timeframe below 4H.
Automatically detects and updates daily.
Optional labels to mark the range visually.
Power CandlesPower Candles - ATR-Based Momentum Signals
Identifies high-momentum candles with minimal wicks that signal potential trend continuation or reversal.
Key Features:
Detects candles larger than ATR threshold with small opposing wicks
Bullish signals: Green candle after red with small top wick
Bearish signals: Red candle after green with small bottom wick
Customizable ATR period, size factor, and wick tolerance
Built-in alert system for all signal types
Golden Pocket from Strongest Impulse (9:30–9:45)Scans the most extended impulse move from 9:30AM-9:45AM, and creates a golden pocket zone based on the impulsive move.
Golden Pocket from Strongest Impulse (9:30–9:55)Scans the most extended impulse move from 9:30AM-9:55AM, and creates a golden pocket zone based on the impulsive move.
Hide Current Bara lightweight overlay indicator designed to hide the color of the active (unconfirmed) candle on the chart.
Key Features:
Purpose: Hide the color of the currently forming bar (i.e., the active candle) on the price chart.
Psychological Benefit of Hiding the Active Candle’s Color
Hiding the color of the active candle can have notable psychological benefits for traders:
Reduction of Bias: The color of a forming candle often fluctuates as prices move up and down during its formation. This can trigger emotional responses such as fear or greed. By removing the color, traders avoid overreacting to incomplete information and are less likely to jump to conclusions based on transient price moves.
Focus on Confirmed Data: Since only completed candles are relevant for most technical analysis, hiding the color of the active candle encourages traders to make decisions based on fully formed and reliable data rather than noise.
Improved Discipline: By not seeing the color of the active candle, traders are less tempted to enter or exit trades impulsively in reaction to price flickers. This promotes a more systematic and disciplined approach.
Minimized Overtrading: Visual cues like bright green or red candles can prompt hasty trades, particularly in fast-moving markets. A transparent active candle helps reduce the temptation to trade every minor tick, fostering patience.
In summary, by hiding the color of the active candle, this script helps traders maintain emotional neutrality and focus on confirmed price action, leading to better, more rational trading decisions.
ATR Range based on PremarketThis indicator calculates dynamic support and resistance levels by adding the daily Average True Range (ATR) to the premarket high and low of a stock. It helps traders visualize potential price boundaries for the trading day, combining volatility with early market sentiment. Useful for identifying breakout zones, risk levels, and targets based on real premarket action and current market volatility.