MK AtlasOANDA:XAUUSD
Sentinel is a professional market analysis tool designed to help traders identify key price zones and understand market behavior with clarity and precision.
The script focuses on visual structure, clean levels, and confirmation-based logic to reduce noise and improve decision-making.
It is built to support traders who rely on discipline, patience, and structured analysis rather than indicators overload.
Key Features:
Clear visualization of important market zones
Confirmation-based behavior tracking
Clean, minimal, and non-repainting logic
Suitable for multi-timeframe analysis
Optimized for volatile markets such as Gold and Forex
This indicator is designed as a decision-support tool, not a signal generator.
Traders are encouraged to use it alongside proper risk management and their own trading plan.
Sentinel aims to provide clarity, not predictions.
インジケーターとストラテジー
Magic Hour Range + Window Levels (0/50/75/100 + Extensions)This indicator plots one or more “Magic Hour” ranges (by ET hour) by drawing the hour’s high/low box, then extending an aligned post-hour analysis window for a set number of hours. Inside that window it overlays key reversion targets—0% (High), 50% (Mid), 100% (Low), optional 25%/75%—plus optional extension levels beyond the range (±25/50/75/100% and extras). All levels are clipped to the analysis window for a clean, session-by-session view of range, targets, and extensions.
Brahma Creation Field (SALSA Edition)
# ⭐ **1. INDICATOR TITLE**
Use a clear, branded, professional name:
### **Brahma Creation Field (BCF) — SALSA© Market Imbalance Indicator**
---
# ⭐ **2. SHORT DESCRIPTION (appears in search results)**
**Identifies Brahma Creation Fields (BCFs) using SALSA© Market Logic. A rewritten, original imbalance tool inspired by displacement zones, with Creation Strength Line (CSL), integrity breaks, and optional actionable alerts.**
---
# ⭐ **3. FULL DESCRIPTION (for the script page)**
### **TradingView-Ready**
---
## **Brahma Creation Field (BCF) — SALSA© Edition**
The **Brahma Creation Field (BCF)** Indicator is an *original* SALSA©-based imbalance model designed to identify areas where price rapidly expands with strong intent and leaves behind a “Creation Field.”
This indicator is an entirely proprietary rewrite based on **Vedic + SALSA© Interpretation of Market Birth**, and does **not reuse or copy** any external code. It is not affiliated with or derived from any other indicator.
---
## 🔱 **What Is a Brahma Creation Field (BCF)?**
In SALSA© Market Dynamics:
* **Brahma** = Creation
* **Vishnu** = Continuation
* **Shiva** = Transformation (destruction/reset)
A **BCF** is the *birth moment* of a new price narrative —
a zone created when price displaces strongly enough to leave a gap between the candle and the candle two bars earlier.
This is interpreted as:
* **Bullish BCF** → A strong upward creation event
* **Bearish BCF** → A strong downward creation event
These “Creation Fields” often act as **reaction points, continuation areas, or reversal zones**.
---
## 🔰 **Key Features**
### **✔ Automatic Detection of Brahma Creation Fields**
Identifies both bullish and bearish creation zones using clean imbalance structure.
### **✔ Creation Strength Line (CSL)**
A midline through the BCF used to confirm strength, bias, and equilibrium.
### **✔ Integrity Break Logic**
When price invalidates the BCF, the zone fades and becomes inactive.
### **✔ Real-Time Updates**
BCFs extend automatically as long as they are active.
### **✔ Alerts Included**
* Bullish BCF Formed
* Bearish BCF Formed
* BCF Integrity Broken
* Price Inside Active BCF
* CSL Cross (Midline Cross)
### **✔ 100% Original Codebase**
Fresh, clean Pine Script v6 logic reflecting SALSA© philosophy.
---
## 🔬 **Use Cases**
* Forecasting continuation after displacement
* Identifying strong zones of liquidity imbalance
* Spotting trend birth points
* Assessing whether narrative pressure is bullish or bearish
* Establishing intraday bias
* Creating entry/exit signals
* Building automated strategies
---
## ⚠ **License Notice**
This indicator is an **original work** created for TradingView,
based on **SALSA© Market Theory**.
You may NOT resell or rehost the code without explicit permission.
If you adapt this script, please give proper credit.
---
## 🙏 **Credits / Attribution**
The concepts here are influenced by general imbalance and displacement theory in trading.
The code itself is **100% original**, written entirely from scratch.
---
# ⭐ **4. TAGS TO USE (Very Important for Visibility)**
Add exactly these tags in TradingView:
* **imbalance**
* **fvg**
* **liquidity**
* **supplydemand**
* **trend**
* **intraday**
* **bias**
* **zones**
* **supportresistance**
* **marketstructure**
* **smartmoney**
These tags rank extremely well.
---
# ⭐ **5. CATEGORIES**
Choose:
✔ **“Technical”**
✔ **“Indicators”**
✔ **“Price Action”** (optional but recommended)
---
# ⭐ **6. LICENSE**
Choose:
### **© Copyright — Open for Personal Use**
or
### **Custom License**
Recommended text:
> This script is © protected.
>
> You may use it freely on TradingView for personal analysis,
> but you may NOT redistribute, publish variations, or sell this code.
---
# ⭐ **7. OPTIONAL – AUTHOR BIO**
Include:
> Dr. Sudhir Khollam
> SALSA© Market Dynamics • Vedic + Financial Astrology
> Creator of the SALSA© Method, Astro SALSA© Pro, and SALSA© Prediction Cards
---
# ⭐ **8. WHAT TO PUT IN “EXTERNAL SOURCE” SECTION**
This is optional, but if you want to be completely transparent:
```
This indicator is a fresh, original rewrite created from scratch.
It does not contain or reuse code from any third-party indicator.
Conceptually inspired by classical imbalance/displacement logic,
translated into a SALSA© creation-phase model.
```
---
# ⭐ **9. SCREENSHOT GUIDELINES (Important for Approval)**
Use a chart showing:
✔ At least one Bullish BCF
✔ At least one Bearish BCF
✔ CSL line clearly visible
✔ Integrity break (if possible)
✔ Clean chart (no clutter)
✔ Label arrows added manually (optional)
Upload **3 screenshots**, TradingView always prefers multi-angle examples.
---
# ⭐ **10. SEO-OPTIMIZED SUMMARY (for search engines)**
**SALSA© BCF Indicator is an imbalance-based price action tool that highlights Brahma Creation Fields — the birth of market intent. Featuring CSL midlines, integrity break detection, real-time zone extension, and a full alert suite. Ideal for traders using smart money concepts, FVGs, SMC, or Vedic-based price analysis.**
---
# ⭐ **11. PUBLISHING CHECKLIST**
### ✔ Code compiles
### ✔ Description added
### ✔ Screenshot added
### ✔ Tags added
### ✔ License selected
### ✔ Public or Protected selected
### ✔ Test alerts
### ✔ Save + Publish
---
Gemini Clean OB AlertPivot Point Usage: Instead of detecting each candle of an opposite color, the script uses `ta.pivothigh/low`. This means it only marks a Pivot Point if the price has actually made a significant high or low relative to the 10 preceding and following candles.
Dynamic Cleanup (Mitigation): As soon as the price returns to "fill" the area (depending on your choice: simple contact or close), the box disappears from the chart. This keeps your view clean and focused on the remaining untouched areas.
Period Setting: You can increase the "Detection Period" (e.g., from 10 to 20) in the settings to filter out even more noise and keep only the major areas.
N PatternEnglish:
-N Pattern is a trend-following indicator that combines VIDYA (Variable Index Dynamic Average) with ATR bands to identify market direction, enhanced by pivot-based liquidity zones and dynamic N-shaped candlestick patterns.
-The indicator detects specific multi-leg price formations where the market trends, retraces, and resumes direction, all filtered by EMA 750 for higher timeframe confluence.
-It includes stochastic-based candle coloring, volume delta analysis, and visual alerts for pattern completion, making it ideal for identifying high-probability trend continuation setups.
-N Pattern è un indicatore trend-following che combina VIDYA (Variable Index Dynamic Average) con bande ATR per identificare la direzione del mercato, arricchito da zone di liquidità basate su pivot e pattern dinamici a forma di N.
-L'indicatore rileva specifiche formazioni di prezzo multi-leg dove il mercato fa trend, ritraccia e riprende la direzione, il tutto filtrato dall'EMA 750 per confluenza su timeframe superiori.
-Include colorazione delle candele basata sullo stocastico, analisi del delta volume e alert visivi al completamento dei pattern, rendendolo ideale per identificare setup ad alta probabilità di continuazione del trend.
Clean SMC: Filtered OB + FVGHow does this indicator work?
Fair Value Gaps (FVG): It identifies price imbalances (gaps between the wick of candle 1 and candle 3). They appear as small, light-colored rectangles.
Order Blocks (OB): It marks "Smart Money" candles that precede a strong impulse. These areas are extended to the right because they often act as future support or resistance.
Signals (BUY/SELL): The indicator displays a signal when it detects a confluence (for example, a bullish OB appearing right after an FVG).
Some friendly trading tips:
Timeframe: This indicator works best on higher timeframes (15m, 1h, 4h) to avoid market "noise."
Confirmation: Don't take a "BUY" signal on its own. Check if the overall trend (on a higher timeframe) is also bullish.
Risk management: Always place your Stop Loss just below the identified Order Block.
AI Reversal Probability Zones (Dual Mode)This custom-built indicator is designed to detect potential bullish and bearish reversals by aggregating multiple high-probability signals into a unified score. It blends momentum, volatility, trend deviation, and candle structure into a single visual line, enhanced by dynamic color zones that represent the probability and strength of a market reversal.
200W SMA Dynamic Extension Bands (MTF, Auto Asset)Summary
200W SMA Dynamic Extension Bands is a multi-timeframe TradingView indicator that plots extension bands (multiples) around the 200-week simple moving average. It’s designed to work on any chart timeframe (1m → 1D → 1W) while anchoring the bands to the latest confirmed weekly data, so the long-term reference is consistent and non-repainting across timeframes.
This is a macro “valuation/temperature gauge” style tool: it helps you quickly see when the price is cheap vs. the 200W mean and when it is extended/expensive.
What it plots
The indicator always computes:
200-week SMA (weekly)
Band m2
Band m3
Band m4
Bands are defined as:
Bandk(t)=SMA200W(t)⋅mk
Where the multipliers mk are chosen automatically depending on the asset type (or manually via input).
Key features
Works on any timeframe: weekly SMA is fetched via request.security(..., "W", ...).
Non-repainting weekly anchor: uses barmerge.lookahead_off to avoid peeking into future weekly bars.
Auto asset presets:
Crypto: wider extensions (bigger cycles)
Gold: moderate extensions
Equities: tighter than crypto
FX: very tight extensions
Futures: moderate fallback
Zone coloring (optional):
Cheap zone (below 1×)
Fair zone (1× → m2)
Hot zone (m2 → m3)
Expensive zone (m3 → m4)
Info table (optional): shows selected preset, current multiple, and % extension vs 200W SMA.
Alerts (optional): “entered cheap” and “entered expensive” style triggers.
Presets (default multipliers)
These are intentionally conservative templates (tune to your market):
Crypto: 1.0,1.5,2.0,3.0
Gold: 1.0,1.2,1.5,2.0
Equities: 1.0,1.15,1.30,1.60
FX: 1.0,1.05,1.10,1.20
Futures: 1.0,1.25,1.50,2.00
Auto mode uses syminfo.type plus a simple heuristic for Gold tickers containing XAU / GOLD (because some platforms classify XAUUSD as forex).
How to use (practical)
Macro context / cycle temperature
Price below 1× (200W SMA): historically “cheap zone” for highly cyclical assets (especially BTC).
Price above m3: often “expensive/extended” and higher risk of mean reversion.
Not a standalone trading system
Use with trend confirmation (market structure), volume, and risk management.
Extensions can persist in strong trends—treat bands as regime context, not precise reversal points.
Settings you can change
SMA Length (Weeks): default 200
Band preset: Auto / Crypto / Gold / Equities / FX / Futures
Toggle:
Zone fills
Info table
Alerts
Included alertconditions:
Cross below 1× (entered cheap zone)
Cross above m3 (entered expensive zone)
High level guideline:
Green Zone: BUY (Below 1.0× - Undervalued)
Yellow Zone: HOLD (1.0× - 1.5× - Fair Value)
Orange Zone: CAUTION (1.5× - 2.0× - Getting Hot)
Red Zone: SELL (2.0× - 3.0× - Overvalued)
Notes / limitations
The “cheap/expensive” zones are heuristics. They do not guarantee future returns.
Auto classification is best-effort; if your symbol is unusual, set the preset manually.
For newly listed assets with limited weekly history, the 200W SMA may be na until enough data exists.
Multi-VWAP Pro (HP) + Alerts - par alphaomega18Multi-VWAP Pro High-Precision (D/W/M) – by alphaomega18
🚀 Overview
Elevate your institutional analysis with the Multi-VWAP Pro High-Precision, a comprehensive tool designed for traders who demand surgical accuracy.
Most standard VWAP indicators lag or shift when changing timeframes. This script solves that by using a 1-minute data polling engine (request.security), ensuring your Daily, Weekly, and Monthly levels remain rock-solid and accurate, whether you are on a 1m, 15m, or 1h chart.
💎 Key Features
High-Precision Engine: Calculation based on 1-minute intraday data for maximum mathematical accuracy.
Multi-Timeframe Anchors: View Daily, Weekly, and Monthly VWAPs simultaneously.
Dynamic Color Logic: The Daily VWAP turns Green when the price is above and Red when below for instant trend bias.
Triple SD Bands: 3 fully customizable Standard Deviation bands for each timeframe to identify exhaustion zones.
Smart Alerts: Fully programmable notifications for price crosses on all levels.
Clean Labels: Real-time labels on the price scale for a professional, organized look.
📈 Trading Strategy: The Power of Confluence
Using three different VWAP anchors allows you to see the market through multiple lenses. Here is how to use this tool:
1. The Institutional Confluence
The strongest setups occur when two or more VWAP lines overlap.
The Setup: If the Daily VWAP clusters with the Weekly VWAP, it creates a "Hard Floor/Ceiling."
The Trade: Look for high-probability bounces in these zones where institutions defend their average price.
2. Mean Reversion with SD3 Bands
The 3rd Standard Deviation (SD3) represents price extremes.
The Trade: When price pierces a Daily SD3, look for a reversal back toward the VWAP (Mean Reversion), especially if it aligns with a Weekly or Monthly SD2 band.
3. Trend Confirmation
Bullish Bias: If the Daily VWAP is Green, prioritize "Buy the Dip" on lower SD bands.
Bearish Bias: If the Daily VWAP is Red, prioritize "Sell the Rip" on upper SD bands.
💡 Pro Tip for my Followers
"Alignment is king. When the Daily, Weekly, and Monthly VWAPs all slope in the same direction, you have a high-conviction trend. Follow me for more high-precision tools and market insights!"
🛠 Settings & Customization
Visibility: Toggle any VWAP or SD band on/off.
Full Color Control: Pick your own colors for Weekly and Monthly lines.
Adjustable Multipliers: Fine-tune the volatility bands (SD1, SD2, SD3) for any asset.
RADAR_V67_TESTThis V67 indicator is a comprehensive trend-following strategy designed to filter out market noise and identify high-probability entries in the cryptocurrency market.
The system is built on three major technical pillars:
Hull Moving Average (HMA): Provides superior reactivity to trend reversals compared to standard moving averages.
Supertrend: Acts as a primary trend filter to ensure we only trade in a confirmed bullish environment.
Volume Analysis (POC): The script identifies the Point of Control (POC) to ensure that buy signals occur above institutional congestion zones.
The buy signal (Screener_Signal = 1) is triggered only when the price crosses above the Hull MA while remaining above the Supertrend and the volume POC. This is a robust tool for both swing trading and day trading, focusing on momentum and institutional support.
Le Supertrend : Il sert de filtre de sécurité pour s'assurer que nous sommes dans une dynamique haussière confirmée.
L'analyse du Volume (POC) : Le script identifie le prix où le volume a été le plus important (Point of Control) pour s'assurer que l'achat se fait au-dessus des zones de congestion institutionnelles.
Le signal d'achat (Screener_Signal = 1) est déclenché uniquement lorsque le prix croise la Hull MA à la hausse, tout en restant au-dessus du Supertrend et du POC de volume. C'est un outil robuste pour le swing trading et le day trading.
Big Trend Catcher: Quad-Gate & VCP & ATR trailing Swing TradeThe Strategy Philosophy
This is designed for Daily Charts to capture the large chunks if not all of a primary trend. It focuses on the "VCP" (Volatility Contraction Pattern), combined with high-grade momentum filtering.
1. How VCP (The Quiet Zone) is Calculated
The script identifies "Volatility Contraction" by measuring the Bollinger Band Width (BBW).
* The Math: It calculates the standard BBW: $(Upper Band - Lower Band) / Mid Band$.
* The "Quiet" Threshold: It compares the current width to its own 50-period Simple Moving Average.
* The Signal: When the current width is narrower than the 50-period average, the stock is in a "Quiet Zone" (represented by the blue background). This indicates energy is coiling for a potential breakout.
2. How Rate of Change (ROC) is Calculated
Unlike a standard ROC, this "Wizard" version uses a smoothed momentum filter to reduce whipsaws:
* Raw ROC: First, it calculates the raw percentage change over 15 bars: $100 x (Close / Close(15) - 1).
* Smoothing: This raw value is then smoothed using a 10-period EMA.
* The Gate: The ROC Gate only turns green when this smoothed value is greater or equal to 0, ensuring the stock has genuine upward velocity before you enter.
3. What the Indicators on the Chart Show
* Yellow Line (20 EMA): Your "Tactical Line." It tracks short-term momentum and acts as a trigger for Phoenix re-entries.
* Blue/Gray Line (100 EMA): Your "Regime Filter." It turns Blue when the trend slope is positive and Gray when negative.
* Thin Gray Outer Bands: These are Bollinger Bands set at 3 Standard Deviations from the 100 EMA. They mark extreme "Climax Zones" where price is statistically overextended.
* Stepped Red/Green Line (ATR Stop): The "Iron Floor." It uses a 20-period ATR with a 3.0 multiplier and an HHV (Highest High Value) lookback to ensure the stop only moves up, never down.
* Yellow Crosses (Gate Wait): These small icons appear above the bars when a signal has been detected but one or more "Wizard Gates" (such as the ROC or 100 EMA Slope) are not yet satisfied, signifying the strategy is waiting for full confirmation.
4. How to Trade This Strategy
* Step 1: The Setup: Look for the Blue Background on the daily chart, signifying a Volatility Contraction.
* Step 2: The Entry: An Initial Entry (Lime Triangle) fires when the price breaks out of the Quiet Zone with a volume spike. This volume must be greater than 1.3 times the 20-period Simple Moving Average of volume to confirm significant buying interest. An entry only occurs when all Quad-Gates (ROC, EMA Slope, Price > ATR) are satisfied.
* Step 3: Pyramiding: If the trend gains "Velocity" (price > 10% from entry), the script will signal a second unit to maximize gains during runaway moves.
* Step 4: The Exit: Sell the entire position if the price closes below the ATR Trailing Stop (Trend Death) or if the 100 EMA trend turns down.
5. The Phoenix Re-entry
If you are stopped out but the stock immediately recovers above the 20 EMA within 10 bars, a Phoenix Entry (Orange Triangle) will fire. This allows you to catch "Power Resumptions" where the initial shakeout was a bear trap.
RSI on 21 MA (Custom)RSI on 21 MA (Custom)
RSI on 21 MA (Custom) is a momentum-based indicator that applies the Relative Strength Index (RSI) to a 21-period Simple Moving Average of price instead of raw price data. This approach helps reduce market noise and provides smoother, more reliable momentum signals.
The indicator first calculates a 21-period SMA of the closing price, then computes RSI on this moving average. A short moving average is further applied to the RSI values for additional smoothing, making trend strength and reversals easier to identify.
🔧 Features
RSI calculated on a 21-period Moving Average
Smoothed RSI for clearer momentum structure
Customizable RSI length, MA length, and smoothing period
Adjustable Overbought & Oversold levels
Useful for trend continuation, reversal spotting, and momentum confirmation
📌 How to Use
RSI staying above mid-range indicates bullish momentum
RSI staying below mid-range indicates bearish momentum
Crosses above the oversold level may signal potential bullish reversal
Crosses below the overbought level may signal potential bearish reversal
Best used with price action, support & resistance, or volume indicators
🎯 Ideal for traders who prefer clean momentum signals with reduced noise, especially in trending markets.
Script Title: FX Exchange Simulator: Two Investors (Gain vs. LosDescriptionOverviewThis educational tool is designed to help traders and beginners understand the mechanics of currency exchange rates in the EUR/USD pair. It simulates two distinct investor scenarios based on the highest and lowest prices over a user-defined period (default: 100 bars).The Two ScenariosThe script compares how the direction of exchange and the timing of the trade impact final purchasing power:Investor 1 (Starting with USD - The Strategic Entry):At the Low: Converts $1,000 USD into EUR by dividing the amount by the exchange rate.At the High: Converts those EUR back into USD by multiplying.Result: Demonstrates how buying a currency when it is "cheap" (at the low) increases your total capital in dollars.Investor 2 (Starting with EUR - The Timing Error):At the Low: Panics and converts 1,000€ into USD by multiplying.At the High: Tries to recover the 1,000€ by dividing the USD back at a higher rate.Result: Demonstrates how selling a currency when it is "cheap" and buying it back when it is "expensive" leads to a significant loss of purchasing power.FeaturesDynamic Historical Analysis: Automatically finds the highest and lowest points within the selected lookback period.Step-by-Step Calculation Table: A clean, top-centered table showing the initial amount, the exchange process, the final total, and the ROI (Return on Investment) percentage.Visual Annotations: Labels on the chart pinpoint exactly where the "Minimum" and "Maximum" occurred to provide visual context for the trade simulation.Fully Customizable: Users can adjust the initial capital amount and the lookback period via the settings menu.Mathematics Behind the ScriptThe script uses the following formulas for the calculations:Profit Scenario (USD to EUR):$$\text{Total USD} = \left( \frac{\text{Initial USD}}{\text{Price}_{min}} \right) \times \text{Price}_{max}$$Loss Scenario (EUR to USD):$$\text{Total EUR} = \left( \text{Initial EUR} \times \text{Price}_{min} \right) / \text{Price}_{max}$$InstructionsAdd the script to your chart (best used on EUR/USD).Look at the labels to see where the period extremes are.Check the table at the top to see the financial outcome of both investors.Use the "Settings" to change the initial amount or the bar period to test different market cycles.DisclaimerThis script is for educational purposes only. It is intended to illustrate currency exchange mechanics and does not constitute financial advice.
SB - Print MachineIntraday Trading, Observation - Nifty 50, Trade - Nifty Options, Buying only
Rules for Call Options Buying - Observe Nifty 50 Index
1. VWDEMA turns Green (Bullish).
2. VDema turns Green and crossing VWDEMA upside (Bullish).
3. ATR turns Green (Bullish)
4. VPC background turns Green (Bullish). Now Enter Call Side and enjoy the day....
Rules for Put Options Buying - Observe Nifty 50 Index
1. VWDEMA turns Red (Bearish).
2. VDema turns Red and crossing VWDEMA Downside (Bearish).
3. ATR turns Green (Bearish)
4. VPC background turns Red (Bearish). Now Enter Put Side and enjoy the day.....
Exit Rules - As per your own appitite :)
Settings :
VWDEMA Length - 44
VDEMA Length - 21
ATR Length - 14
ATR Multiplier - 1.5
BB - Ignore (Disable/Hide)
Pivot Calculation Method - Wick
Pivot Left Length (Low/High) - 4
Pivot Right Length (Low/High) - 1
Pivot Lebels - Enable All
Pivot Markers - Disable All
Pivot Values - Disable All
VPC Length - 14
VPC Time Frame - 3 Minutes
Main Chart Time Frame - 5 Minutes
Display Settings - As per your own eye comfort
Note - All/Many parameters used here are customisable and come with a dynamic colour coding(Different colour code for uptrend and downtrend)
Settings shared here are best suited to me in terms of output. You can check for your own the settings which suits you the best.
Good Luck !!
Trend Entry Signal v2Used for entry signals. More efficient for scalp trades, at least 70% correct prediction, more efficent on stablecoins.
MFI-RSI Convergence Strategy거래량(Volume)과 가격 모멘텀을 동시에 고려하는 **MFI(Money Flow Index)**는 지지선에서의 '진짜 반등'을 포착하는 데 가장 강력한 도구입니다. 여기에 RSI를 결합하여 모멘텀의 강도까지 확인하는 'Hybrid Volume-Momentum Oscillator' 전략을 작성해 드립니다.
하이브리드 지표의 핵심 메커니즘
MFI(Money Flow Index)의 역할:
MFI는 단순히 가격이 낮아졌는가만 보는 것이 아니라, **'낮은 가격에서 거래량이 터졌는가'**를 계산합니다.
지지선에서 MFI가 20 이하로 떨어진다는 것은 "스마트 머니"가 매집을 준비하는 단계이거나, 투매가 정점에 달해 거래량이 실린 반등이 임박했음을 뜻합니다.
RSI와의 컨버전스(Convergence):
RSI는 가격의 속도를 측정합니다. MFI가 과매도인데 RSI가 아직 높다면, 거래량은 들어오지만 가격의 하락 관성이 여전히 강하다는 뜻입니다.
이 코드의 핵심은 mfi_val <= mfi_low와 rsi_val <= rsi_low가 동시에 만족될 때만 진입하는 것입니다. 이는 거래량 유입 + 하락 관성 둔화가 일치하는 고확률 타점입니다.
리페인팅 차단 및 현실적 시뮬레이션:
ta.mfi와 ta.rsi는 기본적으로 현재 봉의 종가를 기준으로 계산되므로 리페인팅이 발생하지 않습니다.
commission_value=0.05를 통해 거래소 수수료를 반영하여, 잦은 매매로 인한 손실 가능성을 미리 확인할 수 있게 설계했습니다.
//@version=6
strategy("MFI-RSI Convergence Strategy",
overlay=false, // 하단 지표 형태 확인을 위해 false 설정 (차트 위 신호는 별도 plotshape 사용)
initial_capital=10000,
default_qty_type=strategy.percent_of_equity,
default_qty_value=10,
commission_type=strategy.commission.percent,
commission_value=0.05,
slippage=1)
// --- ---
group_date = "1. 백테스트 기간"
start_time = input.time(timestamp("2024-01-01 00:00:00"), "시작일", group=group_date)
end_time = input.time(timestamp("2026-12-31 23:59:59"), "종료일", group=group_date)
within_window() => time >= start_time and time <= end_time
group_mfi = "2. MFI (Volume) 설정"
mfi_length = input.int(14, "MFI 기간", minval=1, group=group_mfi)
mfi_low = input.int(20, "MFI 과매도 (매수세 유입 대기)", group=group_mfi)
mfi_high = input.int(80, "MFI 과매수 (매도세 유입 대기)", group=group_mfi)
group_rsi = "3. RSI (Momentum) 설정"
rsi_length = input.int(14, "RSI 기간", minval=1, group=group_rsi)
rsi_low = input.int(30, "RSI 과매도", group=group_rsi)
rsi_high = input.int(70, "RSI 과매수", group=group_rsi)
group_risk = "4. 리스크 관리"
tp_pct = input.float(3.0, "익절 (%)", step=0.1, group=group_risk) / 100
sl_pct = input.float(1.5, "손절 (%)", step=0.1, group=group_risk) / 100
// --- ---
// MFI (가격 + 거래량 가중)
mfi_val = ta.mfi(close, mfi_length)
// RSI (가격 변동 강도)
rsi_val = ta.rsi(close, rsi_length)
// --- ---
// 매수 조건: MFI와 RSI가 모두 과매도 구간일 때 (강력한 반등 예상 지점)
long_condition = (mfi_val <= mfi_low) and (rsi_val <= rsi_low)
// 매도 조건: MFI와 RSI가 모두 과매수 구간일 때
short_condition = (mfi_val >= mfi_high) and (rsi_val >= rsi_high)
// --- ---
if within_window()
if long_condition
strategy.entry("Long", strategy.long, comment="VLM+MOM Bottom")
if short_condition
strategy.entry("Short", strategy.short, comment="VLM+MOM Top")
// 익절 및 손절 설정
strategy.exit("Ex Long", "Long", limit=strategy.position_avg_price * (1 + tp_pct), stop=strategy.position_avg_price * (1 - sl_pct))
strategy.exit("Ex Short", "Short", limit=strategy.position_avg_price * (1 - tp_pct), stop=strategy.position_avg_price * (1 + sl_pct))
// --- ---
// 배경 가이드라인
hline(mfi_high, "Upper Boundary", color=color.gray, linestyle=hline.style_dashed)
hline(50, "Middle", color=color.new(color.gray, 50))
hline(mfi_low, "Lower Boundary", color=color.gray, linestyle=hline.style_dashed)
// 지표 플롯
plot(mfi_val, "MFI (Volume Flow)", color=color.aqua, linewidth=2)
plot(rsi_val, "RSI (Momentum)", color=color.yellow, linewidth=1)
// 중첩 구간 강조 (Convergence)
fill_color = (mfi_val <= mfi_low and rsi_val <= rsi_low) ? color.new(color.green, 70) :
(mfi_val >= mfi_high and rsi_val >= rsi_high) ? color.new(color.red, 70) : na
bgcolor(fill_color)
// 신호 발생 시 하단에 아이콘 표시
plotshape(long_condition, title="Buy Signal", location=location.bottom, color=color.green, style=shape.triangleup, size=size.small)
plotshape(short_condition, title="Sell Signal", location=location.top, color=color.red, style=shape.triangledown, size=size.small)
PK_Volume Delta Candles [LuxAlgo]The inside candle colour where the candle color and delta are opposite, has been converted into yellow color.
First FVG per Session - Big Boss Traders)First FVG per Session - Big Boss Traders)
All persistent variables (fvgTop, fvgBottom, boxes) declared with var at the top.
No assignment to na without var → compiles error-free.
FVG boxes and levels are dark orange.
First FVG per session is drawn and prolonged dynamically.
Background colors per session remain.
EEQI [Environment Quality Index] PyraTime The Problem: Why Good Strategies Fail
The number one reason traders lose capital is not a lack of strategy—it is forced execution in poor environments.
Most indicators (RSI, MACD, Stochastic) are continuously active, generating signals even when the market is dead, choppy, or chaotic. A breakout strategy that prints money in a trend will destroy your account in a consolidation range. A mean-reversion system that works in chop will fail during a parabolic expansion.
The Solution: PyraTime EEQI The Execution Environment Quality Index (EEQI) is a "Gatekeeper" layer for your trading. It does not tell you what to buy or sell; it tells you if you should be trading at all.
By aggregating Volatility, Price Structure, and Efficiency into a single composite score, the EEQI answers the most critical question in discretionary trading: "Is the market efficient enough to deploy capital right now?"
How It Works: The 3 Core Engines
The EEQI calculates a raw "Environment Score" (from -2 to +4) by analyzing three distinct dimensions of price action.
1. Volatility Engine (Usability)
The Logic: Measures the "Alive-ness" of the market using ATR Percentiles.
The Filter: It detects "Dead Zones" (where price is too flat to hit targets) and "Chaos Zones" (where volatility is too dangerous).
Smart Feature (Parabolic Override): If price moves significantly (>2x ATR) in a single candle, the engine recognizes this as "High Momentum" rather than chaos, unlocking Green signals during breakouts.
2. Structure Engine (Bar Quality)
The Logic: Analyzes the relationship between candle bodies, wicks, and overlap.
The Filter: It penalizes "Barbed Wire" price action—candles with long wicks and high overlap—which indicate indecision and algo-chop.
The Goal: We want to trade during "Clean Flow," where candle bodies are large and overlap is low.
3. Efficiency Engine (Directional Flow)
The Logic: Compares Net Displacement (start-to-finish distance) vs. Total Distance Traveled.
The Filter: Identifies "Whipsaw" conditions where price moves a lot but goes nowhere.
Smart Feature (Velocity Lock): If price travels a massive distance quickly, the efficiency requirement is relaxed to catch explosive moves that might otherwise look "messy."
The "Smart Gatekeepers"
Even if the Core Engines look good, the EEQI applies three final safety checks before granting a PRIME status.
Regime Persistence (Stability Check): The market must hold a high score for a set number of bars (default: 1) before the signal turns Green. This prevents "fake-outs" where a single anomaly candle tricks you into entering a bad trend.
Volume Validation (Liquidity Check): Price movement without participation is a trap. The EEQI checks Relative Volume (RVOL). If volume is below average (e.g., lunch hour, holidays, or late-night sessions), the score is capped at "Fair" or "Low Vol," preventing execution in thin liquidity.
Macro Context (HTF Filter): You cannot trade against the higher timeframe. The EEQI checks the trend and volatility of the Higher Timeframe (default: Weekly). If the macro view is compressed or dead, the local signal is vetoed.
How to Read the HUD
The Dashboard (Bottom Right) gives you an instant read on the market state.
🟢 PRIME (+4): Execution Optimal. The market is trending, efficient, and backed by volume. This is the "Green Light" for your strategy.
🔵 FAIR (+1 to +3): Tradeable. Conditions are decent, but one factor (e.g., volume or structure) is imperfect. Exercise caution.
⚪ NEUTRAL (0): Indecision. The market is transitioning. Stand aside.
🟡 BUILDING: Wait. The market is good, but hasn't proven itself yet (Persistence Check).
🟠 POOR / LOW VOL: Chop. Price is messy or lacking participation.
🔴 AVOID (-2): Danger Zone. The market is either dead flat or violently chaotic. Do not trade.
Settings & Customization
The indicator comes with calibrated presets for different asset classes:
Crypto: Tolerates higher volatility and requires stronger efficiency confirmation.
Forex: Stricter dead-zone filters to handle ranging sessions.
Indices: Balanced settings for standard equity hours.
Disclaimer
This tool is designed for environment analysis only. It does not provide buy or sell signals, entry prices, or stop-losses. It is intended to be used as a filter to improve the performance of your own discretionary strategies.
Trend & Trigger (Ordered Legend)Description:
Overview This script implements a "Dual Timeframe" swing trading strategy designed for Daily charts. It separates the "Decision" (Trend) from the "Timing" (Momentum) by combining classic moving average logic found in the works of John J. Murphy and Dr. Alexander Elder.
The Strategy Components
1. The Landscape (Trend Filter)
200 SMA (Black Line): Defines the major market structure.
Rule: If Price > 200 SMA, the trend is Bullish (Longs Only). If Price < 200 SMA, the trend is Bearish (Shorts Only).
50 SMA (Blue Line): Represents the intermediate trend.
Usage: In a healthy uptrend, price often pulls back to bounce off the 50 SMA. It serves as a key level for placing Stop Losses.
2. The Trigger (Momentum Entry)
9 EMA (Green Line) & 20 EMA (Red Line):
These lines act as the "timing belt." We wait for a pullback in price to resolve itself before entering.
BUY Signal (Green Triangle): Appears when the 9 EMA crosses ABOVE the 20 EMA AND the Price is above the 200 SMA. This confirms momentum is returning in the direction of the major trend.
SHORT Signal (Red Triangle): Appears when the 9 EMA crosses BELOW the 20 EMA AND the Price is below the 200 SMA.
Best Practices for Use
Timeframe: Optimized for Daily (D) charts.
The "Value" Zone: The best signals occur when the price pulls back near the 50 SMA or 20 EMA and then triggers a crossover. Avoid taking signals when the price is already far extended (vertical) from the 50 SMA.
Stop Loss: A common technique is to place the initial stop loss below the 50 SMA or the most recent swing low.
Source Material
Technical Analysis of the Financial Markets (John J. Murphy) - Concepts of the "Golden Cross" and major trend filtering.
Trading for a Living (Dr. Alexander Elder) - Concepts of "Triple Screen" trading (using a slow trend filter and a fast trigger).
EMA 9, 20, 30, 200 (Buy Trend Filter Only)EMA 9, 20, 30, 200 (Buy Trend Filter Only) simple ema crossing analysis
3 Sessions Box (ON/OFF)📖 The Story of the Three Gatekeepers (English Version)
Every trading day is a journey through three different worlds.
The chart is like a city, and price is like a crowd that never stops moving.
To bring structure into this movement, I built a script that summons three gatekeepers — each one guarding a different trading session, drawing a box that marks the boundaries of that time period.
These boxes are not just visuals.
They represent the true ranges where liquidity is built, tested, and finally released.
🌙 Session 1 — The Midnight Shadow
From 00:00 to 08:00 (MYT), the market enters its quietest state.
This is the time when price moves slowly, but it often sets the foundation for the entire day.
The first gatekeeper observes every candle, recording the highest high and lowest low, then seals it into a blue box.
This box becomes the “silent range” — a zone that later sessions may break, retest, or manipulate.
☀️ Session 2 — The Daylight Order
From 08:00 to 16:00 (MYT), the market wakes up.
Liquidity begins to flow, and structure starts to form.
The second gatekeeper draws a green box to capture this session’s true range.
He does not chase price.
He protects order — because real trends often begin here.
🔥 Session 3 — The Night Battlefield
From 16:00 to 23:59 (MYT), the market becomes a battlefield.
Volatility increases, and decisive moves are made.
The third gatekeeper draws a red box, locking in the highs and lows of the final session.
Red means war:
breakouts, fakeouts, liquidity sweeps, and explosive continuations.
This is often where winners and losers are separated.
🎛️ The Most Powerful Feature — You Control the Switch
This script is not fixed.
You can decide:
Focus only on Session 1 ✅
Turn off Session 2 completely ✅
Trade only Session 3 breakouts ✅
Because you are the commander.
The gatekeepers simply execute your rules.






















