EMA20 Sell Alertin down trend , Sell stock/index during the day only if 1st time price hit ema 20 Target 1% and Stop loss 0.5%.
Indicadores e estratégias
Average Directional IndexADR Heatmap — Daily Volatility with Color-Coded Background
This indicator displays the Average Daily Range (ADR) as an os cillator and dynamically adjusts the background color to reflect current market volatility. It helps traders visually identify sideways (range-bound) conditions and the onset of impulsive moves.
🧩 Features:
🔵 ADR below 20 → Low volatility / Range-bound market — background turns blue
🟡 ADR above 20 → Moderate volatility / Early signs of expansion — background turns yellow
🔴 ADR above 40 → High volatility / Strong impulse — background turns red
🎯 Use Cases:
Detect when the market is consolidating or preparing for a breakout
Spot transitions from accumulation to expansion
Ideal for scalping, intraday, and swing trading strategies
🔧 How to use it:
Combine with support/resistance or breakout structures
Anticipate daily range potential before entering trades
Adjust TP/SL levels according to the volatility zone
Filter out trades in low-volatility chop
3-Bar ReversalAbout the Script
This script automatically detects and plots a signal when a Three-Bar Reversal pattern appears on the chart, helping traders identify potential trend reversals with ease.
How to Use the Script
1) Add the script to your chart.
2) Customize the visual appearance to match your preferences.
3) Click "OK" to apply the changes.
Once configured, the script will highlight valid Three-Bar Reversal patterns when they form.
How the Script Works
The Three-Bar Reversal pattern consists of three consecutive candlesticks, each playing a crucial role in identifying market shifts:
First Bar: Represents the existing trend.
In a bullish reversal, the first bar is typically bearish (downward).
In a bearish reversal, the first bar is typically bullish (upward).
Second Bar: Indicates indecision or trend exhaustion.
This bar often has a smaller body (such as a doji or spinning top), showing weakening momentum.
It may also feature wicks on both sides, reflecting market uncertainty.
Third Bar: Confirms the reversal.
In a bullish reversal, the third bar closes above the high of the first bar, signaling a potential upward move.
In a bearish reversal, the third bar closes below the low of the first bar, signaling a potential downward trend.
Once the pattern is confirmed, a marker will appear below the third bar, helping traders quickly spot opportunities.
Market Session StrategyMarket Session Strategy Indicator Explanation
This is a TradingView Pine Script indicator called "Market Session Strategy" that monitors different market sessions and generates trading signals based on pattern analysis between sessions. Let me break down how it works:
Core Functionality
The indicator divides the trading day into three sessions:
Pre-Market (7:30 PM - 3:00 AM ET by default)
Regular Market (3:00 AM - 9:30 AM ET by default)
After Hours (9:30 AM - 4:00 PM ET by default)
For each session, it:
Tracks price action (open, high, low, close)
Calculates range percentages
Identifies session bias (bullish or bearish)
Draws visual session boxes on the chart
Generates trading signals based on historical patterns
Signal Generation Methodology
The indicator generates BUY/SELL signals at the beginning of the Regular Market and After Hours sessions using three main strategies:
1. Trend Continuation/Reversal Analysis
The script tracks how often a bullish/bearish trend in one session continues or reverses in the next session. For example:
If pre-market trends historically continue into regular hours 70% of the time and today's pre-market is bullish, it may generate a BUY signal.
If reversals are more common, it may generate a counter-trend signal.
2. Tight Range Breakout Signal
The indicator identifies "tight range" sessions (where price movement is unusually constrained compared to recent averages). A tight range with a bullish bias generates a BUY signal, while a bearish bias generates a SELL signal.
3. Day of Week Pattern Analysis
The script analyzes which days of the week show stronger trend continuation probabilities. If a particular day (like Monday) historically shows strong trend continuation and the threshold is met, it generates a signal accordingly.
Visual Components
The indicator provides several visual elements:
Colored session boxes showing high/low ranges
Signal labels at entry points
Session background colors with high transparency
A comprehensive dashboard showing session status, range percentages, bias, and signals
Performance Tracking
The script tracks trade success by session and day of week, which helps refine future signals. A trade is considered successful if:
A BUY signal is followed by a close higher than open
A SELL signal is followed by a close lower than open
US Treasury Spot-Futures Price DifferentialBasis Trade Analyzer: US Treasury Spot vs Futures Price Differential
Description:
This advanced indicator calculates and visualizes the price difference between US Treasury notes/bonds in the spot market versus their corresponding futures contracts. It's designed for traders who specialize in basis trading and cash-and-carry arbitrage strategies.
Key Features:
Calculates real-time price differential (basis) between spot and futures for 2Y, 5Y, and 10Y Treasuries
Displays the basis in both price points and basis points (bps)
Visualizes 200-day moving average and ±2 standard deviation bands
Includes comprehensive data table with:
Current spot and futures prices
Price differential and historical average
Volatility measurements
Built-in alerts for statistically significant deviations
Supported Instruments:
Spot: USB02YUSD (2Y), USB05YUSD (5Y), USB10YUSD (10Y)
Futures: ZT1! (2Y), ZF1! (5Y), ZN1! (10Y)
Usage Instructions:
Select the Treasury maturity (2Y/5Y/10Y) from the input menu
Monitor the blue line for current basis
Watch for mean-reversion opportunities when price approaches the bands
Use the data table for quick reference to key metrics
Professional Applications:
Identify cash-and-carry arbitrage opportunities
Monitor convergence trends as contracts approach delivery
Analyze historical basis volatility patterns
Develop relative value trading strategies
Note: The indicator uses direct price comparisons (not yields) for accurate basis calculations. For optimal results, use daily or weekly timeframes.
VOLD IndicatorVOLD-Indicator can show us the trend of the day. The indicator shows us the value of the VOLD that is a ratio of the volume flowing in up-stocks divided by the volume flowing in down stocks. Readings above 3 and below -3 can be seen as relevant for a trend day.
MC Levels with MidpointsAbout the Script
Enhance your trading analysis with this indicator, designed to plot key levels along with their midpoints. Midpoints often act as crucial areas of support or resistance, making them valuable for traders. With this tool, you can effortlessly track midpoints alongside your significant price levels, refining your strategy for better decision-making.
How to Use the Script
1) Add the script to your chart.
2) Open the indicator settings.
3) Enter your desired levels.
4) Customize the visual appearance to your preference.
5) Click "OK" to apply the changes.
Your levels and corresponding midpoints will now appear on the chart, perfectly aligned for analysis.
Note
If your levels aren't being plotted correctly, double-check your input. Ensure there are no spaces or non-numeric characters.
Sample Input Format: 20000,20100,20200
How the Script Works
The script processes a comma-separated list of levels and plots them on the chart. It then calculates the average between each consecutive level, determining and plotting their midpoints automatically. This ensures that all critical zones are clearly visible for analysis.
Arthavidhi Double RSI### 🔍 **Overview:**
The **Arthavidhi Double RSI** is a dual-timeframe RSI indicator designed to help traders identify trend strength and early reversals by observing momentum on **two different timeframes** simultaneously — ideal for **multi-timeframe confluence strategies**.
This version calculates and plots:
- RSI on a higher timeframe (default: **75-minute**)
- RSI on a lower timeframe (default: **5-minute**)
It helps traders **spot divergence**, **momentum shifts**, and **confirmation signals** by comparing short-term and medium-term RSI behavior in one panel.
---
### ⚙️ **Inputs:**
- `RSI Length` – Standard RSI period (default: 14)
- `Time Frame 1` – Higher timeframe for main RSI line (default: 75 minutes)
- `Time Frame 2` – Lower timeframe for secondary RSI line (default: 5 minutes)
---
### 📈 **How to Use:**
1. **Add the indicator** to your chart from the "Indicators" tab.
2. Choose your desired symbol (NIFTY, BANKNIFTY, stocks, etc.).
3. The RSI from **Time Frame 1 (e.g. 75m)** is shown in **color-coded** lines:
- 🟢 Green: RSI > 50 → Bullish momentum
- 🔴 Red: RSI < 50 → Bearish momentum
4. The RSI from **Time Frame 2 (e.g. 5m)** is shown in white, allowing comparison of short-term vs medium-term momentum.
---
### 💹 **How to Trade:**
#### ✅ **Trend Confirmation:**
- When **both RSIs are above 50**, it confirms **bullish trend** → Look for **buy entries**.
- When **both RSIs are below 50**, it confirms **bearish trend** → Look for **sell entries**.
#### 🔁 **Reversal Opportunities:**
- If the **higher timeframe RSI is above 50**, but the **lower timeframe RSI drops below 50**, it may signal **short-term pullback** or **entry opportunity** in a bullish trend.
- Vice versa for bearish trends.
#### 🟡 **Divergence Setup:**
- Look for **divergence** between price and either RSI line, especially when the higher timeframe RSI is near **overbought (70)** or **oversold (30)** zones.
---
### 🧠 **Pro Tips:**
- Combine with price action and support/resistance zones for higher accuracy.
- Works best during trending markets for pullback & continuation setups.
- Use this as part of your confluence system, not in isolation.
Average Entry Price Calculator# Average Entry Price Calculator
This powerful indicator helps you track your average entry price across multiple positions, displaying it clearly on your chart with customizable lines and labels.
## Features:
• Calculate average entry price for up to 5 different positions
• Display current price and profit/loss calculations
• Show percentage and absolute change from your average entry
• Customizable line styles, colors, and label positions
• Track your entry prices with clear visual references
## How It Works:
Enter your position details (entry price and amount in USDT), and the indicator will calculate your average entry price, displaying it as a horizontal line on your chart. The indicator also shows your individual entry prices as separate lines, making it easy to visualize your overall position.
## Perfect For:
• DCA (Dollar-Cost Averaging) strategies
• Position tracking across multiple entries
• Risk management and profit taking
• Visualizing entry zones on your chart
## Instructions:
1. Add the indicator to your chart
2. Enter your position details (price and amount)
3. Customize the visual appearance as needed
4. Use the displayed average entry line for decision making
All calculations are done locally in your browser - no sensitive data is transmitted or stored.
Enjoy more informed trading decisions with this essential position tracking tool!
MACD Chart Signalsgoes with other macd - this is the actual macd that is displayed separately from the trading signals. don't have to use them together. the buy/sell signals come from here. converted from old python algorithm......
Pips Phantom Fractal StructureUnlock the power of market structure with Pips Phantom Fractal Structure, a cutting-edge TradingView indicator designed to enhance your trading precision.
// Seamlessly blending advanced fractal detection, pivot point analysis, and proprietary HUNT patterns (Swing Failure Patterns), this tool empowers traders to identify key reversals, trend continuations, and liquidity zones with confidence.
// Key Features:
// - Customizable Fractals: Pinpoint significant highs and lows with flexible N-bar fractal detection (odd numbers, starting from 3 bars) for micro and macro analysis.
// - Pivot Point Analysis: Visualize market direction through Higher Highs (HH), Lower Highs (LH), Lower Lows (LL), and Higher Lows (HL), with default settings of 9 left and 4 right bars.
// - Structure Lines: Track the market's flow with bold, customizable lines connecting pivots, offering clear insights into trend dynamics.
// - Fractal Lines: Optionally connect fractals to reveal intricate price movements, with adjustable style and thinner, darker lines for distinction (disabled by default).
// - HUNT Patterns: Detect bullish and bearish swing failure signals with optional volume validation, highlighting potential liquidity grabs and reversals.
// - Enhanced Dashboard: Monitor HUNT status and lower timeframe (LTF) settings with a sleek, customizable interface featuring vibrant colors and clear metrics.
FTB Cheklist🔍 FTB Cheklist – Precision-Based Breakout Strategy for Options Traders
FTB Cheklist is a tactical script built for serious day and swing traders looking to catch high-probability breakouts with clarity, confidence, and control.
This system is designed around key institutional concepts — combining volume spike breakouts, PDH/PDL levels, EMA alignment (8/13/50/200), and ATR-based price targets across the 30-minute, 1-hour, and daily timeframes. It visually guides your session entries and filters out noise, giving you clean, confirmed trade opportunities.
🔧 What It Does:
✅ Breakout Arrows when price breaks previous day high/low with volume confirmation & trend bias
📊 Dynamic Volume Spike Detection with time-sensitive multipliers (1.5 pre-noon, 1.2 after)
📈 Stacked EMAs Filter: Only show setups when trend is clearly in your favor
🎯 ATR-Based Price Targets: Projects 30m, 1h, and Daily levels upon breakout
🕐 Trading Hours Guidance overlay: Calls out the best times to trade (9:40–11:30 & 2:00–3:30)
🧭 Clean On-Chart Labels & Guidance to keep your execution focused and frictionless
🔑 Best For:
Day & swing traders of SPY, QQQ, and large-cap options
Traders who value structure, trend alignment, and measured targets
Avoiding FOMO and chop through visual clarity & volume precision
🔥 Built to respect bias. Built to respect time. Built for discipline .
FTB Cheklist isn’t just an indicator — it’s a trade execution assistant for serious technical traders. Load it up, trust the conditions, and trade the Cheklist.
MACD Indicatormacd indicator converted from algorithm written in python. nothing revolutionary, more of an experiment - goes with other macd indicator
SnR + ICT HTF Candles with fvgThis is a complex trading strategy that combines multiple technical analysis concepts, including Support and Resistance (SnR), ICT (Inner Circle Trader) concepts, Fair Value Gaps (FVG), and Higher Timeframe (HTF) analysis.
Quarters Theory Levels (Yotov Style)John Alex Sagwe's Quarters Theory Levels Script
This Pine Script, developed by John Alex Sagwe, is based on the concept of the "Quarters Theory" popularized by Illan Yotov. It aims to help traders identify key levels in the market using whole, half, and quarter-level calculations. The script plots major whole levels, half levels, and quarter levels above and below the current price, allowing traders to visualize potential price points where significant market action might occur.
The customizable parameters allow you to:
Set the base level and step size (for quarter levels),
Adjust the number of levels above and below the current price to be displayed,
Toggle between showing whole, half, or quarter levels,
Use price alerts when the market price nears these levels.
Whether you’re a novice or an experienced trader, this script can help you integrate the Quarters Theory into your trading strategy. It’s designed to be flexible and user-friendly, helping you visualize key market levels with ease.
Developed by: John Alex Sagwe, an avid trader and Pine Script enthusiast.
Smart Dual Hull Channel SystemTrend following
Core Components
(1) Hull Moving Average (HMA)
Advantage: Reduces lag through weighted calculations
(2) Dual Channel Construction
Upper Channel and Lower Channel (Use ATR for volatility adjustment)
Traing Protocol:
1. Trend Identification
Price > Upper Channel -> Strong uptrend
Price < Lower Channel -> Strong downtrend
2. Breakout Signals
Long Entry: Close > Upper Channel + Confimation (e.g. RSI < 70)
Short Entry Close < Lower Channel + Confimation (e.g. RSI > 30)
3 Mean Reversion
Buy: Price touches Lower Channel + Bullisj divergence
Sell: Price touches Upper Channel + Bearish divergence
4. Parameter Optimization
Parameter: HMA Period, Typical Value: 20, Adjustment Logic: Shorter for scalping;
Parameter: ATR Multiplier, Typical Value: 2, Adjustment Logic: Higher in volatile markets;
Parameter ATR Period, Typical Value: 14, Adjustment Logic: Match with HMA period.
Liquidity Trendline With Signals [StratifyTrade]combo of a trendline + indicators with signals of trades.
Profit Sniper: PrecisionProfit Sniper: Precision
Overview
Profit Sniper: Precision is a technical analysis indicator designed to identify potential trading opportunities based on the relationship between price action, VWAP (Volume Weighted Average Price), and EMA (Exponential Moving Average). The indicator provides visual signals for entry points along with calculated stop-loss and take-profit levels.
Key Features
Combines VWAP and 9 EMA crossover signals with momentum confirmation
Implements volume analysis to filter low-volume conditions
Includes volatility cycle measurement to avoid extreme market conditions
Provides time-based filtering with customizable timezone settings
Calculates appropriate stop-loss and take-profit levels based on measured moves
Displays visual boxes for trade management
How It Works
The indicator identifies potential trade setups when the 9 EMA crosses the VWAP under specific conditions:
Entry Conditions
Long Entry: 9 EMA crosses above VWAP with bullish momentum and candle confirmation
Short Entry: 9 EMA crosses below VWAP with bearish momentum and candle confirmation
Additional Filters
Momentum: Confirms trend direction using linear regression
Volume: Filters out low volume conditions using historical percentiles
Volatility: Ensures market volatility is within acceptable ranges
Time Range: Optional time-based filtering with customizable timezone
Trade Management
The indicator automatically calculates and displays:
Entry price levels
Stop-loss levels based on measured moves
Take-profit targets (TP1 and TP2)
Visual boxes showing the potential trade range
Settings
Volume Filter Strictness: Adjust sensitivity for volume filtering (strict/moderate/lenient)
Timezone Settings: Choose between exchange timezone or custom timezone
Time Range Settings: Set specific trading hours
Alert Destination: Configure alerts for Telegram or Discord
Information Panel: Toggle and customize the information display
Usage
Apply the indicator to your chart
Adjust settings according to your trading preferences
Monitor for entry signals when the 9 EMA crosses the VWAP with confirmation
Use the calculated stop-loss and take-profit levels for trade management
Optionally enable alerts to receive notifications
This indicator is designed to be used as part of a comprehensive trading strategy and should be combined with proper risk management techniques.
ScalpSwing Pro SetupScript Overview
This script is a multi-tool setup designed for both scalping (1m–5m) and swing trading (1H–4H–Daily). It combines the power of trend-following , momentum , and mean-reversion tools:
What’s Included in the Script
1. EMA Indicators (20, 50, 200)
- EMA 20 (blue) : Short-term trend
- EMA 50 (orange) : Medium-term trend
- EMA 200 (red) : Long-term trend
- Use:
- EMA 20 crossing above 50 → bullish trend
- EMA 20 crossing below 50 → bearish trend
- Price above 200 EMA = uptrend bias
2. VWAP (Volume Weighted Average Price)
- Shows the average price weighted by volume
- Best used in intraday (1m to 15m timeframes)
- Use:
- Price bouncing from VWAP = reversion trade
- Price far from VWAP = likely pullback incoming
3. RSI (14) + Key Levels
- Shows momentum and overbought/oversold zones
- Levels:
- 70 = Overbought (potential sell)
- 30 = Oversold (potential buy)
- 50 = Trend confirmation
- Use:
- RSI 30–50 in uptrend = dip buying zone
- RSI 70–50 in downtrend = pullback selling zone
4. MACD Crossovers
- Standard MACD with histogram & cross alerts
- Shows trend momentum shifts
- Green triangle = Bullish MACD crossover
- Red triangle = Bearish MACD crossover
- Use:
- Confirm swing trades with MACD crossover
- Combine with RSI divergence
5. Buy & Sell Signal Logic
BUY SIGNAL triggers when:
- EMA 20 crosses above EMA 50
- RSI is between 50 and 70 (momentum bullish, not overbought)
SELL SIGNAL triggers when:
- EMA 20 crosses below EMA 50
- RSI is between 30 and 50 (bearish momentum, not oversold)
These signals appear as:
- BUY : Green label below the candle
- SELL : Red label above the candle
How to Trade with It
For Scalping (1m–5m) :
- Focus on EMA crosses near VWAP
- Confirm with RSI between 50–70 (buy) or 50–30 (sell)
- Use MACD triangle as added confluence
For Swing (1H–4H–Daily) :
- Look for EMA 20–50 cross + price above EMA 200
- Confirm trend with MACD and RSI
- Trade breakout or pullback depending on structure
MA200 + Momentum Candle Strategy (No Duplicate Entry)This strategy is suitable for use on the 4H timeframe and above
VBSMI Strategy by QTX Algo SystemsVolatility Based SMI Strategy by QTX Algo Systems
Overview
The Volatility Based SMI Strategy transforms our popular VBSMI with Dynamic Bands indicator into a fully automated strategy that traders can backtest inside TradingView. It retains all core logic from the indicator—including adaptive volatility scaling and trend-based overbought/oversold thresholds—but adds two configurable entry methods, exit conditions, and a dual-mode trade execution engine.
This script is published separately from the VBSMI indicator because some traders use VBSMI as a confluence tool within their existing system, while others prefer a rules-based strategy that can be simulated, optimized, and tracked over time. This script serves the latter use case.
How It Works
Like the original indicator, this strategy uses:
Double-Smoothed SMI Calculation: Based on smoothed momentum using EMA of the relative and full range.
Adaptive Volatility Scaling: Uses a normalized BBWP-based factor to reflect current market volatility.
Dynamic Band Adjustment: Trend direction and strength shift overbought/oversold levels upward or downward.
Band Tilt & Compression Controls: Inputs allow users to define how aggressively the bands shift with trend conditions.
What’s different is the strategy layer—you now choose from two types of entry and exit logic, and two execution styles.
🛠️ Entry & Exit Modes
There are two logic modes for both entry and exit, allowing you to adapt the strategy to your own philosophy:
Cross Mode (SMI Crosses EMA):
Entry: Buy when SMI crosses above its EMA
Exit: Close when SMI crosses below its EMA
Exit OB/OS Mode (Band Exit Logic):
Entry: Buy when price exits dynamic oversold zone (crosses back above tilted oversold band)
Exit: Close when price exits dynamic overbought zone (crosses back below tilted overbought band)
You can mix and match the modes (e.g., enter on Cross, exit on Band Exit).
⚙️ Spot vs. Leverage Mode
Spot Mode
Designed for traders who prefer long-only setups
Enters a long position and holds until the exit condition is met
Prevents overlapping trades—ensures only one position at a time
Leverage Mode
Designed for those testing bi-directional systems (e.g., long/short switching)
Automatically flips between long and short entries depending on the signals
Useful for testing symmetrical strategies or inverse conditions
Both modes work across any asset class and timeframe.
Customization Options
Users can adjust:
Smoothing K/D: Controls how fast or slow the momentum reacts
SMI EMA Length: Determines the responsiveness of the signal line
Trend Lookback Period: Influences how stable the dynamic band tilt is
Band Tilt & Compression Strengths: Refines how far bands adjust based on trend
Entry/Exit Logic Type: Choose between “Cross” or “Exit OB/OS” logic
Trading Mode: Select either "Spot" or "Leverage" depending on your use case
Why It’s Published Separately
This script is not a cosmetic or minor variation of the original indicator. It introduces:
Entry/exit logic
Order execution
Strategy testing capabilities
Mode selection (Spot vs. Leverage)
Signal logic control (Cross vs. Band Exit)
Because the original VBSMI indicator is widely used as a charting and confirmation tool, converting it into a strategy changes how it functions. This version is intended for strategy evaluation and automation, while the original remains available for discretionary and visual use.
Use Cases
This strategy is best suited for:
Evaluating VBSMI-based signals in backtests
Comparing entry and exit logic over time
Testing setups on different assets and timeframes
Automating VBSMI-based logic in a structured and risk-aware framework
Disclaimer
This strategy is for educational purposes only. It does not guarantee future results or profitability. Always test in simulation before using any strategy live, and use proper risk management and trade discipline.
3CRGANG - Histogram (Basic)This indicator provides traders with a unified view of momentum by combining multiple classic oscillators into a single histogram. By aggregating momentum signals into one visual output, it simplifies trend analysis, helping traders identify momentum shifts without managing multiple indicators separately.
What It Does
The 3CRGANG - Histogram (Basic) calculates a momentum-based histogram using a user-selected oscillator (e.g., RSI, MACD, MFI, RVI, Stochastic, Stochastic RSI, or TMASlope). The histogram is plotted with color-coded bars to indicate bullish, bearish, or neutral momentum, alongside predefined alert levels and a trend status table for quick reference.
Why It’s Useful
This script addresses the challenge of monitoring multiple momentum indicators by consolidating them into a single histogram. Each oscillator measures momentum differently (e.g., RSI tracks price strength, MACD focuses on moving average convergence, MFI incorporates volume), but the script normalizes these signals into a unified output. This reduces chart clutter and provides a clear, actionable signal for identifying trend direction, making it easier for traders to focus on key momentum shifts across various market conditions.
How It Works
The script follows these steps to generate the histogram:
Oscillator Selection: Traders choose one oscillator to base the histogram on. For example: RSI measures the speed and change of price movements, MACD tracks the relationship between two exponential moving averages, and MFI combines price and volume to measure buying/selling pressure. The choice of oscillator affects the histogram’s sensitivity to price movements.
Fast Oscillator Calculation: A fast-moving oscillator is computed using the selected method over a user-defined period (default: 8 bars). For instance, RSI calculates the relative strength of price gains versus losses, while MACD computes the difference between short and long EMAs. The result is normalized to a range centered around zero.
Histogram Plotting: The oscillator’s output is adjusted by a modification factor (default: 1) for sensitivity tuning and plotted as a histogram. Positive values indicate bullish momentum, negative values indicate bearish momentum, and values near zero suggest a lack of clear trend.
Color Coding: Bars are colored based on momentum and price direction: green for bullish momentum (price moving upward, histogram value typically positive), red for bearish momentum (price moving downward, histogram value typically negative), and grey for neutral momentum (ranging conditions or unclear trend).
Alert Levels: Predefined buy and sell levels are plotted as dotted lines to mark significant momentum thresholds. For most oscillators, levels are set at 20 (buy) and -20 (sell), representing overbought/oversold conditions based on historical performance. For TMASlope, levels are adjusted to 0.04 and -0.04, as it measures the slope of a triangular moving average relative to the average true range (ATR).
Trend Table: A table in the top-right corner displays the current timeframe’s trend status ("Buy Only," "Sell Only," or "Ranging") based on the histogram value, price direction, and alert levels, along with the histogram’s numerical value.
Underlying Concepts
The script is built on the concept of momentum aggregation, aiming to capture short-term price dynamics while filtering noise. By using a fast-moving oscillator, it emphasizes recent price action, and the histogram format provides a visual summary of momentum strength. The alert levels are derived from typical overbought/oversold thresholds for each oscillator, adjusted to ensure consistency across different methods. The trend table adds a layer of interpretation, helping traders quickly assess whether the momentum aligns with the broader trend.
Use Case
Trending Markets: In a bullish trend, green bars above the buy alert level (e.g., 20) indicate strong upward momentum, suggesting potential long entries. In a bearish trend, red bars below the sell alert level (e.g., -20) suggest short opportunities.
Ranging Markets: Grey bars or values between alert levels indicate a lack of clear momentum, prompting caution or scalping strategies.
Confirmation Tool: Use the histogram to confirm price action signals, such as breakouts or reversals, by ensuring momentum aligns with the direction of the move. For example, a breakout with green bars above the buy level may signal a stronger trend.
Settings
Choose Type: Select the oscillator to use (default: RSI - CLASSIC).
Source: Choose between Close or HL2 price data (default: Close).
Histogram Length: Set the period for oscillator calculation (options: 5, 8, 13; default: 8).
Modification Factor: Adjust the sensitivity of the histogram (default: 1).
Notes
The script supports classic oscillators only and operates on the current timeframe.
If volume data is unavailable for your ticker, MFI calculations may not work; select another oscillator to continue plotting.
Disclaimer
This indicator is a tool for analyzing market trends and does not guarantee trading success. Trading involves risk, and past performance is not indicative of future results. Always use proper risk management.