KeyzoneKeyzone is a dynamic support and resistance framework that identifies price reaction zones using the highest and lowest values over specific lookback periods.
It consists of four pairs of upper and lower lines:
– Keyzone 3 (light green): short-term micro swing zones
– Keyzone 8 (dark green): short-term intraday zones
– Keyzone 21 (orange): medium-term structural zones
– Keyzone 89 (red): long-term major zones
Each Keyzone adapts automatically to price movement, helping traders see where market participants are likely to react. The shorter zones (3, 8) capture quick pullbacks, while the longer zones (21, 89) reveal deeper institutional levels. This makes Keyzone a clear, multi-layered visual map of market structure that adjusts with every new candle.
Indicadores y estrategias
Volume Area 80 Rule Pro - Adaptive RTHSummary in one paragraph
Adaptive value area 80 percent rule for index futures large cap equities liquid crypto and major FX on intraday timeframes. It focuses activity only when multiple context gates align. It is original because the classic prior day value area traverse is fused with a daily regime classifier that remaps the operating parameters in real time. 
Scope and intent
• Markets. ES NQ SPY QQQ large cap equities BTC ETH major FX pairs and other liquid RTH instruments
• Timeframes. One minute to one hour with daily regime context
• Default demo used in the publication. ES1 on five minutes
• Purpose. Trade only the balanced days where the 80 percent traverse has edge while standing aside or tightening rules during trend or shock
Originality and usefulness
• Unique fusion. Prior day value area logic plus a rolling daily regime classifier using percentile ranks of realized volatility and ADX. The regime remaps hold time end of window stop buffer and value area coverage on each session
• Failure mode addressed. False starts during strong trend or shock sessions and weak traverses during quiet grind
• Testability. All gates are visible in Inputs and debug flags can be plotted so users can verify why a suggestion appears
• Portable yardstick. The regime uses ATR divided by close and ADX percent ranks which behave consistently across symbols
Method overview in plain language
The script builds the prior session profile during regular trading hours. At the first regular bar it freezes yesterday value area low value area high and point of control. It then evaluates the current session open location the first thirty minute volume rank the open gap rank and an opening drive test. In parallel a daily series classifies context into Calm Balance Trend or Shock from rolling percentile ranks of realized volatility and ADX. The classifier scales the rules. Calm uses longer holds and a slightly wider value area. Trend and Shock shorten the window reduce holds and enlarge stop buffers.
Base measures
• Range basis. True Range smoothed over a configurable length on both the daily and intraday series
• Return basis. Not required. ATR over close is the unit for regime strength
Components
• Prior Value Area Engine. Builds yesterday value area low value area high and point of control from a binned volume profile with automatic TPO fallback and minimum integrity guards
• Opening Location. Detects whether the session opens above the prior value area or below it
• Inside Hold Counter. Counts consecutive bars that hold inside the value area after a re entry
• Volume Gate. Percentile of the first thirty minutes volume over a rolling sample
• Gap Gate. Percentile rank of the regular session open gap over a rolling sample
• Drive Gate. Opening drive check using a multiple of intraday ATR
• Regime Classifier. Percentile ranks of daily ATR over close and daily ADX classify Calm Balance Trend Shock and remap parameters
• Session windows optional. Windows follow the chart exchange time
Fusion rule
Minimum satisfied gates approach. A re entry must hold inside the value area for a regime scaled number of bars while the volume gap and drive gates allow the setup. The regime simultaneously scales value area coverage end minute time stop and stop buffer.
Signal rule
• Long suggestion appears when price opens below yesterday value area then re enters and holds for the required bars while all gates allow the setup
• Short suggestion appears when price opens above yesterday value area then re enters and holds for the required bars while all gates allow the setup
• WAIT shows implicitly when any required gate is missing
• Exit labels mark target touch stop touch or a time based close
Inputs with guidance
Setup
• Signal timeframe. Uses the chart by default
• Session windows optional. Start and end minutes inside regular trading hours
• Invert direction is not used. The logic is symmetric
Logic
• Hold bars inside value area. Typical range 3 to 12. Raising it reduces trades and favors better traverses. Lowering it increases frequency and risk of false starts
• Earliest minute since RTH open and Latest minute since RTH open. Typical range 0 to 390. Reducing the latest minute cuts late session trades
• Time stop bars after entry. Typical range 6 to 30. Larger values give setups more room
Filters
• Value area coverage. Typical range 0.70 to 0.85. Higher coverage narrows the traverse but accepts fewer days
• Bin size in ticks. Typical range 1 to 8. Larger bins stabilize noisy profiles
• Stop buffer ticks beyond edge. Typical range 2 to 20. Larger buffers survive noise
• First thirty minute volume percentile. Typical range 0.30 to 0.70. Higher values require more active opens
• Gap filter percentile. Typical range 0.70 to 0.95. Lower values block more gap days
• Opening drive multiple and bars. Higher multiple or longer bars block strong directional opens
Adaptivity
• Lookback days for regime ranks. Typical 150 to 500
• Calm RV percentile. Typical 25 to 45
• Trend ADX percentile. Typical 55 to 75
• Shock RV percentile. Typical 75 to 90
• End minute ratio in Trend and Shock. Typical 0.5 to 0.8
• Hold and Time stop scales per regime. Use values near one to keep behavior close to static settings
Realism and responsible publication
• No performance claims. Past results never guarantee future outcomes
• Shapes can move while a bar forms and settle on close
• Sessions use the chart exchange time
Honest limitations and failure modes
• Economic releases and thin liquidity can break the balance premise
• Gap heavy symbols may work better with stronger gap filters and a True Range focus
• Very quiet regimes reduce signal contrast. Consider longer windows or higher thresholds
Legal
Education and research only. Not investment advice. Test in simulation before any live use.
Gann Angles by Calendar DateA script that draws Gann angles. 1x1/1x2/1x3/1x4/1x8
Manually enter the date and price.
Gann often wrote that if the price is above the 1x1 angle, the trend is strong. If it is below, the trend is weak.
Preference is given to charts with trading days.
The color of the angles can be changed as desired.
Structure Pro by MurshidfxInspired by the 'mentfx Structure' indicator created by Anton (mentfx) on TradingView,
## Overview
Structure Pro tracks market structure by maintaining an adaptive dealing range and its midpoint. Swing highs and lows become structural boundaries, and the script responds to confirmed breakouts by recalculating the active range. Labels highlight the latest trend flip so the chart stays readable while the range evolves.
## Core Logic
- Detects swing highs/lows using a configurable pivot strength and promotes confirmed pivots to structural levels.
- Applies a percentage buffer to decide when price truly breaks structure; once triggered, the opposite boundary is recalculated with an anchor search that looks back through historical bars.
- Computes equilibrium as the midpoint between the current structural high and low so you can gauge premium versus discount zones.
- Emits a single BULL or BEAR label when the trend state changes, keeping only the most recent signal on the chart.
## How to Use
1. Open a clean chart and apply only this script.
2. Select a swing strength that matches the scale you want to monitor (lower values for responsive intraday swings, higher values for broader moves).
3. Tune the structure sensitivity percentage if you prefer tighter or looser confirmation before declaring a breakout.
4. Track DRH/DRL for the current dealing range, use the equilibrium line as a mean-reversion guide, and look to the BULL/BEAR label for structure confirmation.
5. Combine the levels with your own execution, risk, and position rules—this script does not manage orders.
## Inputs
- Swing Point Strength: bars required on both sides to confirm a pivot.
- Structure Break Sensitivity: percentage buffer applied to the range before calling a breakout.
- Dealing Range display: toggles for visibility, line width/color, label text, and label size.
- Equilibrium display: line style, width, and color controls.
- Trend Signals: enable/disable labels, adjust text size, and pick label colors.
## Notes
- Designed for live structure tracking; the script relies on confirmed pivots and does not peek into future data.
- Built to be chart-agnostic for standard candles; non-standard chart types can distort the measurements.
- Published open-source so traders can review and verify the implementation details.
MTF Support & Resistance (Optimized)🧠 Smart Multi-Timeframe Support & Resistance (4H / 1H)
This advanced indicator automatically detects, clusters, and visualizes high-probability support and resistance levels across multiple timeframes — giving traders a clean and intelligent market map that adapts to price action in real time.
🔍 How It Works
The script scans historical 4-hour and 1-hour charts to identify swing highs and lows using pivot logic.
It then applies ATR-based clustering to merge nearby levels, filters weak or irrelevant zones, and highlights the most significant price reaction areas based on the number of touches and proximity to the current price.
Each level’s thickness and transparency are dynamically adjusted by strength:
Thicker lines = more confirmations (stronger level)
Fainter lines = weaker, less-tested level
⚙️ Main Features
✅ Multi-Timeframe Analysis (4H + 1H)
✅ Automatic pivot detection and level clustering
✅ Smart filtering based on ATR, proximity, and touch count
✅ Dynamic line width and opacity that scale with level strength
✅ Minimal clutter — only the most relevant nearby levels are displayed
✅ Color-coded visualization for quick interpretation
🔴 Red = 4H Resistance
🟢 Lime = 4H Support
🟠 Orange = 1H Resistance
🟦 Aqua = 1H Support
🎯 Ideal For
Scalpers, swing traders, and intraday analysts who want:
A clear visual map of major reaction zones
Automatic detection of high-confluence levels
A smart, adaptive system that works across assets and timeframes
📈 Usage Tips
Combine with volume, order-flow, or market-structure tools for confluence.
Use higher-strength levels (thicker lines) as bias zones for entries and exits.
Enable or disable 4H/1H visibility to match your trading style.
Built with precision and performance in mind — this Smart S&R system transforms raw swing data into a readable, multi-layered price map for confident trading decisions.
Mum Formasyonları TespitiIt is used to detect candles.
It is designed to analyze all the candles that form.
The most frequently formed candles are displayed on the price chart.
Gann Astronomical Turning PointsThis is a comprehensive Pine Script  that implements W.D. Gann's astronomical theories to identify potential market turning points. Here's a detailed breakdown of the script:
Overview
The script identifies and displays astronomical events (sun angles, moon phases, and Mercury retrogrades) that Gann theorists believe correlate with market turning points. It also analyzes historical price performance following these events to provide statistical significance.
Key Components
1. Input Parameters
Date Range: Users can set the analysis period (start and end dates)
Display Options: Toggle visibility of different astronomical events and tables
Analysis Settings: Configure the lookback period for price change analysis (1-20 days)
2. Astronomical Calculations
The script includes several functions to calculate celestial positions:
getDaysSinceEpoch(t): Calculates days since January 1, 2000 (reference point)
getSunLongitude(t): Computes the Sun's position in the ecliptic (0-360°)
getMoonPhase(t): Determines the Moon's phase angle relative to the Sun
getMercuryLongitude(t): Calculates Mercury's position in the ecliptic
3. Gann Critical Angles (Sun Events)
The script identifies when the Sun reaches four critical angles that Gann considered significant:
0° Aries (Spring Equinox)
90° Cancer (Summer Solstice)
180° Libra (Fall Equinox)
270° Capricorn (Winter Solstice)
These are detected by tracking when the Sun's longitude crosses these specific angles.
4. Moon Phases
Four key moon phases are identified:
New Moon: Moon passes between Earth and Sun
First Quarter: Moon is 90° east of Sun
Full Moon: Moon is opposite the Sun
Last Quarter: Moon is 270° east of Sun
5. Mercury Retrograde Periods
The script detects when Mercury appears to move backward in its orbit:
Identifies start and end dates of retrograde motion
Displays these periods as highlighted zones on the chart
6. Price Change Analysis
For each astronomical event, the script:
Calculates the percentage price change over a user-defined lookback period
Categorizes changes as positive or negative
Stores this data for statistical analysis
7. Statistical Significance
The script calculates several metrics for each event type:
Average Price Change: Mean percentage change following events
Up/Down Ratio: Number of positive vs. negative changes
Accuracy Percentage: How often the dominant direction occurred
8. Visual Elements
The script includes multiple display components:
Event Labels
Sun Angles: Orange sun symbols displayed above price bars
Moon Phases: Moon phase emojis displayed below price bars
Mercury Retrograde: Red boxes highlighting the retrograde periods
Information Tables
Events Table: Shows upcoming and recent astronomical events
Significance Analysis Table: Displays statistical performance of each event type
Forecast Section: Identifies the next upcoming event and predicted direction
9. Forecasting Functionality
The script predicts market direction for the next astronomical event based on:
Historical average price change for that event type
Statistical accuracy of previous similar events
Color-coded forecast (green for bullish, red for bearish)
This script offers an interesting implementation of Gann's astronomical theories, but should be used as part of a broader analysis rather than as a standalone trading system.
Disclaimer: This indicator is for educational purposes only. Past performance does not guarantee future results. Always conduct your own research and risk assessment before trading.
Sector Analysis [SS]Introducing the most powerful sector analysis tool/indicator available, to date, in Pine! 
This is a whopper indicator, so be sure to read carefully to ensure you understand its applications and uses! 
First of all, because this is a whopper, let's go over the key functional points of the indicator. 
The indicator compares the 11 main sector ETFs against whichever ticker you are looking at. 
The functions include the following: 
 
  Ability to pull technicals from the sectors, such as RSI, Stochastic and Z-Score; 
  Ability to look at the correlation of the sector ETF to the current ticker you are looking at. 
  Ability to calculate the R2 value between the ticker you are looking at and each sector. 
  The ability to run a Two Tailed T-Test against the log returns of the Ticker of interest and the Sector (to analyze statistically significant returns between sectors/tickers). 
  The ability to analyze the distribution of returns across all sector ETFs. 
  The ability to pull buying and selling volume across all sector ETFs. 
  The ability to create an integrated moving average using a sector ETF to predict the expected close range of a ticker of interest. 
 
These are the highlight functions. Below, I will go more into them, what they mean and how to use them. 
 Pulling Technicals 
This is pretty straight forward. You can pull technicals, such as RSI, Stochastic and Z-Score from all the sector ETFs and view them in a table. 
See below for the example: 
 Pulling Correlation 
In order to see which sector your ticker of interest follows more closely, we need to look first at correlation and then at R2. 
The correlation will look at the immediate relationship over a specified time. A highly positive value, indicates a strong, symbiotic relationship, which the sector and the ticker follow each other. This would be represented by a correlation of 0.8 or higher. 
A strong negative correlation, such as -0.8 or lower, indicates that the sector and the ticker are completely opposite. When one goes up, the other goes down and vice versa. 
You can adjust your correlation assessment length directly in the settings menu: 
If you want to use a sector ETF to find the expected range for a ticker of interest, it is important to locate the highest, POSITIVE, correlation value. Here are the results for MSFT at a correlation lookback of 200: 
In this example, we can see the best relationship is with the ETF XLK. 
 Analysis of R2 
R2 is an important metric. It essentially measures how much of the variance between 2 tickers are explained by a simple, linear relationship. 
A high R2 means that a huge degree of variance can be explained between the 2 tickers. A low R2 means that it cannot and that the 2 tickers are likely not integrated or closely related. 
In general, if you want to use the sector ETF to find the mean and trading range and identify over-valuation/over-extension and under-extension statistically, you need to see both a high correlation and a high R-Squared. These 2 metrics should be analyzed together.
Let's take a look at MSFT: 
Here, despite the correlation implying that XLK was the ticker we should use to analyze, when we look at the R Squared, we see actually, we should be using XLI. 
XLI has a strong positive relationship with MSFT, albeit a bit less than XLK, but the R2 is solid, > 0.9, indicating the XLI explains much of MSFT's variance. 
 Two Tailed T-Test 
A two tailed T-test analyzes whether there is a statistically significant difference between 2 different groups, or in our case, tickers. 
The T-Test is conducted on the log returns of the ticker of interest and the sector. You then can see the P value results, whether it is significant or not. Let's look at MSFT again: 
Looking at this, we can see there is no statistically significant difference in returns between MSFT and any of the sectors.
We can also see the SMA of the log returns for more detailed comparison. 
If we were to observe a significant finding on the T-Test metrics, this would indicate that one sector either outperforms or underperforms your  ticker to a statistically significant degree! If you stumble upon this, you would check the average log returns to compare against the average returns of your ticker of interest, to see whether there is better performance or worse performance from the sector ETF vs. your ticker of interest. 
 Analyzing the Distribution 
The indicator will also analyze the distribution of returns. 
This is an interesting option as it can help you ascertain risk. Normally distributed returns imply mean reverting behavviour. Deviations from that imply trending behaviour with higher risk expectancy. If we look at the distribution statistics currently over the last 200 trading days, here are the results: 
Here, we can see all show signs of trending, as none of the returns are normally distributed. The highest risk sectors are XLK and XLY. 
Why are they the highest risk? 
Because the indicator has found a heavy right tailed distribution, indicated sudden and erratic mean reversion/losses are possible. 
 Creating an MA 
Now for the big bonus of the indicator!
The indicator can actually create a regression based range from closely correlated sectors, so you can see, in sectors that are strongly correlated to your ticker, whether your ticker is over-bought, oversold or has mean reverted.
Let's look at MSFT using XLI, our previously identified sector with a high correlation and high R2 value: 
The results are pretty impressive.
You can see that MSFT  has rode the mean of the sector on the daily timeframe for quite some time. Each time it over extended itself above the sector implied range, it mean reverted.
Currently, if you were to trade based on Pairs or statistics, MSFT is no trade as it is currently trading at its sector mean. 
If you are a visual person, you can have the indicator plot the mean reversion points directly: 
Green represents a bullish mean reversion and red a bearish mean reversion. 
 Concluding Remarks 
If you like pair trading, following the link between sectors and tickers or want a more objective way to determine whether a ticker is over-bought or oversold, this indicator can help you. 
In addition to doing this, the indicator can provide risk insights into different sectors by looking at the distribution, as well as identify under-performing sectors or tickers.
It can also shed light on sectors that may be technically over-bought or oversold by looking at Z-Score, stochastics and RSI. 
Its a whopper and I really hope you find it helpful and useful!
Thanks everyone for reading and checking this out! 
Safe trades! 
RSI Exit + BB-RSI Combo📊 RSI Exit + BB-RSI Combo Indicator
This indicator combines RSI overbought/oversold exit signals with Bollinger Band re-entry conditions to highlight potential reversal or retracement zones.
1️⃣ RSI Exit Signal  
   - When RSI drops below 70 after being overbought → 🔴 "RSI" label  
   - When RSI rises above 30 after being oversold → 🟢 "RSI" label  
   - Works on 15m / 30m / 1h / 4h / 1D timeframes  
2️⃣ BB-RSI Combo Signal  
   - When an RSI divergence forms and  
   - The candle body re-enters the Bollinger Band on 1H+ timeframe  
     → Combo signal (💎 diamond) is shown  
💡 How to Use  
- Use RSI exit signals to spot overextension corrections  
- Use combo signals to identify high-probability reversal or rebound setups  
- Suitable for both swing and short-term trading  
Pinbar MTF - No Repaint# Pinbar MTF - No Repaint Indicator
## Complete Technical Documentation
---
## 📊 Overview
**Pinbar MTF (Multi-Timeframe) - No Repaint** is a professional-grade TradingView Pine Script indicator designed to detect high-probability pinbar reversal patterns with advanced filtering systems. The indicator is specifically engineered to be **100% non-repainting**, making it reliable for both live trading and backtesting.
### Key Features
✅ **Non-Repainting** - Signals only appear AFTER bar closes, never disappear
✅ **Three-Layer Filter System** - ATR, SWING, and RSI filters
✅ **Automatic SL/TP Calculation** - Based on risk:reward ratios
✅ **Real-time Alerts** - TradingView notifications for all signals
✅ **Visual Trade Management** - Lines, labels, and areas for entries, stops, and targets
✅ **Backtesting Ready** - Reliable historical data for strategy testing
---
## 🎯 What is a Pinbar?
A **Pinbar (Pin Bar/Pinocchio Bar)** is a single candlestick pattern that indicates a potential price reversal:
### Bullish Pinbar (BUY Signal)
- **Long lower wick** (rejection of lower prices)
- **Small body at the top** of the candle
- Shows buyers rejected sellers' attempt to push price down
- Forms at support levels or swing lows
- Entry signal for LONG positions
### Bearish Pinbar (SELL Signal)
- **Long upper wick** (rejection of higher prices)
- **Small body at the bottom** of the candle
- Shows sellers rejected buyers' attempt to push price up
- Forms at resistance levels or swing highs
- Entry signal for SHORT positions
---
## 🔧 How the Indicator Works
### 1. **Pinbar Detection Logic**
The indicator analyzes the **previous closed bar  ** to identify pinbar patterns:
```
Bullish Pinbar Requirements:
- Lower wick > 72% of total candle range (adjustable)
- Upper wick < 28% of total candle range
- Close > Open (bullish candle body)
Bearish Pinbar Requirements:
- Upper wick > 72% of total candle range (adjustable)
- Lower wick < 28% of total candle range
- Close < Open (bearish candle body)
```
**Why check  ?** By analyzing the previous completed bar, we ensure the pattern is fully formed and won't change, preventing repainting.
---
### 2. **Three-Layer Filter System**
#### 🔍 **Filter #1: ATR (Average True Range) Filter**
- **Purpose**: Ensures the pinbar has significant size
- **Function**: Only signals if pinbar range ≥ ATR value
- **Benefit**: Filters out small, insignificant pinbars
- **Settings**:
  - Enable/Disable toggle
  - ATR Period (default: 7)
**Example**: If ATR = 50 pips, only pinbars with 50+ pip range will signal.
---
#### 🔍 **Filter #2: SWING Filter** (Always Active)
- **Purpose**: Confirms pinbar forms at swing highs/lows
- **Function**: Validates the pinbar is an absolute high/low
- **Benefit**: Identifies true reversal points
- **Settings**:
  - Swing Candles (default: 3)
**How it works**: 
- For bullish pinbar: Checks if low is lowest of past 3 bars
- For bearish pinbar: Checks if high is highest of past 3 bars
**Example**: With 3 swing candles, a bullish pinbar must have the lowest low among the last 3 bars.
---
#### 🔍 **Filter #3: RSI (Relative Strength Index) Filter**
- **Purpose**: Confirms momentum conditions
- **Function**: Prevents signals in extreme momentum zones
- **Benefit**: Avoids counter-trend trades
- **Settings**:
  - Enable/Disable toggle
  - RSI Period (default: 7)
  - RSI Source (Close, Open, High, Low, HL2, HLC3, OHLC4)
  - Overbought Level (default: 70)
  - Oversold Level (default: 30)
**Logic**:
- Bullish Pinbar: Only signals if RSI < 70 (not overbought)
- Bearish Pinbar: Only signals if RSI > 30 (not oversold)
---
### 3. **Stop Loss Calculation**
Two methods available:
#### Method A: ATR-Based Stop Loss (Recommended)
```
Bullish Pinbar:
SL = Pinbar Low - (1 × ATR)
Bearish Pinbar:
SL = Pinbar High + (1 × ATR)
```
**Benefit**: Dynamic stops that adapt to market volatility
#### Method B: Fixed Pips Stop Loss
```
Bullish Pinbar:
SL = Pinbar Low - (Fixed Pips)
Bearish Pinbar:
SL = Pinbar High + (Fixed Pips)
```
**Settings**:
- Calculate Stop with ATR (toggle)
- Stop Pips without ATR (default: 5)
---
### 4. **Take Profit Calculation**
Take Profit is calculated based on Risk:Reward ratio:
```
Bullish Trade:
TP = Entry + (Entry - SL) × Risk:Reward Ratio
Bearish Trade:
TP = Entry - (SL - Entry) × Risk:Reward Ratio
```
**Example**:
- Entry: 1.2000
- SL: 1.1950 (50 pip risk)
- RR: 2:1
- TP: 1.2100 (100 pip reward = 50 × 2)
**Settings**:
- Risk:Reward Ratio (default: 1.0, range: 0.1 to 10.0)
---
## 📈 Visual Elements
### On-Chart Displays
1. **Signal Markers**
   - 🟢 **Green Triangle Up** = Bullish Pinbar (BUY)
   - 🔴 **Red Triangle Down** = Bearish Pinbar (SELL)
   - Placed directly on the pinbar candle
2. **Entry Labels**
   - Green "BUY" label with entry price
   - Red "SELL" label with entry price
   - Shows exact entry level
3. **Stop Loss Lines**
   - 🔴 Red horizontal line
   - "SL" label
   - Extends 20 bars forward
4. **Take Profit Lines**
   - 🟢 Green horizontal line
   - "TP" label
   - Extends 20 bars forward
5. **Risk/Reward Areas** (Optional)
   - Red shaded box = Risk zone (Entry to SL)
   - Green shaded box = Reward zone (Entry to TP)
   - Visual risk:reward visualization
6. **Info Table** (Top Right)
   - Displays current settings
   - Shows filter status (ON/OFF)
   - Real-time RSI value
   - Quick reference panel
---
## 🔔 Alert System
Three alert types available:
### 1. Combined Alert: "Pinbar Signal (Any Direction)"
- Fires for BOTH bullish and bearish pinbars
- **Best for**: General monitoring
- **Message**: "Pinbar Signal Detected on {TICKER} at {PRICE}"
### 2. Bullish Alert: "Bullish Pinbar Alert"
- Fires ONLY for BUY signals
- **Best for**: Long-only strategies
- **Message**: "BUY Signal on {TICKER} at {PRICE}"
### 3. Bearish Alert: "Bearish Pinbar Alert"
- Fires ONLY for SELL signals
- **Best for**: Short-only strategies
- **Message**: "SELL Signal on {TICKER} at {PRICE}"
---
## ⚙️ Input Parameters Reference
### **Filters Group**
| Parameter | Default | Range | Description |
|-----------|---------|-------|-------------|
| ATR Filter on Pinbar Range? | ✅ ON | Boolean | Enable/disable ATR filter |
| ATR Period | 7 | 1+ | Lookback period for ATR calculation |
| Swing Candles | 3 | 1+ | Bars to check for swing high/low |
| RSI Filter on Pinbar? | ❌ OFF | Boolean | Enable/disable RSI filter |
| RSI Period | 7 | 2+ | Lookback period for RSI calculation |
| RSI Source | Close | Multiple | Price data for RSI (Close/Open/High/Low/etc) |
| RSI Overbought Level | 70 | 50-100 | Upper threshold for RSI filter |
| RSI Oversold Level | 30 | 0-50 | Lower threshold for RSI filter |
### **Pinbar Detection Group**
| Parameter | Default | Range | Description |
|-----------|---------|-------|-------------|
| Shadow % vs Body | 72 | 50-95 | Minimum wick size as % of total range |
### **Visualization Group**
| Parameter | Default | Range | Description |
|-----------|---------|-------|-------------|
| Show SL and TP Lines? | ✅ ON | Boolean | Display stop loss and take profit lines |
| Show SL and TP Area? | ❌ OFF | Boolean | Show shaded risk/reward boxes |
### **Risk Management Group**
| Parameter | Default | Range | Description |
|-----------|---------|-------|-------------|
| Risk:Reward Ratio | 1.0 | 0.1-10.0 | Target profit vs risk (1.0 = 1:1, 2.0 = 1:2) |
| Calculate Stop with ATR? | ✅ ON | Boolean | Use ATR for stop calculation |
| Stop Pips without ATR | 5 | 1+ | Fixed pip stop when ATR disabled |
---
## 🚫 Non-Repainting Architecture
### What is Repainting?
**Repainting** occurs when an indicator's historical signals differ from what appeared in real-time. This makes backtesting unreliable and can lead to false confidence in a strategy.
### How This Indicator Prevents Repainting
1. **Closed Bar Analysis**
   - All calculations use ` ` offset (previous bar)
   - Only analyzes COMPLETED candles
   - Signals appear on the bar AFTER the pinbar closes
2. **Confirmed Swing Points**
   - Waits for sufficient bar history before signaling
   - Only checks historical bars that cannot change
   - Prevents premature swing detection
3. **Static Alert Timing**
   - Alerts fire only after bar completion
   - No conditional logic that changes historically
   - Same results in replay mode and live trading
### Verification Method
To verify non-repainting behavior:
1. Apply indicator to chart
2. Note signal locations and prices
3. Refresh browser / reload chart
4. **Signals remain in exact same locations**
---
## 💼 Trading Strategy Guidelines
### Entry Rules
**For Bullish Pinbar (LONG):**
1. Wait for green triangle to appear
2. Enter at close of pinbar (shown in label)
3. Alternative: Enter on break of pinbar high
4. Place stop loss at red SL line
5. Set target at green TP line
**For Bearish Pinbar (SHORT):**
1. Wait for red triangle to appear
2. Enter at close of pinbar (shown in label)
3. Alternative: Enter on break of pinbar low
4. Place stop loss at red SL line
5. Set target at green TP line
### Risk Management
- **Position Sizing**: Risk only 1-2% of account per trade
- **Stop Loss**: Always use the calculated SL (never move it wider)
- **Take Profit**: Use calculated TP or trail stop after 1:1 RR
- **Multiple Timeframes**: Confirm signals on higher timeframe
### Best Practices
✅ **DO:**
- Wait for bar to close before entering
- Trade in direction of higher timeframe trend
- Use on liquid markets with clear support/resistance
- Combine with price action analysis
- Keep a trading journal
❌ **DON'T:**
- Enter before bar closes (prevents seeing full pattern)
- Trade against strong trends
- Ignore the filters (they improve win rate)
- Risk more than 2% per trade
- Trade every signal (be selective)
---
## 📊 Backtesting & Data Export
### Available Data Points
The indicator exports these values for strategy development:
| Output | Description |
|--------|-------------|
| Bullish Signal | 1 = BUY signal, 0 = No signal |
| Bearish Signal | 1 = SELL signal, 0 = No signal |
| Bull SL | Stop loss level for long trades |
| Bull TP | Take profit level for long trades |
| Bull Entry | Entry price for long trades |
| Bear SL | Stop loss level for short trades |
| Bear TP | Take profit level for short trades |
| Bear Entry | Entry price for short trades |
### How to Use in Strategy
These values can be accessed by Pine Script strategies using:
```pine
indicator_values = request.security(syminfo.tickerid, timeframe.period, 
                    )
```
---
## 🎓 Understanding the Filters
### Why Use Multiple Filters?
Single-indicator systems often generate too many false signals. This indicator uses a **confluence approach**:
1. **Pinbar Pattern** = Price rejection detected
2. **+ SWING Filter** = Rejection at key level
3. **+ ATR Filter** = Significant move
4. **+ RSI Filter** = Favorable momentum
**Result**: Higher probability setups with better risk:reward
### Filter Optimization
**Conservative Settings** (Fewer, Higher Quality Signals):
- ATR Filter: ON
- Swing Candles: 5
- RSI Filter: ON
- Shadow %: 75%
**Aggressive Settings** (More Signals, More Noise):
- ATR Filter: OFF
- Swing Candles: 2
- RSI Filter: OFF
- Shadow %: 65%
**Balanced Settings** (Recommended):
- ATR Filter: ON
- Swing Candles: 3
- RSI Filter: OFF (or ON for trending markets)
- Shadow %: 72%
---
## 🔍 Troubleshooting
### "No Signals Appearing"
**Possible Causes:**
1. Filters are too strict
2. No pinbars forming on chart
3. Insufficient bar history
**Solutions:**
- Reduce Shadow % to 65%
- Reduce Swing Candles to 2
- Disable ATR or RSI filters temporarily
- Check that chart has enough data loaded
### "Too Many Signals"
**Solutions:**
- Enable ATR filter
- Increase Swing Candles to 4-5
- Enable RSI filter
- Increase Shadow % to 75-80%
### "Signals Appearing Late"
**This is normal behavior!** The indicator:
- Analyzes previous closed bar  
- Signals appear on the bar AFTER the pinbar
- This is what prevents repainting
- Signal latency is 1 bar (by design)
---
## 📝 Technical Specifications
**Indicator Type:** Overlay (displays on price chart)
**Pine Script Version:** 5
**Max Labels:** 500
**Max Lines:** 500
**Repainting:** None (100% non-repainting)
**Data Window Values:** 8 exported values
**Alert Types:** 3 (Combined, Bullish, Bearish)
**Performance:**
- Lightweight script (fast execution)
- Works on all timeframes
- Compatible with all markets (Forex, Crypto, Stocks, Futures)
- No data snooping bias
---
## 🎯 Use Cases
### 1. **Swing Trading**
- Timeframe: Daily, 4H
- Filter Settings: All enabled
- Best for: Catching major reversals
### 2. **Day Trading**
- Timeframe: 15m, 1H
- Filter Settings: ATR + SWING only
- Best for: Intraday reversals
### 3. **Scalping**
- Timeframe: 5m, 15m
- Filter Settings: SWING only (aggressive)
- Best for: Quick reversals (requires experience)
### 4. **Position Trading**
- Timeframe: Weekly, Daily
- Filter Settings: All enabled + high RR (2:1 or 3:1)
- Best for: Long-term trend reversal catches
---
## 🏆 Advantages Over Other Pinbar Indicators
✅ **Guaranteed Non-Repainting** - Many pinbar indicators repaint; this one never does
✅ **Automatic SL/TP** - No manual calculation needed
✅ **Multi-Layer Filtering** - Reduces false signals significantly
✅ **Visual Trade Management** - Clear entry, stop, and target levels
✅ **Flexible Configuration** - Adaptable to any trading style
✅ **Alert System** - Never miss a setup
✅ **Backtesting Ready** - Reliable historical data
✅ **Professional Grade** - Suitable for live trading
---
## 📚 Educational Resources
### Recommended Reading on Pinbars
- "The Pin Bar Trading Strategy" by Nial Fuller
- "Price Action Trading" by Al Brooks
- TradingView Education: Price Action Patterns
### Practice Recommendations
1. Paper trade signals for 20+ trades before live trading
2. Backtest on different timeframes and markets
3. Keep detailed records of all trades
4. Analyze winning vs losing setups
5. Refine filter settings based on results
---
## ⚖️ Disclaimer
This indicator is a tool for technical analysis and does not guarantee profits. Trading involves substantial risk of loss. Past performance is not indicative of future results. 
- Always use proper risk management
- Never risk more than you can afford to lose
- Consider your trading experience and objectives
- Seek independent financial advice if needed
---
## 📧 Version Information
**Current Version:** 1.0
**Last Updated:** 2024
**Compatibility:** TradingView Pine Script v5
**Status:** Production Ready
---
## 🔄 Future Enhancements (Potential)
Possible future additions:
- Multi-timeframe confirmation option
- Volume filter integration
- Customizable color schemes
- Win rate statistics display
- Partial profit taking levels
- Trailing stop functionality
---
## 📖 Quick Start Guide
### 5-Minute Setup
1. **Add to Chart**
   - Open TradingView
   - Go to Pine Editor
   - Paste the code
   - Click "Add to Chart"
2. **Configure Settings**
   - Open indicator settings (gear icon)
   - Start with default settings
   - Enable "Show SL and TP Lines"
3. **Set Alert**
   - Right-click indicator name
   - Click "Add Alert"
   - Select "Pinbar Signal (Any Direction)"
   - Configure notification method
4. **Test**
   - Scroll back on chart
   - Verify signals make sense
   - Check that signals don't repaint
5. **Trade** (After Practice!)
   - Wait for alert
   - Verify signal quality
   - Enter, place SL/TP
   - Manage trade
---
## 🎯 Final Thoughts
The **Pinbar MTF - No Repaint** indicator is designed for serious traders who value:
- **Reliability** over flashy signals
- **Quality** over quantity
- **Honesty** over false promises
This indicator will NOT:
- Make you rich overnight
- Win every trade
- Replace proper trading education
This indicator WILL:
- Identify high-probability reversal setups
- Save you analysis time
- Provide consistent, non-repainting signals
- Help you develop a systematic trading approach
**Success in trading comes from:**
1. Proper education (60%)
2. Risk management (30%)
3. Technical tools like this indicator (10%)
Use this tool as part of a complete trading plan, not as a standalone solution.
My Smart Volume Profile – Fixed
Title: 🔹 My Smart Volume Profile – Fixed
Description:
Lightweight custom Volume Profile showing POC, VAH, and VAL levels from recent bars. Highlights the value area, marks price touches, and supports optional alerts.
Developer Note:
Created with precision and simplicity by Magnergy
Intraday Intensity Percent (IIP) by CoryP1990 – Quant ToolkitThe Intraday Intensity Percent (IIP) quantifies buying vs. selling pressure within each bar by combining price position inside the range and trading volume. It’s essentially a volume-weighted order-flow indicator, showing whether volume concentrates near highs (buying pressure) or lows (selling pressure).
 How it works 
Computes the Intraday Intensity (II) = ((Close − Low) − (High − Close)) / (High − Low) × Volume.
Then compares total “intensity” to total volume over a look-back window to produce a normalized percentage.
Lime line: IIP rising → accumulation / increasing buy pressure.
Red line: IIP falling → distribution / increasing sell pressure.
Background: Green tint = heavy buying, Red tint = heavy selling.
 Use cases 
Identify accumulation or distribution phases early.
Confirm momentum with volume-backed pressure.
Detect divergences between price and volume flow.
 Defaults 
Length = 14
High-pressure threshold = +5 %
Low-pressure threshold = −5 %
 Example — AAPL (2H) 
Late July into early August shows sustained distribution as IIP sinks below −5% (deep red), marking heavy sell pressure during the drop. From early to mid-August, IIP flips positive and holds > +5% (green background), aligning with the rebound. After a brief mid-September shakeout, late Sep–mid Oct features renewed accumulation with repeated green surges. Most recently, IIP prints around −33%, indicating dominant selling pressure into the latest two-hour bars.
 Part of the Quant Toolkit — transparent, open-source indicators for modern quantitative analysis. Built by CoryP1990.
Open=Low Multi-TFHere is ultimate help for BUY side trader. Empower your trade only on signal.
Trade less but trade solid.
Macro Valuation Oscillator (MVO)Macro Valuation Oscillator (MVO) is a macro-relative-strength indicator that compares the current valuation of an asset against three key benchmarks: Gold, USD, and Bond. It helps visualize how the asset performs in relative macro terms over time.
When the MVO line for Gold (yellow) moves below the neutral zone (0), it reflects relative weakness against gold. When it rises above +80, it indicates relative strength or potential overheating compared to gold. The same concept applies to USD (blue) and Bond (purple) lines.
The indicator highlights macro-rotation behavior, showing periods when assets outperform (green) or underperform (red) in relative value. It is mainly intended for daily charts, providing a clear visual framework for assessing long-term macro relationships and timing within broader market cycles.
Dual Harmonic-based AHR DCA (Default :BTC-ETH)A panel indicator designed for dual-asset BTC/ETH DCA (Dollar Cost Averaging) decisions.  
It is inspired by the Chinese community indicator  "AHR999"   proposed by “Jiushen”.
 How to use:   
 
 Lower HM-based AHR → cheaper (potential buy zone).  
 Higher HM-based AHR → more expensive (potential risk zone).  
 Higher than Risk Threshold → consider to sell, but not suitable for DCA.  
 When both AHR lines are below the Risk threshold → buy the cheaper one (or split if similar).  
 If one AHR is above Risk → buy the other asset.  
 If both are above Risk → simulation shows “STOP (both risk)”.  
 Not limited to BTC/ETH — you can freely change symbols in the input panel  
   to build any dual-asset DCA pair you want (e.g., BTC/BNB, ETH/SOL, etc.).
 
 What you’ll see: 
 
 Two lines: AHR BTC (HM) and AHR ETH (HM)  
 Two dashed lines: OppThreshold (green) and RiskThreshold (red)  
 Colored fill showing which asset is cheaper (BTC or ETH)  
 Buy markers:  
   -  B  = Buy BTC  
   -  E  = Buy ETH  
   -  D  = Dual (split budget)  
 Top-right table: prices, AHRs, thresholds, qOpp/qRisk%, simulation, P&L  
 Labels showing last-bar AHR values
 
 Core idea:   
Use an AHR based on Harmonic Moving Average (HM) — a ratio that measures how “cheap or expensive” price is relative to both its short-term mean and long-term trend.  
The original AHR999 used SMA and was designed for BTC only.  
This indicator extends it with cross-exchange percentile mapping, allowing the empirical “opportunity/risk” zones of the AHR999 (on Bitstamp) to adapt automatically to the current market pair.
The indicator derives two adaptive thresholds:
 
 OppThreshold  – opportunity zone  
 RiskThreshold  – risk zone
 
These thresholds are compared with the current HM-based AHR of BTC and ETH to decide which asset is cheaper, and whether it is good to DCA or not, or considering to sell(When it in risk area). 
 This version uses 
 
 Display base:  Binance (default: perpetual) with HM-based AHR  
 Percentile base:  Bitstamp spot SMA-AHR (complete, stable history)  
 Rolling window:  2920 daily bars (~8 years) for percentile tracking  
 
 Concept summary 
 
 AHR measures the ratio of price to its long-term regression and short-term mean.  
 HM replaces SMA to better reflect equal-fiat-cost DCA behavior.  
 Cross-exchange percentile mapping (Bitstamp → Binance) keeps thresholds consistent with the original AHR999 interpretation.
 
 Recommended settings (1D):   
 
 DCA length (harmonic):  200  
 Log-regression lookback:  1825 (≈5 years)  
 Rolling window:  2920 (≈8 years)  
 Reference thresholds:  0.45 / 1.20 (AHR999 empirical priors)  
 Tie split tolerance (ΔAHR):  0.05  
 Daily budget:  15 USDT (simulation)  
 All display options can be toggled: table, markers, labels, etc.  
 
 Notes:   
When the rolling window is filled (2920 bars by default), thresholds are first calculated and then visually backfilled as left-extended lines.  
The “buy markers” and “decision table” are  light simulations  without fees or funding costs — for rhythm and relative analysis, not backtesting.
Accurate ATR Stop Loss Distance — Risk Management ToolAccurate ATR Stop Loss Distance — Risk Management Tool
This indicator calculates an accurate Stop Loss distance in pips using the Average True Range (ATR) multiplied by a user-defined multiplier.
It automatically detects the correct pip size based on the instrument type (Forex, Crypto, Stocks, Indices, Futures), adjusting for 2-, 3-, 4-, or 5-digit quotes — ensuring professional-grade precision that matches institutional ATR-based risk systems.
📊 Features:
Uses ATR × Multiplier to determine precise SL distance in pips.
Automatically adjusts pip value depending on the asset type (handles 5-digit Forex brokers).
Clean and minimal design — displays only one info box in the top-right corner.
Fully customizable text and background colors.
Includes alert condition for automated SL updates.
⚙️ How to use:
Set your preferred ATR period and multiplier.
The indicator instantly displays your Stop Loss distance in pips at the top-right of the chart.
Combine with your entry strategy to calculate lot size or risk per trade.
💡 Ideal for traders who want consistent, objective SL distances derived from volatility rather than arbitrary points or emotions.
Note: Educational and informational tool only. Does not execute trades or give financial advice.
Short-Timeframe Volume Spike DetectorShort-Timeframe Volume Spike Detector
Description:
The Short-Timeframe Volume Spike Detector is an advanced multi-timeframe (MTF) indicator that automatically detects sudden volume surges and price expansion events on a lower timeframe and displays them on a higher (base) timeframe chart — helping traders identify hidden intraday accumulation or breakout pressure within broader candles.
⚙️ How It Works
Select a Base Timeframe (e.g., Daily, 4H, 1H).
The script automatically fetches data from a Lower Timeframe (e.g., Daily → 1H, 1H → 15m).
Within each base bar, it scans all the lower timeframe candles to find:
Volume Spikes: Volume exceeds average × multiplier or a custom threshold.
Price Strength: Candle shows upward movement beyond a minimum % change.
When both conditions are met, a spike signal is plotted on the higher timeframe chart.
🔍 Features
✅ Automatic Lower Timeframe Mapping — Dynamically selects the most relevant lower timeframe.
✅ Two Detection Modes:
Multiplier Mode: Volume spikes defined as multiple of average lower timeframe volume.
Manual Mode: Custom absolute volume threshold.
✅ Trend Filter Option: Show only signals during uptrends (configurable).
✅ Visual Markers:
Purple “X” = Volume Spike Detected
Dotted red & green lines = Candle range extension
✅ Custom Label Placement: Above High / Below Low / At Spike Price
✅ Debug Mode: Displays full diagnostic info including detected volume, threshold, and % change.
📊 Use Cases
Detect early accumulation in daily candles using hourly or 15-min data.
Identify institutional buying interest before visible breakouts.
Confirm strong continuation patterns after price compression.
Spot hidden intraday activity on swing or positional charts.
🧩 Inputs Overview
Input	Description
Base Timeframe	Main chart timeframe for analysis
Lookback Bars	Number of recent candles to scan
Volume Mode	“Multiplier” or “Manual Benchmark”
Volume Multiplier	Multiplier applied to average lower timeframe volume
Manual Volume Threshold	Fixed volume benchmark
Min Price Change %	Minimum lower timeframe candle % move to qualify
Use Trend Filter	Only show in uptrend (close > close )
Extend Bars	Number of bars to extend dotted lines
Label Position	Choose Above High / Below Low / At Spike Price
Debug Mode	Show live internal values for calibration
🧠 Tips
Ideal for swing traders and multi-timeframe analysts.
Works best when base = Daily and lower = Hourly or 15m.
Combine with Volume Profile, VWAP, or RRG-style analysis for stronger confluence.
Use Multiplier 1.5–2.5 to fine-tune for your asset’s volatility.
⚠️ Notes
Works only when applied to the base timeframe selected in inputs.
May not display signals on non-standard intraday timeframes (like 3H).
Labels limited to max_labels_count for performance stability.
Pump & Dump Detector v6Overview:
The Pump & Dump Detector v6 is a powerful TradingView indicator designed to identify rapid bullish (pump) or bearish (dump) price movements in real time. By combining Rate of Change (ROC), candle volatility, and volume analysis, this indicator highlights extreme market moves that could indicate momentum spikes, retail-driven activity, or potential manipulations.
Key Features:
ROC-Based Detection: Detects strong upward or downward price momentum over a configurable period.
Volume Confirmation: Filters signals based on volume exceeding a simple moving average, reducing false alerts.
Customizable Candle Filters: Ensures signals are triggered only when the candle shows meaningful movement.
Visual Alerts: Displays clear green (pump) and red (dump) markers on the chart with customizable size.
Real-Time Alerts: Sends instant notifications when pump or dump conditions are met, once per bar.
User-Friendly Inputs: Adjust ROC length, thresholds, minimum candle move, and volume MA length to fit your trading style.
Community-Oriented: As a trader and software professional, I noticed that most pump/dump indicators are restricted access. I developed this indicator to be free for all, helping the trading community.
How to Use:
Green triangle below the bar → Pump detected; consider bullish setups.
Red triangle above the bar → Dump detected; consider bearish setups.
Use in conjunction with other technical analysis tools for confirmation.
Alerts can be used for automated notifications or trading strategies.
Why It’s Useful:
This indicator saves time and enhances decision-making by spotting extreme price moves early, giving traders an edge in volatile markets. Ideal for intraday, swing, and crypto traders looking to capitalize on sudden momentum shifts.
Intraday Perpetual Premium & Z-ScoreThis indicator measures the real-time premium of a perpetual futures contract relative to its spot market and interprets it through a statistical lens.
It helps traders detect when funding pressure is building, when leverage is being unwound, and when crowding in the futures market may precede volatility.
How it works
	•	Premium (%) = (Perp – Spot) ÷ Spot × 100
The script fetches both spot and perpetual prices and calculates their percentage difference each minute.
	•	Rolling Mean & Z-Score
Over a 4-hour look-back, it computes the average premium and standard deviation to derive a Z-Score, showing how stretched current sentiment is.
	•	Dynamic ±2σ Bands highlight statistically extreme premiums or discounts.
	•	Rate of Change (ROC) over one hour gauges the short-term directional acceleration of funding flows.
Colour & Label Interpretation
Visual cue	Meaning	Trading Implication
🟢 Green bars + “BULL Pressure”	Premium rising faster than mean	Leverage inflows → momentum strengthening
🔴 Red bars + “BEAR Pressure”	Premium shrinking	Leverage unwind → pull-back or consolidation
⚠️ Orange “EXTREME Premium/Discount”		Crowded trade → heightened reversal risk
⚪ Grey bars	Neutral	Balanced conditions
Alerts
	•	Bull Pressure Alert → funding & premium rising (momentum building)
	•	Bear Pressure Alert → premium falling (deleveraging)
	•	Extreme Premium Alert → crowded longs; potential top
	•	Extreme Discount Alert → capitulation; possible bottom
Use case
Combine this indicator with your Heikin-Ashi, RSI, and MACD confluence rules:
	•	Enter only when your oscillators are low → curling up and Bull Pressure triggers.
	•	Trim or exit when Bear Pressure or Extreme Premium appears.
	•	Watch for Extreme Discount during flushes as an early bottoming clue.
Minervini breakout - AndurilThis indicator checks the Mark Minerivini trend template as well checks consolidation areas and breakout. 
Checks the highest closing price of last x days (default 20 days), exluding current day and draws a white dashed line, Calculates the relative volume of the current day. Calculates EMA 21, EMA50 and EMA200 and draws on the graph to define trend. 
Gives a buy signal in green (writing relative strength of that day inside of green arrow) if:  
1)       Current price> breakout price* 0.98
2)       Current price > EMA21 >EMA50>EMA200
3)       Current price > 52 week high*0.75
4)       Current price > 52 week low*1.3
5)       EMA 200 of today > EMA 200 of 10 bar ago > EMA 200 of 20 bar ago
6)       Relative volume of the day > 1.5
Dynamic ATR Targets - Long & Short with Trailing SL by ISdynamic SL based on ATR
SL,TP, entry
ATR based
good for dynamic SL
1:3 RR
Aibuyzone Vector Strategy - Floating DashboardVector Strategy – Floating Dashboard
The Vector Strategy is a visual trading-analysis tool designed to highlight strong directional candles that may represent impulsive moves in the market. It combines candle-structure analysis, volatility expansion, volume conditions, and trend filters into a single clear visual display.
Core Logic
Identifies candles where the body makes up a significant portion of the full bar range, suggesting strong directional intent.
Uses an ATR (Average True Range) expansion filter to confirm that the current candle’s range is larger than normal volatility.
Optionally applies a wick-imbalance requirement to favor bars showing a clear directional bias.
Can include a volume spike filter, marking candles where volume exceeds a moving average multiple.
Trend and Momentum Filters
Local trend: Defined by a fast and slow EMA pair to show short-term bias.
Higher-timeframe trend: Optionally aligns with an EMA from a higher timeframe to confirm broader momentum.
Momentum: RSI filter avoids generating signals in heavily overbought or oversold conditions.
Fair Value Gap (FVG) Option
When enabled, the script checks for a simple three-bar fair-value-gap structure in the direction of the potential signal, acting as an additional confirmation filter.
Signals and Visuals
Plots fast and slow EMAs to visualize the underlying trend.
Displays up/down shapes when qualifying vector-candle conditions occur.
Optional labels show “Vector Long” or “Vector Short” at the candle where conditions align.
Includes alert conditions for both long and short setups.
Floating Dashboard
A compact floating panel summarizes the most recent signal and market context:
Current signal state (Long / Short / Neutral)
Trend bias (Bullish / Bearish / Flat)
RSI reading
Body-to-range percentage
Volume-spike confirmation
Practical Use
This tool can assist traders in identifying strong impulsive candles aligned with a trend filter.
It is meant to complement a complete trading strategy, not to be used in isolation.
Traders may adjust thresholds such as ATR multiple, body-percentage, or RSI range based on the instrument’s volatility and personal risk tolerance.
Important Notice
This script is provided for educational and analytical purposes only.
It does not provide financial advice, recommendations, or guaranteed results.
Market conditions vary, and past performance does not ensure future outcomes.
Always test and validate any configuration in a simulated environment before live trading.
3 Moving Average Exponential3 Moving Average Exponential, up to 10 ema with the possibility to personalize the lenght of each of them






















