CJ - EMA Cross Scanner
EMA Cross Scanner
Fast EMAs: 33, 55 (red, blue lines)
Slow EMAs: 100, 200 (cloud)
When the Slow EMAs cross up, cloud turns green (bullish trend).
When the Slow EMAs cross down, cloud is red (bearish trend).
Strategy:
"Bullish Under/Over"
- Price deviates below the Fast EMAs
- Finds support into the Green Cloud
- Reclaims Fast EMAs
- Ignore this signal when the cloud is red.
"Bearish Over/Under"
- Price deviates above the Fast EMAs
- Finds resistance into the Red Cloud
- Closes back below Fast EMAs
- Ignore this signal when the cloud is green.
指標和策略
Z Clean: SMA + Supertrend + Breakout + IntradaySMA+ST. if both green buy, or else sell, Trail SL when ST turns red on buy or green on Sell. MA will help to filter the chart when its sideways, i have see max 4/t trades on side days, but loss will be less as ST will change colour. I have kept the ATR close for fast entry and exit.
✅ TrendSniper Pro✅ SPNIPER ENTRY – Precision Trend Reversal Signals
The SPNIPER ENTRY is a smart trend-following and reversal indicator designed for traders who want timely entries, clear trend confirmation, and clean visuals.
Key Features:
✅ Triple TEMA Trend Confirmation (21, 50, 200): Ensures you're entering only when all moving averages agree on direction.
🎯 Dip/Top Detection: Uses pivot analysis and ATR proximity to detect ideal pullback entries in the prevailing trend.
📉 Stop Loss & Take Profit Zones: ATR-based dynamic SL/TP levels plotted automatically.
📛 False Signal Filter: Avoids multiple entries by maintaining a position until an opposite signal occurs.
📊 Clean Chart Coloring: Candles turn green for confirmed uptrend and red for downtrend—easy to follow.
🔔 Built-in Alerts: Be notified when conditions align perfectly for a high-probability trade.
👁️ Optional TEMA Display: Toggle visibility of trend components for deeper insight.
How it Works:
A buy signal occurs only when:
All 3 TEMA slopes are positive
Price pulls back near a recent pivot low (dip)
A valid uptrend is in place
A sell signal occurs only when:
All 3 TEMA slopes are negative
Price nears a recent pivot high (top)
A confirmed downtrend is active
This indicator is ideal for swing traders, intraday traders, and scalpers who want precise entries based on structure, slope, and volatility.
SQV Indicator Bridge# SQV Indicator Bridge - Quick Guide
## What is SQV Indicator Bridge?
A simple connector that validates your indicator's signals using SQV Lite before displaying them on the chart. Only high-quality signals pass through.
## How It Works
```
Your Indicator → Generates Signals → SQV Lite → Validates Quality → Bridge → Shows Only Valid Signals
```
## Quick Setup (3 Steps)
### Step 1: Prepare Your Indicator
Add these lines to export your signals:
```pinescript
// At the end of your indicator code
plot(longCondition ? 1 : 0, "Long Signal", display=display.none)
plot(shortCondition ? 1 : 0, "Short Signal", display=display.none)
```
### Step 2: Add to Chart (in order)
1. Your indicator
2. SQV Lite
3. SQV Indicator Bridge
### Step 3: Connect Sources
In Bridge settings:
- **Long Signal Source** → Select: YourIndicator: Long Signal
- **Short Signal Source** → Select: YourIndicator: Short Signal
- **SQV Long Valid** → Select: SQV Lite: SQV Long Valid
- **SQV Short Valid** → Select: SQV Lite: SQV Short Valid
- **SQV Score** → Select: SQV Lite: SQV Score
## Visual Settings
| Setting | Description | Default |
|---------|-------------|---------|
| Show Labels | Display BUY/SELL labels | On |
| Label Offset | Distance from candles (0-5 ATR) | 0 |
| Label Size | Tiny, Small, or Normal | Small |
| Long Color | Color for buy signals | Green |
| Short Color | Color for sell signals | Red |
## What You'll See
- **Green "LONG" labels** - When your buy signal passes SQV validation
- **Red "SHORT" labels** - When your sell signal passes SQV validation
- **No label** - When signal quality is too low
## Common Issues & Solutions
### No labels appearing?
1. Check "Use External Signals" is ON in SQV Lite
2. Verify source connections are correct
3. Lower minimum score in SQV Lite (try 60)
4. Test your indicator separately to ensure it generates signals
### Too many/few signals?
- Adjust "Minimum Quality Score" in SQV Lite
- Default is 65, lower for more signals, higher for fewer
### Wrong signals showing?
- Check Trading Mode in SQV Lite matches your strategy (Long Only/Short Only/Both)
## Example Integration
### Simple MA Cross Indicator
```pinescript
//@version=6
indicator("MA Cross with SQV", overlay=true)
// Your logic
fast = ta.sma(close, 20)
slow = ta.sma(close, 50)
longSignal = ta.crossover(fast, slow)
shortSignal = ta.crossunder(fast, slow)
// Plot MAs
plot(fast, color=color.blue)
plot(slow, color=color.red)
// Export for SQV Bridge (REQUIRED!)
plot(longSignal ? 1 : 0, "Long Signal", display=display.none)
plot(shortSignal ? 1 : 0, "Short Signal", display=display.none)
```
## Tips
✅ **DO**:
- Test in "Autonomous Mode" first (SQV Lite setting)
- Use clear signal names in your plots
- Keep signals binary (1 or 0)
❌ **DON'T**:
- Forget to add `display=display.none` to signal plots
- Use values other than 0 and 1 for signals
- Leave "Use External Signals" OFF in SQV Lite
## Alert Setup
1. Enable "Enable Alerts" in Bridge settings
2. Create alert on Bridge (not your indicator)
3. Alert message includes SQV score
Example alert: `"Long Signal Validated | Score: 85"`
## Complete Bridge Code
```pinescript
//@version=6
indicator("SQV Indicator Bridge", overlay=true)
// From your indicator
longSignal = input.source(close, "Long Signal Source", group="Signal Sources")
shortSignal = input.source(close, "Short Signal Source", group="Signal Sources")
// From SQV Lite
sqvLongValid = input.source(close, "SQV Long Valid", group="SQV Sources")
sqvShortValid = input.source(close, "SQV Short Valid", group="SQV Sources")
sqvScore = input.source(close, "SQV Score", group="SQV Sources")
// Settings
showLabels = input.bool(true, "Show Labels", group="Visual")
labelOffset = input.float(0.0, "Label Offset (ATR)", minval=0.0, maxval=5.0, step=0.5, group="Visual")
labelSize = input.string("small", "Label Size", options= , group="Visual")
longColor = input.color(color.green, "Long Color", group="Visual")
shortColor = input.color(color.red, "Short Color", group="Visual")
enableAlerts = input.bool(false, "Enable Alerts", group="Alerts")
// Logic
atr = ta.atr(14)
offset = labelOffset > 0 ? atr * labelOffset : 0
hasValidLong = longSignal > 0 and sqvLongValid > 0 and barstate.isconfirmed
hasValidShort = shortSignal > 0 and sqvShortValid > 0 and barstate.isconfirmed
// Show labels
if showLabels
if hasValidLong
label.new(bar_index, low - offset, "LONG",
style=label.style_label_up,
color=longColor,
textcolor=color.white,
size=labelSize == "tiny" ? size.tiny :
labelSize == "small" ? size.small : size.normal)
if hasValidShort
label.new(bar_index, high + offset, "SHORT",
style=label.style_label_down,
color=shortColor,
textcolor=color.white,
size=labelSize == "tiny" ? size.tiny :
labelSize == "small" ? size.small : size.normal)
// Alerts
if enableAlerts
if hasValidLong
alert("Long Signal Validated | Score: " + str.tostring(sqvScore, "#"), alert.freq_once_per_bar_close)
if hasValidShort
alert("Short Signal Validated | Score: " + str.tostring(sqvScore, "#"), alert.freq_once_per_bar_close)
```
---
**Need help?** Check the full SQV documentation or contact through TradingView messages.
Confluence AVWAP Breakout RibbonThis advanced indicator overlays up to five Anchored VWAPs—Daily Session, Weekly, Monthly, Prior Swing High, and Prior Swing Low—directly onto your chart. It highlights a "confluence ribbon" between these levels, visually mapping the real-time price zone where institutional activity may cluster. The ribbon is colored dynamically so you can instantly spot which side of value price is breaking towards.
How it works:
• The script automatically recalculates each selected VWAP anchor in real time.
• For swing-high and swing-low anchors, it starts a new VWAP every time a new price swing is confirmed.
• You can enable or disable any anchor via the script’s Inputs panel to suit your trading style or asset.
Entry Signals:
• A long breakout (green up-arrow) triggers only on the first candle that closes above all active VWAP anchors.
• A short breakout (red down-arrow) triggers only on the first close below all active anchors.
• These signals help confirm when price makes a decisive move out of a key value zone, filtering out false or weak breakouts.
How to use:
Add the indicator to any chart or timeframe.
In the Inputs, choose which VWAP anchors to activate.
Watch for the ribbon color and width: a wider ribbon means more confluence between price zones.
Trade signals (arrows) are only painted on the first candle to break out above or below all anchors, making them easy to see and avoiding repaint.
Optional: Set up alerts using the built-in TradingView alerts for each breakout direction.
Customization:
• Toggle each anchor on/off for your preferred strategy.
• Adjust the swing length for pivots.
• Change ribbon opacity for better chart visibility.
Why it’s unique:
• Most VWAP scripts only plot a single line, or show basic session anchors.
• This indicator lets you stack up to five important VWAP anchors and requires consensus: price must clear all active anchors in one move to signal a breakout.
• The live ribbon and dynamic visuals provide clear confluence zones and breakout cues that go beyond traditional VWAP use.
Best practices:
• Works well on all major assets (stocks, crypto, FX, indices) and all chart timeframes.
• For highest reliability, use two or more anchors at a time.
• Consider using alongside your preferred trend or volatility filter.
For educational and research purposes only. This is not financial advice or a recommendation to buy or sell. Always use proper risk management and test before live trading.
Support/Resistance LevelsThis indicator automatically detects the most relevant support and resistance levels based on recent pivot points.
Main Features:
✅ Automatic detection of support and resistance zones
✅ Fully customizable: line style, thickness, and colors
✅ Optional support/resistance zones (based on percentage)
✅ High/Low zone fill for recent extremes
✅ Auto-labeling of S/R levels on the chart
✅ Configurable line extension (right side only or both sides)
⚙️ Custom Settings:
Toggle S/R levels on or off
Choose line style (solid, dotted, dashed)
Set support/resistance colors
Adjust line width
Enable/disable zone display
Set zone width as a percentage
🔎 Use Cases:
Quickly identify key price levels
Trade with confidence around bounces and breakouts
Works on any market and any timeframe
Risk Context + Position SizingWhat This Indicator Does (And Doesn't Do)
This is NOT a buy/sell signal indicator. Instead, it's a risk management tool that helps you understand two critical things:
How volatile the market is right now (compared to recent history)
How much you should risk on your next trade based on that volatility
The Core Problem It Solves
Imagine you always risk the same amount on every trade - say $100. But sometimes the market is calm and predictable, other times it's wild and unpredictable. This indicator says: "Hey, the market is going crazy right now - maybe only risk $70 instead of your usual $100."
How It Works
Measures Market "Nervousness"
Uses ATR (Average True Range) to measure how much prices typically move each day
Compares today's volatility to the past 100 days
Shows you a percentile (0-100%) - higher = more volatile
Categorizes Risk Environment
LOW (green): Market is calm, you can size up slightly
NORMAL: Standard conditions, use your normal position size
HIGH (red): Market is jumpy, reduce your position size
EXTREME (dark red): Market is in chaos, significantly reduce size
Important Disclaimers
This doesn't predict price direction - it only measures current market stress
You still need a trading strategy - this just helps you size it properly
Past volatility doesn't guarantee future volatility
Always combine with proper stop losses and risk management
Volume Spectrum Grid – Liquidity Mapping Engine[mark804]🔷 Volume Spectrum Grid – Liquidity Mapping Engine
The Volume Spectrum Grid is a professional-grade indicator built to help traders identify hidden liquidity zones, volume concentration areas, and potential support/resistance levels with precise visual cues. Whether you trade Forex, Gold, Indices, or Crypto, this tool provides a powerful edge by combining volume profile analysis and real-time volume bubble visualization in a single framework.
Key Features
1 Volume Profile Grid: Automatically scans the last X bars (adjustable via LookBack) to map horizontal volume bins, highlighting areas where the most volume has been traded.
2 Volume Bubbles: Plots dynamic bubbles at each candle, scaling their size and color based on real-time volume intensity (using standard deviation logic).
2 Liquidity Zones (POC Lines): Detects and marks high-volume clusters (Point of Control zones) with adaptive lines, helping traders anticipate areas of strong support/resistance.
3 High/Low Anchors: Automatically labels the highest high and lowest low in the lookback period to define structural extremes.
4 Gradient-Based Visuals: Uses color gradients to indicate buy-side (bullish) and sell-side (bearish) pressure based on current price action and volume.
How It Works
1. Volume Normalization: Uses 200-period standard deviation to measure whether current volume is small, average, or exceptionally large.
2. Grid Binning: Breaks down the price range into 100 equally spaced bins and accumulates volume for each.
3. Box Plotting: If enabled, volume boxes are drawn where volume clusters exist — visually showing zones of interest.
4. POC Line Drawing: Liquidity levels are drawn over high-volume bins to serve as dynamic SR zones.
5. Bubble Plotting: Displays a volume bubble at each bar based on intensity level, scaling from tiny to huge.
Why Use This Tool?
Helps identify institutional-level liquidity zones before price reacts.
Perfect for Smart Money Concepts (SMC), Volume Profile Analysis, and Order Flow Strategy.
Visually clean and optimized for performance even with high data density.
Fully customizable colors and toggle switches to turn ON/OFF bubbles, profile, and liquidity levels.
Pure Price Action ICT Tools+SIGNALS v4[LEGENDFX AI]ict + ob and signals buy/sell enhanced of market structure
Combined: Strat Dashboard + FVG + M&E StarsSTRAT MIX + VECTOR + SUPPORT
In financial markets, support and resistance are fundamental concepts in technical analysis used to identify price levels where an asset's price tends to pause or reverse. They are essentially areas on a chart where buying or selling pressure is expected to be strong enough to temporarily halt or reverse the prevailing price trend.
Here's a breakdown:
* Support: This is a price level where an asset's downward movement is expected to stop due to increased buying interest. Think of it as a "floor" where demand is strong enough to prevent the price from falling further. When the price approaches a support level, buyers tend to step in, leading to a potential bounce or reversal upwards. The more times a price level has held as support in the past, the stronger it's generally considered.
* Resistance: This is a price level where an asset's upward movement is expected to stop due to increased selling interest. It acts like a "ceiling" where supply is strong enough to prevent the price from rising higher. When the price approaches a resistance level, sellers tend to step in, leading to a potential pullback or reversal downwards. Similar to support, the more times a price level has acted as resistance, the more significant it's often seen.
Key characteristics:
* Supply and Demand: Support and resistance levels are a reflection of the continuous interplay between supply (sellers) and demand (buyers) in the market.
* Dynamic Nature: These levels are not fixed lines but rather zones. They can also "flip roles"; if a resistance level is broken and the price moves above it, that former resistance can then become a new support level, and vice-versa.
* Psychological Importance: These levels often derive their strength from collective market psychology, as many traders and investors recognize and react to the same price points.
[Top] Unified Divergence DetectorThe Unified Divergence Detector (UDD) is a powerful tool designed to identify both regular and hidden divergences across multiple oscillators—RSI, CCI, and Stochastic—in a single unified indicator.
Unlike other divergence tools that focus on one source at a time, this script cross-checks multiple indicators simultaneously and consolidates the results into a single signal. Labels appear only when at least one divergence is detected, with optional color-coding to distinguish the number and type of divergences:
🐂 Bullish Divergence: Signals a potential reversal or continuation to the upside.
🐻 Bearish Divergence: Signals a potential reversal or continuation to the downside.
The script lets users configure:
Whether to detect regular, hidden, or both types of divergence.
Pivot lookback parameters and divergence detection range.
Separate label colors for 1, 2, or 3+ confirmations from different indicators.
Tooltips are dynamically generated and offer guidance on interpreting each signal based on the oscillator sources involved and the divergence type. Labels are intelligently placed to avoid clutter and display only the strongest, most relevant signals.
⸻
Potential Uses
Trend Reversals: Spot early signs of exhaustion and prepare for a trend change.
Trend Continuations: Confirm existing trends via hidden divergence signals.
Multi-Timeframe Confirmation: Combine this indicator with higher timeframe trend tools to validate entries or exits.
Custom Strategy Building: Integrate into more complex strategies involving price action or volume filters.
⸻
This indicator is ideal for traders who value confirmation from multiple sources and prefer clear, high-confidence signals over constant alerts. It works well across all timeframes and asset classes.
Multi Pivot Point & Central Pivot Range - Nadeem Al-QahwiThis indicator combines four advanced trading modules into one flexible and easy-to-use script:
Traditional Pivot Points:
Calculates classic support and resistance levels (PP, R1–R5, S1–S5) based on previous session data. Ideal for identifying key turning points and mapping out the daily, weekly, or monthly structure.
Camarilla Levels:
Provides six upper and lower pivot levels (H1–H6, L1–L6) derived from volatility and closing price formulas. Especially effective for intraday reversal, mean reversion, and finding overbought/oversold extremes.
Central Pivot Range (CPR):
Plots the median, top, and bottom of the value area each session. CPR width instantly highlights whether the market is likely to trend (narrow CPR) or remain range-bound (wide CPR).
Developing CPR projects the evolving range for the current period—essential for real-time analysis and pre-market planning.
Dynamic Zone Levels (DZL):
Automatically detects and highlights clusters of pivots to reveal high-probability support/resistance zones, filtering out market “noise.”
DZL alerts notify you whenever price breaks or retests these key areas, making it easier to spot momentum trades and avoid false signals.
Key Features:
Multi-timeframe flexibility: Use with daily, weekly, monthly, yearly, or custom timeframes—even rare ones like biyearly and decennial.
Modular design: Activate or hide any system (Traditional, Camarilla, CPR, DZL) as you need.
Bilingual interface: Every setting and label is shown in both English and Arabic.
Full customization: Control visibility, color, style, and placement for every level and label.
Historical depth: Plot up to 5,000 pivot/zones back for deep analysis and backtesting.
Smart alerts: Get instant notifications on true S/R breakouts or retests (from DZL).
How to Use:
Trend Trading:
Watch for a very narrow CPR to identify potential trending days—trade in the breakout direction above/below the CPR.
Range Trading:
When CPR is wide, expect sideways movement. Fade reversals at R1/S1 or within the CPR boundaries.
Breakouts:
Use DZL alerts to capture momentum as price breaks or retests dynamic support/resistance zones.
Multi-Timeframe Confluence:
Combine CPR and pivot levels from multiple timeframes for higher-probability entries and exits.
All calculations and logic are fully open.
BTC Spot-Volume-Sum(Top40 CEX)Top 40 CEX's total Bitcoin-Spot-Trading volume in one chart.
Including BTC-USD, BTC-USDT and BTC-USDC.
You can change your favorite CEX's trading pairs in the source code!
No Supply No Demand (NSND) – Volume Spread Analysis ToolThis indicator is designed for traders utilizing Volume Spread Analysis (VSA) techniques. It automatically detects potential No Demand (ND) and No Supply (NS) candles based on volume and price behavior, and confirms them using future price action within a user-defined number of lookahead bars.
Confirmed No Demand (ND): Detected when a bullish candle has volume lower than the previous two bars and is followed by weakness (next highs swept, close below).
Confirmed No Supply (NS): Detected when a bearish candle has volume lower than the previous two bars and is followed by strength (next lows swept, close above).
Adjustable lookahead bars parameter to control the confirmation window.
This tool helps identify potential distribution (ND) and accumulation (NS) areas, providing early signs of market turning points based on professional volume logic. The dot appears next to ND or NS.
3 EMA trong 1 NTT CAPITALThe 3 EMA in 1 NTT CAPITAL indicator provides an overview of the market trend with three EMAs of different periods, helping to identify entry and exit points more accurately, thus supporting traders in making quick and effective decisions.
机器学习1. 策略说明
本策略仅供学习、研究和回测使用,不构成任何投资建议。市场有风险,投资需谨慎。
2. 风险提示
本策略基于历史数据回测,不保证未来表现。
实际交易中可能受滑点、手续费、流动性等因素影响,导致与回测结果不符。
任何交易决策均需结合个人风险承受能力,建议在模拟账户测试后再考虑实盘。
3. 责任限制
开发者及代码提供者不对任何交易损失负责。
使用者需自行承担所有交易风险,并确保理解策略逻辑。
4. 使用条款
本策略代码可自由使用,但禁止用于商业用途。
未经授权,不得修改代码后声称原创发布。
5. 法律声明
金融市场交易涉及高风险,请在充分了解相关风险后谨慎操作。
Disclaimer
1. Strategy Description
The Lorentzian Classification strategy is provided for educational, research, and backtesting purposes only and does not constitute investment advice. Trading involves risks; proceed with caution.
2. Risk Disclosure
This strategy is based on historical data and does not guarantee future performance.
Real trading may be affected by slippage, commissions, liquidity, and other factors, leading to deviations from backtest results.
Any trading decisions should consider personal risk tolerance. Testing on a demo account is strongly recommended before live trading.
3. Limitation of Liability
The developer and code provider are not responsible for any trading losses.
Users assume all trading risks and must fully understand the strategy logic before implementation.
4. Terms of Use
This strategy code is free to use but prohibited for commercial purposes.
Unauthorized modification and redistribution as original work is not permitted.
5. Legal Notice
Financial market trading carries significant risks. Ensure full awareness of associated risks before engaging in any transactions.
📌 Important Notice: It is strongly advised to test the strategy on a demo account for at least 3 months before live trading and to strictly manage position sizing.
(Customize as needed and include in strategy description or chart notes.)
EMA Pullback Indicator [ATR-based]🟦 EMA Pullback Indicator
This indicator identifies pullbacks in trending markets using the crossover of two EMAs (Fast and Slow). When a pullback occurs during a valid trend, an entry is triggered after price resumes in the trend direction. ATR is used to dynamically calculate stop-loss and take-profit levels.
🔍 Strategy Logic:
Trend Detection: EMA(8) vs EMA(21)
Pullback Zones:
In a bullish trend, a pullback is when price dips below the Fast EMA
In a bearish trend, a pullback is when price rises above the Fast EMA
Entry Trigger: Re-entry into trend direction after pullback
Stop Loss / Take Profit:
Based on ATR × SL/TP multipliers
Exit Options:
TP/SL Hit
Exit on new pullback (optional toggle)
Multiple Entry Toggle: Choose whether to allow multiple pullback entries or not
⚙️ Inputs:
Fast EMA Length
Slow EMA Length
ATR Period
SL Multiplier
TP Multiplier
Allow Multiple Entries
Exit on New Pullback
📊 Visuals:
Colored EMAs and fill zone between them
Grey bars during pullback
Blue/Black trend bar colors
Entry markers and TP/SL levels with labels
Real-time ATR display in corner
📢 Alerts Included:
Long/Short Pullback Entry
Take Profit Hit
Stop Loss Hit
Big Trade % Heatmap### Big Trade % Heatmap
**Quick overview**
This indicator highlights where “whale” activity is clustered by showing what fraction of the recent candles contained *large‑value trades*. A candle is considered “big” when its notional volume (`volume × close`) exceeds your chosen USD threshold. You instantly see:
* **Percent of big candles** in the last *N* bars, refreshed at the cadence you pick.
* **On‑chart labels & markers** every refresh, so the chart stays clean.
* **Optional heat‑map background** that turns orange (>20 %) or green (>50 %) when big‑trade concentration spikes.
* **Ready‑made alert** when big‑trade dominance crosses 50 %.
---
#### How it works
1. **Trade size per candle** – Calculates `close × volume` to estimate dollars traded.
2. **Threshold filter** – Flags candles whose value is above *Big Trade Threshold (\$)*.
3. **Look‑back window** – Counts what percentage of the last *Lookback Window (X Candles)* were “big.”
4. **Refresh interval** – Repeats the measurement only every *Refresh Interval (Every X Candles)* to avoid label spam.
5. **Visuals** –
* A small blue ▼ above the bar + a text label such as `35.00 % > $25 000`.
* Background shading (green/orange) for quick, at‑a‑glance sentiment.
---
#### Inputs
| Input | Purpose | Default |
| -------------------------------------- | ----------------------------------------------------- | ------- |
| **Lookback Window (X Candles)** | How many recent bars to sample for the % calculation. | 20 |
| **Refresh Interval (Every X Candles)** | How often to display a new label/marker. | 5 |
| **Big Trade Threshold (\$)** | Minimum USD value for a candle to count as “big.” | 10 000 |
Tune these to the symbol and timeframe you trade (e.g., raise the threshold for BTC‑USDT 1‑h, lower it for micro‑caps).
---
#### Alerts
Enable **“High Big Trade %”** to get notified the moment more than half of the last *N* candles qualify as big trades—handy for spotting sudden accumulation or distribution.
---
#### Typical use cases
* **Breakout confirmation** – A surge in big‑trade % just before price escapes a range can validate the move.
* **Whale spotting** – Detect hidden accumulation on pullbacks or aggressive selling into rallies.
* **Filter noise** – Combine with your favorite trend indicator; only act when both align.
---
> *Built with Pine Script v6. Always back‑test before trading live; this tool is for educational purposes and not financial advice.*
Indian Stocks Daily, Weekly, Monthly, All-Time High-LowDaily high, low, last week high low, current week high low, current month high low.
TREV Candles - Range-Based Trend ReversalTREV Candles - Range-Based Trend Reversal Chart Implementation
What is a Trend Reversal (TREV) Chart?
A Trend Reversal chart, also known as a Point & Figure chart variation, is a unique charting method that focuses on price movement thresholds rather than time intervals. Unlike traditional candlestick charts where each candle represents a fixed time period, TREV candles form only when price moves by predefined amounts in ticks.
TREV charts eliminate time-based noise and focus purely on significant price movements, making them ideal for identifying genuine trend changes and continuation patterns.
How TREV Candles Work
This indicator implements true TREV logic with two critical thresholds:
Trend Size: The number of ticks price must move in the current direction to form a trend continuation candle
Reversal Size: The number of ticks price must move against the current direction to form a reversal candle and change the overall trend direction
Key TREV Rules Enforced:
Direction Changes Only Through Reversals: You cannot go from bullish trend directly to bearish trend - a reversal candle must occur first
Threshold-Based Formation: Candles form only when price thresholds are breached, not on time
Logical Wick Placement: Wicks only appear on the "open" side of candles where price temporarily moved against the formation direction
Multiple Candles Per Bar: When price moves significantly, several TREV candles can form within a single time-based bar
Four Distinct Candle Types
Bullish Trend (Green): Continues upward movement when trend threshold is hit
Bearish Trend (Red): Continues downward movement when trend threshold is hit
Bullish Reversal (Blue): Changes from bearish to bullish direction when reversal threshold is breached
Bearish Reversal (Orange): Changes from bullish to bearish direction when reversal threshold is breached
Practical Trading Applications
Trend Identification: Clear visual representation of when trends are continuing vs. reversing
Noise Reduction: Filters out insignificant price movements that don't meet threshold requirements
Support/Resistance: TREV levels often act as significant support and resistance zones
Breakout Confirmation: When price forms multiple trend candles in succession, it confirms strong directional movement
Reversal Signals: Reversal candles provide early warning of potential trend changes
Technical Implementation Features
Intelligent Price Path Processing: Analyzes the assumed price path within each bar (Low→High→Close for bullish bars, High→Low→Close for bearish bars)
Automatic Tick Size Detection: Works with any instrument by automatically detecting the correct tick size
Manual Override Option: Allows manual tick size specification for custom analysis
Impossible Scenario Prevention: Built-in logic prevents impossible wick configurations and direction changes
PineScript Optimization: Efficient state management and drawing limits handling for smooth performance
Comprehensive Styling Options
Each of the four candle types offers complete visual customization:
Body Colors: Independent color settings for each candle type's body
Border Colors: Separate border color customization
Border Styles: Choose from solid, dashed, or dotted borders
Wick Colors: Individual wick color settings for each candle type
Default Color Scheme:
🟢 Bullish Trend: Green body and wicks
🔵 Bullish Reversal: Blue body and wicks
🔴 Bearish Trend: Red body and wicks
🟠 Bearish Reversal: Orange body and wicks
Configuration Guidelines
Trend Size: Larger values create fewer, more significant trend candles. Smaller values increase sensitivity
Reversal Size: Should typically be smaller than trend size. Controls how easily the trend direction can change
Tick Size: Use "auto" for most instruments. Manual override useful for custom point values or backtesting
Ideal Use Cases
Swing Trading: Identify major trend changes and continuation patterns
Scalping: Use smaller thresholds to catch quick reversals and momentum shifts
Position Trading: Use larger thresholds to filter noise and focus on major trend moves
Multi-Timeframe Analysis: Compare TREV patterns across different threshold settings
Support/Resistance Trading: TREV close levels often become significant price zones
Why This Implementation is Superior
True TREV Logic: Enforces proper trend reversal rules that many implementations ignore
No Impossible Scenarios: Prevents wicks on both sides of candles and impossible direction changes
Professional Visualization: Clean, customizable appearance suitable for serious analysis
Performance Optimized: Handles large datasets without lag or drawing limit issues
Educational Value: Helps traders understand the difference between time-based and threshold-based charting
Perfect for traders who want to see beyond time-based noise and focus on what price is actually doing - moving in significant, measurable amounts that matter for trading decisions.
EMA Crossover Indicator with UTC Time Filter and Profit LabelsThe PineScript code provided is an indicator for TradingView that implements two user-defined Exponential Moving Averages (EMAs) with default periods of 5 and 9, generates buy and sell signals at EMA crossovers, filters these signals based on a user-specified UTC time window, and adds labels when the price moves 100 points in the profitable direction from the entry point. Below is a detailed description of the script's functionality, structure, and key components:
Overview
Purpose: The indicator plots two EMAs on the chart, identifies crossover points to generate buy and sell signals, restricts signals to a user-defined UTC time range, and labels instances where the price moves 100 points in the profitable direction after a signal.
Platform:
Written in PineScript v5 for TradingView.
Indicator Type:
Overlay indicator (plotted directly on the price chart).
Key Features
User-Defined EMAs:
The script calculates two EMAs based on user inputs:
Short EMA : Default period is 5 bars.
- **Long EMA**:
Default period is 9 bars.
Users can adjust these periods via input settings (minimum period of 1).
2. Crossover Signals:
Buy Signal: Triggered when the Short EMA crosses above the Long EMA
( ta.crossover ).
Sell Signal: Triggered when the Short EMA crosses below the Long EMA
( ta.crossunder ).
Labels are added at these crossover points:
"BUY" label (green, positioned below the bar) for bullish crossovers.
"SELL" label (red, positioned above the bar) for bearish crossovers.
3. UTC Time Filter:
Users can specify a UTC time window during which signals are valid.
Inputs include:
Start Hour and Minute (default: 00:00 UTC).
End Hour and Minute (default: 23:59 UTC).
The isTimeInRange() function checks if the current bar's timestamp falls within this
window, handling both same-day and overnight ranges (e.g., 22:00 to 02:00).
Only crossovers occurring within the specified time window generate signals and
labels.
4. Profit Tracking (+100 Points):
The script tracks the price movement after a buy or sell signal:
For a buy signal , a "+100" label is added if the price increases by 100 points
or more from the entry price.
For a sell signal , a "+100" label is added if the price decreases by 100 points
or more from the entry price.
The points threshold is user-configurable (default: 100.0 points).
Labels are color-coded (green for buy, red for sell) and placed only once per signal to
avoid chart clutter.
5. Visual Elements:
EMAs : Plotted on the chart (Short EMA in blue, Long EMA in red).
Labels:
Buy/Sell crossover labels are placed at the low/high of the bar, respectively.
"+100" labels are placed at the low (for buy) or high (for sell) of the bar where
the profit threshold is met.
Code Structure
Indicator Declaration:
indicator("EMA Crossover Indicator with UTC Time Filter and Profit Labels",
overlay=true): Defines the indicator name and sets it to overlay on the price chart.
Inputs:
emaShortPeriod and emaLongPeriod: Integer inputs for EMA periods
(defaults: 5 and 9).
startHour, startMinut, endHour, endMinute: Integer inputs for UTC time window
(defaults: 00:00 to 23:59).
pointsThreshold: Float input for the profit target (default: 100.0 points).
EMA Calculations:
emaShort = ta.ema(close, emaShortPeriod): Computes the Short EMA using the
closing price.
emaLong = ta.ema(close, emaLongPeriod): Computes the Long EMA.
Time Filter Function:
isTimeInRange(0: Converts the current bar's UTC time and user inputs to minutes,
then checks if the current time is within the specified range. Handles overnight
ranges correctly.
State Management:
Variables: entryPrice (stores signal entry price), isBuySignal and isSellSignal (track
active signal type), `profitLabelPlaced` (prevents multiple profit labels).
Reset on new signals to prepare for the next trade.
Signal Detection and Labeling:
Detects crossovers using ta.crossover and ta.crossunder.
Places "BUY" or "SELL" labels if the crossover occurs within the UTC time window.
Monitors price movement post-signal and places a "+100" label when the threshold is
met.
Usage
Setup: Add the indicator to a TradingView chart. Adjust EMA periods, UTC time
window, and points threshold via the indicator settings.
Output:
Two EMA lines (blue and red) appear on the chart.
"BUY" and "SELL" labels appear at valid crossover points within the UTC time window.
"+100" labels appear when the price moves 100 points in the profitable direction after
a signal.
Applications: Useful for traders who want to:
Follow EMA crossover strategies.
Restrict trading signals to specific time sessions (e.g., London or New York session).
- Identify when a trade reaches a specific profit target.
Notes
Points Definition: The 100-point threshold is in the same units as the asset's
price (e.g., $100 for stocks, 100 pips for forex). Adjust `pointsThreshold` for
different assets.
Time Zone: Signals are filtered based on UTC time, ensuring consistency across
markets.
Label Management: The script ensures only one "+100" label per signal to keep
the chart clean.
Limitations: The profit label is triggered only once per signal and does not
account for multiple hits of the threshold unless a new signal occurs.
If you need further clarification or want to add features (e.g., alerts, additional profit levels, or different time filters), let me know!
Breakout of fractals with alternating signals📌 Indicator Name: Break of Fractal Body (with Alternating Signals and Extended Lines)
🔍 Purpose:
This indicator detects swing highs and lows (fractals) based on candle body closes, not wicks. It then:
Confirms a breakout when the price closes beyond the body of the fractal.
Alternates signals: a "long" signal only appears after a "short", and vice versa.
Draws a horizontal line from the original fractal bar (where it formed) to the current bar where the breakout happens.
⚙️ Key Features:
✅ Fractals Based on Candle Bodies Only:
A top fractal is where the candle body is higher than len candles on both sides.
A bottom fractal is where the candle body is lower than len candles on both sides.
✅ Breakout Confirmation:
A bullish breakout is when price closes above the last top body fractal.
A bearish breakout is when price closes below the last bottom body fractal.
Breakouts are only recognized if they alternate: you won’t get multiple long/shorts in a row.
✅ Visual Elements:
🔺 Red triangle: Top body fractal.
🔻 Green triangle: Bottom body fractal.
📈 Label BUY: when price breaks a top body fractal.
📉 Label SELL: when price breaks a bottom body fractal.
➖ Horizontal line: drawn from the fractal bar to the breakout bar, showing the exact level of breakout.
✅ Alerts:
Alert when a bullish breakout occurs.
Alert when a bearish breakout occurs.