RSI + Stochastic Combo (fixed) by howhaber# RSI + Stochastic Indicator
**Summary**
This indicator combines RSI and Stochastic to generate BUY and SELL signals in oversold or overbought market conditions. It merges both indicators for higher accuracy, reducing false signals. Includes visual signals on the chart, alerts, and an info label for quick analysis.
---
## 📈 How the Indicator Works
### RSI Component
- Calculates standard RSI based on the specified period (`rsiLen`).
- Indicates oversold (< 30) or overbought (> 70) conditions.
### Stochastic Component
- Manually calculated to avoid compatibility issues.
- Measures the current price position relative to the price range (highs/lows) over the selected period.
- Smoothed using two SMA filters (%K and %D).
### Signal Logic
**BUY Signal**:
- %K crosses above %D (`ta.crossover(k, d)`).
- %K < 20 (oversold market).
- RSI < specified threshold (default < 40).
**SELL Signal**:
- %K crosses below %D (`ta.crossunder(k, d)`).
- %K > 80 (overbought market).
- RSI > specified threshold (default > 60).
---
## 📍 What's Displayed on the Chart
- 🟢 **Green arrow** below the bar → BUY signal.
- 🔴 **Red arrow** above the bar → SELL signal.
- **In a separate window**:
- RSI line (blue).
- Stochastic %K (orange).
- Stochastic %D (purple).
- Reference levels: 30/70 (RSI), 20/80 (Stochastic).
---
## 🔔 Alerts
- **RSI+Stoch BUY**: Notification on BUY signal.
- **RSI+Stoch SELL**: Notification on SELL signal.
Receive alerts via email, Telegram, or directly on the platform.
---
## 🧩 Additional Feature
- Info label on the last bar, displaying:
- Current RSI value.
- %K and %D values.
- Facilitates quick visual checks of the indicator's current state.
---
## 💡 Interpretation
- **Oversold market** (confirmed by RSI and Stochastic): Likely upward reversal.
- **Overbought market** (confirmed by RSI and Stochastic): Likely downward reversal.
- Combining both reduces false signals and improves accuracy in choppy markets.
---
## ⚠️ Important Note
This indicator is not financial advice. It is designed for technical analysis and educational purposes. Combine it with other tools like trend analysis, volume, and price patterns for better results.
移動平均線
Quantum Edge Signals — trend-aware buy/sell signalsQuantum Edge Signals (Fixed) is a practical, performance-minded indicator for swing and trend traders. It blends StochRSI and volatility to generate buy/sell signals, then filters and classifies those signals with an optional EMA trend filter and an RSI confirmation. The indicator also draws premium/discount price zones, reports buy/sell power inside those zones, plots pivot support/resistance, and places three ATR-based targets plus a stop — all while minimizing chart redraws so objects stay anchored and won’t shift when you pan or drag the chart.
Key features
• Signal engine: StochRSI oversold/overbought conditions combined with a volatility filter (price change vs. moving average of changes).
• Strong signal classification: optional EMA fast/slow trend filter to mark stronger buys/sells.
• Non-repainting confirmation: signals are confirmed using the previous bar (the entry price is the close of the confirmed bar).
• TP/SL management: three TP levels and one SL derived from ATR. Targets are created at the signal and are recalculated only when the trend flips (adaptive without constant movement).
• Premium / Discount zones: boxes drawn around a configurable MA band; zones are created once on entry and anchored to their start bar.
• Buy / Sell power: a zone-level buy/sell ratio (smoothed up/down volume) shown as a compact label at zone entry.
• Support & resistance: pivot S/R lines and small boxed zones for visual context.
• Whale screener: optional background highlight for large-volume bars.
• Performance-first: objects are created only when needed and anchored to fixed bar indices to prevent object churn and chart hanging.
How signals and targets behave
• A signal is considered “confirmed” on the previous bar to avoid repainting. The confirmed signal’s close is used as entryPrice.
• TP/SL lines are anchored to the signal bar. By default they are created at signal time and only recalc when the EMA-based trend flips direction — this keeps targets adaptive to meaningful trend changes while avoiding per-bar jitter.
• Zones and power labels are created once when price enters the premium or discount region and stay anchored to the zone start bar (so they don’t drift when you pan/drag the chart).
Main inputs (what you’ll usually tweak)
• Signal Length, Signal Factor — control StochRSI smoothing and the volatility multiplier.
• Use 2SD Filter — require price to be outside ±2 standard deviations of MA to trigger a signal.
• Show Signals (Classic / Strong / All) — which labels to display.
• Zone Length, Zone Offset — how wide and how many bars the premium/discount zones span.
• Buy/Sell Power thresholds — set numeric cutoffs for “Weak” / “Strong” labels.
• TP/SL Factors & ATR period — the multipliers used to calculate TP1/2/3 and SL from ATR.
• Fast/Slow EMA periods — used for the strong signal / trend filter.
• S/R Strength & Zone Width — pivot lookback and how wide S/R boxes are.
Recommended usage
• Timeframes: try 1H, 4H and Daily for swing/trend setups.
• Filters: enable the Strong (EMA) filter to limit trades to the direction of the trend.
• Zones: keep zone length moderate (10–30 bars) for readability.
• Testing: run forward paper trading and walk-forward tests before using real capital.
Why this version
This release focuses on reliability and chart performance. Objects (labels, lines and boxes) are anchored to the bar that created them, and the indicator avoids repeatedly creating and deleting the same objects on every historical bar — this prevents TradingView from hanging when dragging or panning.
Limitations & notes
• TP recalculation is based on ATR at the flip bar; the script keeps the original entry price fixed to avoid repainting entries.
• If you run many other drawing-heavy indicators at the same time, TradingView may still slow down — use a single instance while testing.
• The indicator is visual/confirmational — it is not a fully automated order-execution strategy.
Cross3x v2Cross3x – Smart Trend & Rejection Detection System
Cross3x is a precision trading indicator designed for traders who combine trend-following with early reversal detection. Built on a triple moving average core, it delivers high-quality signals with minimal noise and maximum clarity.
Core Features:
Trend Filtered Crossover: Uses a fast EMA (18), slow EMA (33), and long-term SMA (99) to generate reliable entry signals only in the direction of the dominant trend.
Dynamic SL/TP/BE Management:
Stop Loss placed at the lowest/highest extreme over a user-defined lookback.
Take Profit calculated using a customizable Risk/Reward ratio.
Break-Even level set as a percentage between entry and TP (e.g., 10% = BE just above entry).
Early Rejection Signals: Flags potential reversals when price tests a moving average with a long wick during a countertrend candle — ideal for spotting pullbacks before the next leg.
Green flag: "Potential Long Setup" after a bullish rejection.
Red flag: "Potential Short Setup" after a bearish rejection.
Confirmation Points: Circles appear when price retraces cleanly after a crossover, signaling optimal entry zones.
Interactive Dashboard: Real-time table showing current signal, SL, and TP levels.
Customizable Alerts: Fully configurable alerts for entries, confirmation points, and rejection setups.
Why Use Cross3x?
It doesn’t just follow trends — it anticipates them. By combining classical crossovers with smart rejection logic and structured risk management, Cross3x helps you enter earlier, manage risk better, and stay aligned with market momentum.
Perfect for swing traders, intraday scalpers, and algorithmic strategies seeking a clean, robust foundation.
Usage Tips:
Combine "Potential" flags with order blocks or key levels for higher accuracy.
Use confirmation circles as entry triggers after early setups.
Adjust RR and BE% based on volatility and trading style.
Deploy Cross3x to turn simple crossovers into a complete trading methodology.
Asia Range Breakout Asia Range Breakout
Description:
Asia Range Breakout is a sophisticated, multi-filter trading tool designed to identify high-probability breakout opportunities during the core Asian trading session. By combining session-based range analysis with advanced confirmation filters like Heiken Ashi momentum, Ichimoku baseline trends, and EMA alignment, this indicator helps traders capture decisive moves while filtering out market noise.
Tired of false breakouts? This system provides a structured framework to trade the Sydney and Tokyo sessions with precision and confidence.
Key Features:
Multi-Session Range Tracking:
Monitors 6 distinct pre-defined Asian sessions (Sydney Box, Tokyo Pre-Open, Tokyo Launch, etc.).
Dynamically plots High and Low boundaries for each session (Teal for Highs, Red for Lows).
Individually toggleable sessions to focus on your preferred trading window.
Smart Alert & Signal System:
Generates alerts based on Heiken Ashi candle closings relative to session ranges.
Dual-Size Signals: Differentiates between "Large" breakouts (outside the range) and "Small" signals (within the range).
Configurable alert timeframe for confirmation candle closure.Built-in Sound Alerts for real-time notifications.
Advanced Confirmation Filters:
Heiken Ashi Momentum Filter: Ensures breakout candles have significant momentum, adjustable via a threshold multiplier.
EMA 200 Filter: Confirms the breakout's alignment with the broader trend.
Ichimoku Baseline (Kijun-sen) Filter: Uses a dynamic support/resistance level for additional confirmation.
Ichimoku Baseline Divergence Filter: A unique feature that requires the baseline's slope to match the breakout direction (Bullish for buys, Bearish for sells).
ATR Volatility Filter: (Optional) Ensures the breakout candle has sufficient range relative to recent market volatility.
Visual Enhancements:
Take-Profit Lines: Projects profit targets using ATR and connects consecutive alerts with a trendline.
Heiken Ashi Overlay: Displays smoothed Heiken Ashi candles directly on the main chart for cleaner trend visualization.
Divergence Trend Line: Visually plots the slope of the Ichimoku Baseline for quick trend assessment.
Session Background Highlighter: Shades the active sessions for easy time reference.
Comprehensive Debug Info Box: Provides real-time feedback on filter status, perfect for strategy validation and learning.
Usage Instructions & Tips:
1. Initial Setup:
Start simple! Apply the indicator to a 5-minute or 1-minute chart.
Recommended Instruments:
Forex: Major pairs like AUD/USD , USD/JPY or EUR/JPY.
Indices: `NAS100` (Nasdaq), `US30` (Dow Jones), `JP225` (Nikkei 225).
Commodities: `XAUUSD` (Gold).
Initially, enable only the Sydney Box (00:30 - 03:15 UTC) as it is the most robust session, then explore others.
2. Interpreting the Signals:
Large Green Arrow (Above Bar): A strong BUY signal. The Heiken Ashi candle closed above the session's High, and all enabled filters are confirmed.
Small Green Arrow (Above Bar): A moderate BUY signal. The candle closed bullishly but within the session range.
Large Red Arrow (Below Bar): A strong SELL signal. The Heiken Ashi candle closed below the session's Low, with filter confirmation.
Small Red Arrow (Below Bar): A moderate SELL signal. The candle closed bearishly but within the session range.
3. Optimizing Your Strategy:
Filter Tuning: The default filters are balanced. Adjust them based on your risk appetite:
Increase the Heiken Ashi Threshold (e.g., to 0.2) for fewer, but stronger signals.
Disable filters like ATR or Divergence if you find them too restrictive.
The Power of Divergence: The Ichimoku Divergence filter is a powerful trend-confirmation tool. Pay close attention to it for the highest-quality signals.
Use the Debug Box: Enable the "Show Debug Info Box" to see exactly why a signal did or did not trigger. This is invaluable for understanding the indicator's logic and avoiding bad trades.
4. Risk Management:
The TP Lines provide a logical profit target based on market volatility. Consider using them for setting take-profit orders.
Always use a stop-loss. A logical level is the opposite side of the session range (e.g., for a buy signal, place a stop below the session low).
You're very welcome! I'm glad I could help you create a professional tool. Wishing you great success with your Trading! 🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀
Custom MTF EMA CloudsVisualize market structure and trend alignment across multiple timeframes with six layered EMA clouds — from short-term momentum to macro trend anchors.
Each pair of EMAs forms a dynamic cloud that adapts to your selected timeframe.
Colors, lengths, and visibility are fully customizable, allowing you to tailor the setup for any trading style.
⚙️ Default Configuration
EMA Short Long Purpose
1 8 13 🔸 Intraday momentum cloud (scalping layer)
2 21 24 🟩 Short-term trend confirmation
3 50 55 🔵 Medium-term swing structure
4 120 144 🔴 Long-term support/resistance band
5 200 238 🟠 Institutional trend foundation
6 400 460 🟣 Macro directional anchor
🧩 Features
✅ Up to 6 independent EMA clouds
✅ Fully customizable short & long lengths
✅ Individual line and cloud colors
✅ Toggle each layer on/off
✅ Works with any timeframe via the Resolution input
✅ Automatic cloud transparency for better chart clarity
📈 How to Use
Use EMA 1–2 (8/13, 21/24) for momentum shifts and intraday entries.
Use EMA 3–4 (50/55, 120/144) for swing confirmation and trend continuation.
Use EMA 5–6 (200/238, 400/460) as long-term anchors to stay aligned with institutional flow.
Watch for crossovers or price breaking in/out of clouds — they often precede strong directional moves.
AbdullahThis script is a **3-in-1 Combined Indicator** for Pine Script v6, merging three popular technical analysis tools into a single chart overlay. It's designed to provide a comprehensive view of trend direction, momentum, and volatility-based stops.
Here's a breakdown of the three components:
## 1. ZLSMA - Zero Lag LSMA (Zero Lag Least Squares Moving Average)
The ZLSMA is a fast-reacting moving average that aims to eliminate the lag typically associated with standard moving averages. It does this by calculating the difference between a standard **Least Squares Moving Average (LSMA)** and a smoothed version of that LSMA, then adding that difference back to the original LSMA.
* **Customizable Inputs:** Length, Offset, and Source Price.
* **Plot:** A thick yellow line indicating the zero-lag trend.
---
## 2. Chandelier Exit
The Chandelier Exit is a volatility-based tool that places a trailing stop either above the price (for a long trade exit) or below the price (for a short trade exit). It uses the **Average True Range (ATR)** to set the stop distance.
* **Key Function:** Identifies potential stop-loss levels and trend changes.
* **Customizable Inputs:** ATR Period, ATR Multiplier, and an option to use the Close price for extremum calculations.
* **Visuals:**
* Plots the **Long Stop (Green)** and **Short Stop (Red)** lines, which switch based on the current trend direction.
* Optional **Buy/Sell Labels** and **Highlighting** (shaded background) to clearly mark the current trend state (long or short).
---
## 3. Exponential Moving Average (EMA) with Optional Smoothing Bands
This section plots a standard **Exponential Moving Average (EMA)** and includes a unique feature to smooth the EMA's output using another moving average or Bollinger Bands.
* **EMA Plot:** A blue line representing the EMA, with customizable Length, Source, and Offset.
* **Optional Smoothing:** The EMA line itself can be smoothed by applying a secondary moving average (SMA, EMA, WMA, etc.) to the EMA's values.
* **Bollinger Bands Option:** If **SMA + Bollinger Bands** is selected for smoothing, it plots **Upper** and **Lower Bands** based on the standard deviation of the EMA, providing a visual envelope for volatility around the smoothed line.
Super Secret 50 EMADynamic 50 EMA
The 50 EMA changes color during uptrend and another color during downtrend. User chooses colors.
EMA50/EMA250 + SAR + 3-Candle EMA FilterBUY Trigger:
EMA50>250EMA and current values of both EMAs are higher from 3 previous candles
First appearance of bullish Parabolci Sar
SELL Trigger:
EMA50<250EMA and current values of both EMAs are lower from 3 previous candles
First appearance of bearish Parabolci Sar
- Marlon C
SMA 10/20 Simple SMA 10/20. Here are two simple moving averages that can help you see the underlying trend. These are the moving averages used by the famous trader Qullamagie
SMA 10/20 Here are two simple moving averages that can help you see the underlying trend. These are the moving averages used by the famous trader Qullamagie
EMA/VWAP/Volume/MACD指标// === 控制输出 ===
macd_plot_line = show_macd ? macd_line : na
macd_signal_plot = show_macd ? signal_line : na
macd_hist_plot = show_macd ? hist_line : na
adx_plot_line = show_adx ? adx : na
plusdi_plot_line = show_adx ? diplus : na
minusdi_plot_line = show_adx ? diminus : na
// === 绘制 MACD ===
plot(macd_plot_line, title="MACD Line", color=color.new(color.aqua, 0))
plot(macd_signal_plot, title="Signal Line", color=color.new(color.orange, 0))
plot(macd_hist_plot, title="Histogram", style=plot.style_columns,
color=macd_hist_plot >= 0 ? color.new(color.green, 0) : color.new(color.red, 0))
Moving Average Convergence-Divergence (MACD)This script implements the Moving Average Convergence-Divergence (MACD), a popular momentum indicator used in technical analysis to identify trend direction, momentum shifts, and potential buy/sell signals.
🔹 Key Features
1. Inputs & Customization
MACD Lines Toggle: Enable/disable the MACD and signal lines.
Source Price: Defaults to close but can be adjusted (e.g., open, high, low, hl2).
Fast Length (12): The period for the faster-moving EMA.
Slow Length (26): The period for the slower-moving EMA.
Signal Length (9): The smoothing period for the signal line.
2. Calculations
Computes the MACD Line (fast EMA - slow EMA).
Computes the Signal Line (EMA of the MACD line).
Computes the Histogram (difference between MACD and Signal lines).
3. Visual Indicators
Zero Line: A white horizontal line at 0 for reference.
MACD Line: Plotted in green when above the signal line, red when below.
Signal Line: Displayed as a yellow line.
Histogram:
Green bars when MACD > Signal (bullish momentum).
Red bars when MACD < Signal (bearish momentum).
Background Highlights:
Light green on bullish crossovers (MACD crosses above Signal).
Light red on bearish crossunders (MACD crosses below Signal).
4. Alerts
Triggers when:
Bullish Crossover (MACD crosses above Signal).
Bearish Crossunder (MACD crosses below Signal).
🔹 How Traders Use This Indicator
Trend Identification:
MACD above zero → bullish trend.
MACD below zero → bearish trend.
Momentum Signals:
Bullish Crossover (Buy Signal): MACD crosses above Signal.
Bearish Crossunder (Sell Signal): MACD crosses below Signal.
Divergence (Not in this script, but useful):
Price makes higher highs, but MACD makes lower highs → Potential reversal.
🔹 Strengths of This Script
✅ Clean and Efficient Code – Uses Pine Script v6 best practices.
✅ Customizable Inputs – Adjust lengths and source price.
✅ Clear Visuals – Color-coded for easy interpretation.
✅ Built-in Alerts – For automated trading strategies.
Jul 1
Release Notes
This script implements the Moving Average Convergence-Divergence (MACD), a popular momentum indicator used in technical analysis to identify trend direction, momentum shifts, and potential buy/sell signals.
🔹 Key Features
1. Inputs & Customization
MACD Lines Toggle: Enable/disable the MACD and signal lines.
Source Price: Defaults to close but can be adjusted (e.g., open, high, low, hl2).
Fast Length (12): The period for the faster-moving EMA.
Slow Length (26): The period for the slower-moving EMA.
Signal Length (9): The smoothing period for the signal line.
2. Calculations
Computes the MACD Line (fast EMA - slow EMA).
Computes the Signal Line (EMA of the MACD line).
Computes the Histogram (difference between MACD and Signal lines).
3. Visual Indicators
Zero Line: A white horizontal line at 0 for reference.
MACD Line: Plotted in green when above the signal line, red when below.
Signal Line: Displayed as a yellow line.
Histogram:
Green bars when MACD > Signal (bullish momentum).
Red bars when MACD < Signal (bearish momentum).
Background Highlights:
Light green on bullish crossovers (MACD crosses above Signal).
Light red on bearish crossunders (MACD crosses below Signal).
4. Alerts
Triggers when:
Bullish Crossover (MACD crosses above Signal).
Bearish Crossunder (MACD crosses below Signal).
🔹 How Traders Use This Indicator
Trend Identification:
MACD above zero → bullish trend.
MACD below zero → bearish trend.
Momentum Signals:
Bullish Crossover (Buy Signal): MACD crosses above Signal.
Bearish Crossunder (Sell Signal): MACD crosses below Signal.
Divergence (Not in this script, but useful):
Price makes higher highs, but MACD makes lower highs → Potential reversal.
🔹 Strengths of This Script
✅ Clean and Efficient Code – Uses Pine Script v6 best practices.
✅ Customizable Inputs – Adjust lengths and source price.
✅ Clear Visuals – Color-coded for easy interpretation.
✅ Built-in Alerts – For automated trading strategies.
Colored HMASimply a colored HMA. Perfect for trend following systems in combination with other indicators.
Candle PlotUsed Linear Regression Candles by ugurvu
Added Regular and Heiken Ashi candles to choices
Added ability to choose timeframe but I find it does not look great when showing higher timeframes
To keep main chart less cluttered, I will add this indicator to my chart and then move a secondary indicator from the chart into it. You will need to pin the scale of the indicator to the scale of the Candle Plot.
Or, you can have the regular chart set to Regular candle and the Candle Plot set to Heiken Ashi or vice versa.
SMA 20 50 100A clean and lightweight SMA indicator that plots 20, 50, and 100 simple moving averages with customizable colors and line widths. Includes an optional label showing the latest SMA values for quick reference. Ideal for trend confirmation and swing trading setups.
Simple Moving Averages (20, 50, 100)A clean and lightweight SMA indicator that plots 20, 50, and 100 simple moving averages with customizable colors and line widths. Includes an optional label showing the latest SMA values for quick reference. Ideal for trend confirmation and swing trading setups.
Bitcoin Buy-the-Dip Line (Auto timeframe switch)Many people ask me when is the right time to buy Bitcoin. However, most of them have little trading experience and no time to study technical strategies or tools.
That’s why I created a simple and intuitive indicator — easy enough for anyone to use.
Usage 1 – Buy the Dip
This indicator works only on 4H, 1D, 1W, and 1M timeframes.
On each timeframe, you will see a single EMA line.
During a bull market, whenever the price dips below this EMA, it usually represents a good opportunity to buy the dip .
Usage 2 – Bull to Bear Transition
On the daily timeframe, if the price stays below the EMA and continues to make lower lows , it often signals that the market is transitioning into a bearish phase .
SMA 10/20 Weekly on all timeframeHere are SMA 10/20 Weekly to see the underlying weekly trend across all timeframes