Prev Day High/Low + 15min Range Boxes//@version=5
indicator("Prev Day High/Low + 15min Range Boxes (Next Day Display)", overlay=true, dynamic_requests=true)
rth_tz = "America/New_York"
rth_start = timestamp(rth_tz, year, month, dayofmonth, 9, 30)
rth_end = timestamp(rth_tz, year, month, dayofmonth, 16, 0)
// Get 15-minute data
= request.security(syminfo.tickerid, "15", )
// Define yesterday's RTH
curr = time("15")
prev = curr - 24 * 60 * 60 * 1000
yesterday_start = timestamp(rth_tz, year(prev), month(prev), dayofmonth(prev), 9, 30)
yesterday_end = timestamp(rth_tz, year(prev), month(prev), dayofmonth(prev), 16, 0)
// Collect yesterday's RTH extremes
var float prevHigh = na
var float prevLow = na
var int prevHighTime = na
var int prevLowTime = na
var float prevHighBody = na
var float prevLowBody = na
inRTH_yesterday = time15 >= yesterday_start and time15 <= yesterday_end
if inRTH_yesterday
if na(prevHigh) or hi15 > prevHigh
prevHigh := hi15
prevHighTime := time15
prevHighBody := na
if na(prevLow) or lo15 < prevLow
prevLow := lo15
prevLowTime := time15
prevLowBody := na
// Capture the body of the next 15m candle after the extremes
highNextCond = not na(prevHighTime) and time15 == prevHighTime + 15 * 60 * 1000
lowNextCond = not na(prevLowTime) and time15 == prevLowTime + 15 * 60 * 1000
if highNextCond
prevHighBody := math.max(op15, cl15)
if lowNextCond
prevLowBody := math.min(op15, cl15)
// ⏱ Today’s RTH
today_start = timestamp(rth_tz, year, month, dayofmonth, 9, 30)
today_end = timestamp(rth_tz, year, month, dayofmonth, 16, 0)
inRTH_today = time >= today_start and time <= today_end
// Draw the yellow boxes on current RTH using previous day’s high/low
var box highBox = na
var box lowBox = na
if inRTH_today and not na(prevHigh) and not na(prevHighBody)
if na(highBox)
highBox := box.new(left=today_start, right=today_end, top=prevHigh, bottom=prevHighBody,
xloc=xloc.bar_time, border_color=color.yellow, bgcolor=color.new(color.yellow, 70), border_width=1)
if inRTH_today and not na(prevLow) and not na(prevLowBody)
if na(lowBox)
lowBox := box.new(left=today_start, right=today_end, top=prevLowBody, bottom=prevLow,
xloc=xloc.bar_time, border_color=color.yellow, bgcolor=color.new(color.yellow, 70), border_width=1)
指標和策略
Daily EMAs (8, 21 & 50) with BandDescription:
This script plots the Daily EMAs (8, 21, and 50) on any intraday or higher timeframe chart. It provides a clear, multi-timeframe view of market trends by using daily exponential moving averages (EMAs) and a dynamic visual band. I use this on the major indexes to decide if I should be mostly longing or shorting assets.
-In addition to identifying the trend structure, the 8-Day EMA often serves as a key area where buyers or sellers may become active, depending on the market direction:
-In an uptrend, the 8 EMA can act as a dynamic support zone, where buyers tend to re-enter on pullbacks.
-In a downtrend, the same EMA may act as resistance, where sellers become more aggressive.
-The script also includes a colored band between the 8 and 21 EMAs to highlight the short-term trend bias:
-Green fill = 8 EMA is above the 21 EMA (bullish structure).
Blue fill = 8 EMA is below the 21 EMA (bearish structure).
The 50-Day EMA is included to give additional context for intermediate-term trend direction.
Features:
- Daily EMA levels (8, 21, and 50) calculated regardless of current chart timeframe.
- 8 EMA acts as a potential buyer/seller zone based on trend direction.
- Color-coded band between 8 and 21 EMAs:
- Green = Bullish short-term bias
- Blue = Bearish short-term bias
- Customizable price source and EMA offset.
- Suitable for trend trading, pullback entries, and higher-timeframe confirmation.
Use Cases:
Identify key dynamic support/resistance areas using the 8 EMA.
Assess short-, medium-, and intermediate-term trend structure at a glance.
Enhance confluence for entry/exit signals on lower timeframes.
TBMC CloudsTBMC Clouds translates the Triple Banded Momentum Cloud (TBMC) into a normalized, non-overlay format, plotting the relationship between your base, trend, and signal moving averages in units of standard deviations. This reveals how far each element diverges from its context — not just in price, but in volatility-adjusted terms.
Trend Cloud: (Trend MA − Base MA) / stdev of Base
Signal Cloud: (Signal MA − Trend MA) / stdev of Trend
Close Line: (Price − Signal MA) / stdev of Signal
Each component is normalized by its own timeframe’s standard deviation, making this chart ideal for comparing momentum intensity and trend distance across multiple horizons. Horizontal bands at configurable thresholds (e.g., ±1, ±2, ±3 stdev) act as reference levels for extension, mean reversion, or volatility breakout logic.
Force Acheteurs vs VendeursRSI Money Flow and Obv. Working like an RSI so above 70 it's buyers who control the flow and below 30 it's the seller.
Triple Banded Momentum CloudTriple Banded Momentum Cloud (TBMC) is an advanced, customizable momentum indicator that blends multiple moving averages with layered volatility zones. It builds on the DBMC framework by allowing full control over the type and length of three distinct moving averages: signal, trend, and base.
Signal MA tracks short-term price momentum.
Trend MA anchors the core standard deviation bands.
Base MA provides long-term market context.
Three volatility bands (A/B/C) adapt dynamically to market conditions using user-defined standard deviation multipliers.
Momentum Cloud shades between signal and base for a directional read.
This tool is highly adaptable — suitable for trend-following, mean reversion, or volatility breakout strategies. Customization is key: choose MA types (SMA, EMA, RMA, etc.) to match your trading context.
Double Banded Momentum CloudDouble Banded Momentum Cloud (DBMC) extends the logic of BMC by layering two volatility bands around a moving average to create stacked momentum thresholds. It compares a fast Exponential Moving Average (EMA) to a slow Simple Moving Average (SMA), while introducing inner and outer bands based on standard deviation multipliers.
SMA defines the central trend anchor.
EMA captures short-term price momentum.
Band A (inner) represents normal volatility range.
Band B (outer) flags extended or extreme conditions.
Momentum Cloud between EMA and SMA visualizes bias.
By observing how the EMA interacts with these bands, traders can distinguish between ordinary momentum and more aggressive or potentially exhausted moves.
Banded Momentum CloudBanded Momentum Cloud (BMC) is a visual momentum indicator that blends trend-following averages with volatility-based thresholds. It compares a fast Exponential Moving Average (EMA) to a slower Simple Moving Average (SMA), while using a standard deviation band around the SMA to define momentum boundaries.
SMA provides the baseline trend.
EMA responds faster and highlights momentum shifts.
Standard Deviation Bands (above and below SMA) act as adaptive thresholds.
Momentum Cloud fills the space between the EMA and SMA to illustrate the directional bias and intensity.
When the EMA pushes beyond the upper or lower band, it may signal increased momentum or volatility in that direction.
WLD Estrategia Compra/Venta Multi IndicadoresA BUY signal is only triggered when all the following are true:
RSI < 30
Indicates oversold territory—potential for a bounce.
MACD crossover upward
The MACD line crosses above the signal line, a bullish momentum shift.
MA50 > MA200
Confirms an overall bullish trend (Golden Cross).
Price below lower Bollinger Band
Shows price is at an extreme low (potential reversal zone).
Stochastic RSI < 20
Adds confirmation of short-term oversold condition.
When all are true simultaneously, a BUY signal is triggered.
A SELL signal is triggered when all the following are true:
RSI > 70
Indicates the asset is overbought—risk of pullback.
MACD crossover downward
The MACD line crosses below the signal line—bearish shift.
MA50 < MA200
Confirms a bearish trend (Death Cross).
Price above upper Bollinger Band
Suggests price is at an extreme high—potential exhaustion.
Stochastic RSI > 80
Confirms short-term overbought momentum.
When all conditions align, a SELL signal is triggered.
MCPZ - Meme Coin Price Z-Score [Da_Prof]Meme Coin Price Z-score (MCPZ). Investor preference for meme coin trading may signal irrational exuberance in the crypto market. If a large spike in meme coin price is observed, a top may be near. Similarly, if a long price depression is observed, versus historical prices, that generally corresponds to investor apathy, leading to higher prices. The MEME.C symbol allows us to evaluate the sentiment of meme coin traders. Paired with the Meme Coin Volume (MCV) and Meme Coin Gains (MCG) indicators, the MCPZ helps to identify tops and bottoms in the overall meme coin market. The MCPZ indicator helps identify potential mania phases, which may signal nearing of a top and apathy phases, which may signal nearing a bottom. A moving average of the Z-score is used to smooth the data and help visualize changes in trend. In back testing, I found a 10-day sma of the MCPZ works well to signal tops and bottoms when extreme values of this indicator are reached. The MCPZ seems to spend a large amount of time near the low trigger line and short periods fast increase into mania phases.
Meme coins were not traded heavily prior to 2020, but the indicator still picks a couple of tops prior to 2020. Be aware that the meme coin space also increased massively in 2020, so mania phases may not spike quite as high moving forward and the indicator may need adjusting to catch tops. It is recommended to pair this indicator with the MCG and MCV indicators to create an overall picture.
The indicator grabs data from the MEME.C symbol on the daily such that it can be viewed on other symbols.
Use this indicator at your own risk. I make no claims as to its accuracy in forecasting future trend changes of memes or any other asset.
Hope this is helpful to you.
--Da_Prof
Envelope Momentum CloudEnvelope Momentum Cloud (EMC) is a momentum visualization tool using moving averages and fixed-percentage envelopes. It compares an EMA (fast) to an SMA (slow), with static envelopes around the SMA to create momentum thresholds.
SMA anchors the trend baseline.
EMA highlights momentum shifts relative to the SMA.
Envelopes are placed at a user-defined % above and below the SMA.
Momentum Cloud visually fills the gap between EMA and SMA to show directional pressure.
Crosses beyond the envelope boundaries can indicate overextended moves or possible trend shifts.
AO Divergence StrategyQuick strategy tester to set up and find the best indicator values
Recommended values:
AO Fast EMA/SMA Length: 5
AO Slow EMA/SMA Length: 25
Use EMA instead of SMA for AO: ❌ (unchecked)
Right Lookback Pivot: 24
Left Lookback Pivot: 18
Maximum Lookback Range: 60
Minimum Lookback Range: 5
Bullish Trace: ✅
Hidden Bullish Trace: ❌
Bearish Trace: ✅
Hidden Bearish Trace: ❌
Status Line Input: ✅
Do your own testing and research, don't just rely on the posting chart that differs from the recommended settings.
Multi-Time-Frame EMA Sampler (6-pack) [DarthSHO]📈 Multi-Timeframe EMA Sampler (6-Pack)
Author: DarthSHO fpgrainger@gmail.com
Type: Overlay
Category: Moving Averages/Multi-Timeframe Analysis
License: Open-source
This script plots up to six EMAs calculated from a higher timeframe of your choice (e.g., 1H, Daily) and samples them at a user-defined update interval (e.g., every 5 or 15 minutes). The result is a precise, non-repainting display of higher-timeframe EMAs — visible on any chart, including lower timeframes.
🔧 Features
✅ Choose the source timeframe for EMA calculations (e.g., 1H, Daily)
✅ Set a custom update interval (sampling timeframe)
✅ Plot up to 6 EMAs, each with:
Individual length
Color customization
On/off visibility toggle
✅ Fully overlays on current chart timeframe
✅ Updates on bar close of your chosen sampling interval (no repainting)
🧠 Use Cases
See key EMAs from higher timeframes without switching charts
Lock in values only once per sampling interval (e.g., only update 1H EMAs every 15min)
Avoid noisy intra-bar flicker or repainting
Combine with price action or support/resistance for confluence setups
⚙️ Example Settings
EMA Calculation Timeframe: 1H
Update/Sampling Timeframe: 15m
Chart Timeframe: Any (1m, 5m, 1H, etc.)
🚫 No Repainting
This script uses lookahead=barmerge.lookahead_on to ensure EMAs are stable and only update at the end of each sampling bar.
💡 Tip
Use the shorter sampling_tf (like 5 or 15) to keep your EMA lines responsive but reliable — or set it equal to the calculation TF to see them step only once per bar.
✨ Created by Darth SHO
Helping traders "Escape the Matrix" with clarity and confluence.
Discord, education, alerts, and more.
% / ATR Buy, Target, Stop + Overlay & P/L% / ATR Buy, Target, Stop + Overlay & P/L
This tool combines volatility‑based and fixed‑percentage trade planning into a single, on‑chart overlay—with built‑in profit‑and‑loss estimates. Toggle between ATR or percentage modes, plot your Buy, Target and Stop levels, and see the dollar gain or loss for a specified position size—all in one interactive table and chart display.
NOTE: To activate plotted lines, price labels, P/L rows and table values, enter a Buy Price greater than zero.
What It Does
Mode Toggle: Choose between “ATR” (volatility‑based) or “%” (fixed‑percentage) calculations.
Buy Price Input: Manually enter your entry price.
ATR Mode:
Target = Buy + (ATR × Target Multiplier)
Stop = Buy − (ATR × Stop Multiplier)
Percentage Mode:
Target = Buy × (1 + Target % / 100)
Stop = Buy × (1 – Stop % / 100)
P/L Estimates: Specify a dollar amount to “invest” at your Buy price, and the script calculates:
Gain ($): Profit if Target is hit
Loss ($): Cost if Stop is hit
Visual Overlay: Draws horizontal lines for Buy, Target and Stop, with optional price labels on the chart scale.
Interactive Table: Displays Buy, Target, Stop, ATR/timeframe info (in ATR mode), percentages (in % mode), and P/L rows.
Customization Options
Line Settings:
Choose color, style (solid/dashed/dotted), and width for Buy, Target, Stop lines.
Extend lines rightward only or in both directions.
Table Settings:
Position the table (top/bottom × left/right).
Toggle individual rows: Buy Price; Target (multiplier or %); Stop (multiplier or %); Target ATR %; Stop ATR %; ATR Time Frame; ATR Value; Gain ($); Loss ($).
Customize text colors for each row and background transparency.
General Inputs:
ATR length and optional ATR timeframe override (e.g. use daily ATR on an intraday chart).
Target/Stop multipliers or percentages.
Dollar Amount for P/L calculations.
How to Use It for Trading
Plan Your Entry: Enter your intended Buy Price and position size (dollar amount).
Select Mode: Toggle between ATR or % mode depending on whether you prefer volatility‑based or fixed offsets.
Assess R:R and P/L: Instantly see your Target, Stop levels, and potential profit or loss in dollars.
Visual Reference: Lines and price labels update in real time as you tweak inputs—ideal for live trading, backtesting or trade journaling.
Ideal For
Traders who want both volatility‑based and percentage‑based exit options in one tool
Those who need on‑chart P/L estimates based on position size
Swing and intraday traders focused on objective, rule‑based trade management
Anyone who uses ATR for adaptive stops/targets or fixed percentages for simpler exits
Volume Delta Pressure Tracker ⚡ by GSK-VIZAG-AP-INDIA📢 Title:
Volume Delta Pressure Tracker ⚡ by GSK-VIZAG-AP-INDIA
📝 Short Description (for script title box):
Real-time volume pressure tracker with estimated Buy/Sell volumes and Delta visualization in an Indian-friendly format (K, L, Cr).
📃 Full Description
🔍 Overview:
This indicator estimates buy and sell volumes using candle structure (OHLC) and displays a real-time delta table for the last N candles. It provides traders with a quick view of volume imbalance (pressure) — often indicating strength behind price moves.
📊 Features:
📈 Buy/Sell Volume Estimation using the candle’s OHLC and Volume.
⚖️ Delta Calculation (Buy Vol - Sell Vol) to detect pressure zones.
📅 Time-stamped Table displaying:
Time (HH:MM)
Buy Volume (Green)
Sell Volume (Red)
Delta (Color-coded)
🔢 Indian Number Format (K = Thousands, L = Lakhs, Cr = Crores).
🧠 Fully auto-calculated — no need for tick-by-tick bid/ask feed.
📍 Neatly placed bottom-right table, customizable number of rows.
🛠️ Inputs:
Show Table: Toggle the table on/off
Number of Bars to Show: Choose how many recent candles to include (5–50)
🎯 Use Cases:
Identify hidden buyer/seller strength
Detect volume absorption or exhaustion
✅ Compatibility:
Works on any timeframe
Ideal for intraday instruments like NIFTY, BANKNIFTY, etc.
Ideal for volume-based strategy confirmation.
🖋️ Developed by:
GSK-VIZAG-AP-INDIA
CerberusFX Greedy SquirrelCerberusFX Greedy Squirrel
Ever wish you could trade with the cunning of a squirrel snatching the best nuts? Meet the CerberusFX Greedy Squirrel, a TradingView indicator that’s equal parts clever and cheeky! Licensed under Mozilla Public License 2.0, this script spots bullish and bearish signals with the finesse of a forest critter, using dual moving averages (MA) to filter out the market’s chaff.
Toggle it to signal on every candle for rapid-fire trades or stick to alternating buy/sell signals for a smoother ride. Choose your MA flavor (EMA or SMA), tweak fast and slow MA lengths, and decide whether to filter signals above/below one or both MAs. It’s like giving a squirrel a GPS to find the juiciest opportunities! Green triangles mark buy signals, red triangles flag sells, and alerts keep you in the loop. Perfect for traders who want precision without losing their sense of humor.
Simple Moving AveragesSMA (5, 20, 60, 120)
This is a simple moving average indicator that use 5, 20, 60, 120 days. I added 5 so that I can see a bit more short term SMA for swing trades.
PSX OBV Divergence Labels (1H/4H/1D/1W, Enhanced)This script identifies and labels bullish and bearish OBV divergences on the price chart, specifically optimized for swing trading in the Pakistan Stock Exchange (PSX) but also works well across global equities, indices, and crypto.
🔍 What It Does
📈 Bullish OBV Divergence (Green “BUY” label):
Price makes a new low while OBV forms a higher low — suggesting accumulation and a potential reversal.
📉 Bearish OBV Divergence (Red “SELL” label):
Price makes a new high while OBV forms a lower high — indicating distribution and potential weakness.
All signals are confirmed on candle close and filtered for smart volume and OBV stability, helping reduce noise and false positives.
⚙️ How It Works
OBV Divergence Lookback: Scans the last N bars (default 20) for divergence patterns
Volume Spike Filter: Bullish divergences are only considered valid if volume exceeds a smoothed average × multiplier
OBV Slope Confirmation: Confirms that OBV is moving in the expected direction across recent bars before signaling
Multi-Timeframe Support: Designed for 1H, 4H, 1D, and 1W timeframes — ideal for position and swing traders
📈 Best Use Cases
✅ PSX stocks (KSE100, KMI30)
✅ Crypto, indices, or commodities where volume data is available
✅ Works best when combined with price action, support/resistance, or market structure
📎 Parameters
OBV Divergence Lookback: Length of historical window to evaluate OBV vs. price divergence
Volume Smoothing: Period for volume moving average
Volume Spike Multiplier: Threshold for volume strength (default = 1.0x)
OBV Stability Confirmation Bars: OBV must show consistent direction across this many bars before confirming divergence
🧠 Pro Tip
Use divergence signals in confluence with:
Fair Value Gaps
Market Structure Breaks (BMS)
HTF Order Blocks or key SR levels
… for much stronger trade setups.
🧠 Aggressive RSI + EMA Strategy with TP/SL⚙️ How It Works
RSI-Based Entries:
Buys when RSI is below 40 (oversold) and trend is up (fast EMA > slow EMA).
Sells when RSI is above 60 (overbought) and trend is down (fast EMA < slow EMA).
Trend Filter:
Uses two EMAs (short/long) to filter signals and avoid trading against momentum.
Risk Management:
Default Take Profit: +1%
Default Stop Loss: -0.5%
This creates a 2:1 reward-to-risk setup.
📊 Backtest Settings
Initial Capital: $10,000
Order Size: 10% of equity per trade (adjustable)
Commission: 0.04% per trade (Binance spot-style)
Slippage: 2 ticks
Tested on: BTC/USDT – 15min timeframe (suitable for high-frequency scalping)
Trade Sample: (Adjust this based on your actual results.)
🔔 Features
Built-in alerts for buy/sell signals
Visual chart plots for entry/exit, RSI, EMAs
Customizable inputs for RSI thresholds, TP/SL %, EMA lengths
💡 Why It’s Unique
Unlike many RSI systems that trade blindly at 70/30 levels, this strategy adds a trend filter to boost signal quality.
The tight TP/SL configuration is tailored for scalpers and intraday momentum traders who prefer quick, consistent trades over long holds.
MA Deviation Indicator# MA Deviation Indicator (MADI)
A TradingView indicator designed to visualize price deviation from moving averages and help identify optimal entry and exit points.
## Overview
This indicator measures how much the current price deviates from its moving average and provides the following features:
- Moving average line display
- Configurable deviation rate levels
- Signal display based on deviation rates
- Real-time deviation rate calculation
## Key Features
### 1. Moving Average Display
- Choose between **EMA (Exponential Moving Average)** or **SMA (Simple Moving Average)**
- Default period: 21
- Displayed as an aqua-colored line
### 2. Deviation Rate Levels
- **Level 1 (Default 0.7%)**: Light gray lines
- **Level 2 (Default 2.0%)**: Dark gray lines
- Displayed symmetrically above and below the moving average
### 3. Deviation Rate Signals
- **Red triangles**: Within 0.7% deviation (optimal range)
- **Orange triangles**: 0.7%-2.0% deviation (caution range)
- Displayed as small triangles at the top of the chart
## Configuration Parameters
### Moving Average Settings
| Parameter | Default Value | Description |
|-----------|---------------|-------------|
| Moving Average Period | 21 | Calculation period for moving average (1-200) |
| Moving Average Type | EMA | Type of moving average (EMA/SMA) |
### Deviation Rate Settings
| Parameter | Default Value | Description |
|-----------|---------------|-------------|
| Deviation Rate 1 (%) | 0.7 | First deviation rate level (0.1-10.0%) |
| Deviation Rate 2 (%) | 2.0 | Second deviation rate level (0.1-10.0%) |
### Display Settings
| Parameter | Default Value | Description |
|-----------|---------------|-------------|
| Show Moving Average Line | true | Show/hide moving average line |
| Show Deviation Rate Signals | false | Show/hide deviation rate signals |
| Show Deviation Rate Levels | true | Show/hide deviation rate level lines |
---
**Disclaimer**: This indicator is not investment advice. In actual trading, combine multiple indicators and implement proper risk management.
EMA20 + Volume + RSI 35–70 + MACD ConfirmationsThis is a testing strategy for EMA20 where the target could be 5% or for a short term momentum.