MEO PRO: BIST Market Strength Oscillator / Piyasa Gücü OsilatörüMEO PRO: BIST Market Strength Oscillator
MEO PRO: BIST Market Strength Oscillator helps you gauge the overall strength of the market by showing how many of your selected Borsa Istanbul (BIST) symbols are trading above their specified moving average. This tool, which generates a value between 0 and 1, provides insight into the general direction of BIST.
Features
* Measures the overall strength of the BIST market.
* Tracks up to 7 user-defined BIST symbols (indices, stocks, etc.).
* Adjustable Moving Average (MA) period for trend determination.
* Adjustable smoothing (EMA) period for the oscillator.
* Clear oscillator output ranging from 0 to 1.
* Key reference levels: Strong Bullish (0.80), Neutral Zone (0.50), Strong Bearish (0.20).
* The indicator's user interface (settings, tooltips) is in Turkish.
---
Who Is It For?
* Borsa Istanbul (BIST) investors and technical analysts.
* Those who want to get an idea about the overall market strength and market breadth.
* Those looking for an additional confirmation and assessment tool for their existing technical analysis methods.
---
How to Use?
1. Adding to Chart:
In TradingView, search for "MEO PRO: BIST Market Strength Oscillator" in the "Indicators" section and add it to your chart.
2. Settings:
MA Period for Trend: Determines the MA against which tracked symbols are evaluated (e.g., 50).
Oscillator Smoothing Period: Smoothes the oscillator line (e.g., 10).
Symbols to Track: Enter up to 7 BIST symbols (e.g., "BIST:XU100", "BIST:GARAN") and activate them.
3. Interpretation:
* If the oscillator is at 0.80 or above, it generally indicates a strong bullish trend in the market.
* If the oscillator is at 0.20 or below, it generally indicates a strong bearish trend in the market.
* Values around 0.50 may suggest an indecisive or sideways market.
* Important Note: This oscillator should not be used as a standalone buy/sell signal but as a decision support tool in conjunction with other analyses.
---
Frequently Asked Questions (FAQ)
Q: Does this indicator only work for BIST?
A: Yes, it is primarily designed for Borsa Istanbul (BIST) symbols and market conditions.
Q: How many symbols can I track at most?
A: There are 7 symbol inputs in the settings.
Q: Why does the oscillator range between 0 and 1?
A: The oscillator shows the ratio of active symbols above their MA to the total number of active symbols; this ratio is always between 0 and 1.
Q: Does this indicator provide definitive buy/sell signals?
A: No. The MEO PRO BIST Market Strength Oscillator is an analysis tool that provides insight into the overall market condition. Trading decisions should be based on your personal risk assessment and other analyses.
---
Disclaimer
* This indicator is for educational and informational purposes only and does not constitute investment advice.
* Past market performance is not a guarantee of future results.
* You are solely responsible for any trades you make using this indicator. Trading in financial markets involves risk of loss.
* It is important to conduct your own research and, if necessary, consult a licensed financial advisor before making any investment decisions.
---
TradingView Terms of Use
By using this indicator on the TradingView platform, you agree to TradingView's Terms of Use. You can access the current terms of use at www.tradingview.com
Multitimeframe
RSI Multi-TF TabRSI Multi-Timeframe Table 📊
A tool for multi-timeframe RSI analysis with visual overbought/oversold level highlighting.
Description
This indicator calculates the Relative Strength Index (RSI) for the current chart and displays RSI values across five additional timeframes (15m, 1h, 4h, 1d, 1w) in a dynamic table. The color-coded system simplifies identifying overbought (>70), oversold (<30), and neutral zones. Visual signals on the chart enhance analysis for the current timeframe.
Key Features
✅ Multi-Timeframe Analysis :
Track RSI across 15m, 1h, 4h, 1d, and 1w in a compact table.
Color-coded alerts:
🔴 Red — Overbought (potential pullback),
🔵 Blue — Oversold (potential rebound),
🟡 Yellow — Neutral zone.
✅ Visual Signals :
Background shading for oversold/overbought zones on the main chart.
Horizontal lines at 30 and 70 levels for reference.
✅ Customizable Settings :
Adjust RSI length (default: 14), source (close, open, high, etc.), and threshold levels.
How to Use
Table Analysis :
Compare RSI values across timeframes to spot divergences (e.g., overbought on 15m vs. oversold on D).
Use colors for quick decisions.
Chart Signals :
Blue background suggests bullish potential (oversold), red hints at bearish pressure (overbought).
Always confirm with other tools (volume, trends, or candlestick patterns).
Examples :
RSI(1h) > 70 while RSI(4h) < 30 → Possible reversal upward.
Sustained RSI(1d) above 50 may indicate a bullish trend.
Settings
RSI Length : Period for RSI calculation (default: 14).
RSI Source : Data source (close, open, high, low, hl2, hlc3, ohlc4).
Overbought/Oversold Levels : Thresholds for alerts (default: 70/30).
Important Notes
No direct trading signals : Use this as an analytical tool, not a standalone strategy.
Test strategies historically and consider market context before trading.
Swing High Low Detector by RV5📄 Description
The Swing High Low Detector is a visual indicator that automatically detects and displays swing highs and swing lows on the chart. Swings are determined based on configurable strength parameters (number of bars before and after a high/low), allowing users to fine-tune the sensitivity of the swing points.
🔹 Current swing levels are shown as solid (or user-defined) lines that dynamically extend until broken.
🔹 Past swing levels are preserved as dashed/dotted lines once broken, allowing traders to see previous support/resistance zones.
🔹 Customizable line colors, styles, and thickness for both current and past levels.
This indicator is useful for:
Identifying key market structure turning points
Building breakout strategies
Spotting trend reversals and swing zones
⚙️ How to Use
1. Add the indicator to any chart on any timeframe.
2. Adjust the Swing Strength inputs to change how sensitive the detector is:
A higher value will filter out smaller moves.
A lower value will capture more frequent swing points.
3. Customize the line styles for visual preference.
Choose different colors, line styles (solid/dashed/dotted), and thickness for:
Current Swing Highs (SH)
Past Swing Highs
Current Swing Lows (SL)
Past Swing Lows
4. Observe:
As new swing highs/lows are detected, the indicator draws a new current level.
Once price breaks that level, the line is archived as a past level and a new current swing is drawn.
✅ Features
Fully customizable styling for all lines
Real-time updates and automatic level tracking
Supports all chart types and instruments
👨💻 Credits
Script logic and implementation by RV5. This script was developed as a tool to improve price action visualization and trading structure clarity. Not affiliated with any financial institution. Use responsibly.
[Top] Simple Position + SL CalculatorThis indicator is a user-friendly tool designed to help traders easily calculate optimal position sizing, determine suitable stop-loss levels, and quantify maximum potential losses in dollar terms based on their personalized trading parameters.
Key Features:
Position Size Calculation: Automatically computes the number of shares to purchase based on the trader’s total account size and specified percentage of the account allocated per trade.
Stop-Loss Level: Suggests an appropriate stop-loss price point calculated based on the trader’s defined risk percentage per trade.
Max Loss Visualization: Clearly displays the maximum potential loss (in dollars) should the stop-loss be triggered.
Customizable Interface: Provides the flexibility to place the calculation table in different chart positions (Top Left, Top Right, Bottom Left, Bottom Right) according to user preference.
How to Use:
Enter your total Account Size.
Set the desired Position Size as a percentage of your account. (Typically, 1%–5% per trade is recommended for cash accounts.)
Define the Risk per Trade percentage (commonly between 0.05%–0.5%).
Choose your preferred Table Position to comfortably integrate with your trading chart.
Note:
If you identify a technical support level below the suggested stop-loss point, consider reducing your position size to manage the increased risk effectively.
Keep in mind that the calculations provided by this indicator are based solely on standard industry best practices and the specific inputs entered by you. They do not account for market volatility, news events, or any other factors outside the provided parameters. Always complement this indicator with sound technical and fundamental analysis.
SMA + S/R + Trendkanal + Alarme (15/30 Min Settings)This TradingView script combines several useful tools for intraday trading on 15- and 30-minute charts:
SMA Crossovers: Two Simple Moving Averages (short and long) are calculated and plotted. Buy and sell signals are detected when the short SMA crosses the long SMA upward or downward. These signals are shown as labels on the chart.
Automatic Support and Resistance Lines: Swing highs and lows are detected to identify key support and resistance levels. These are drawn as horizontal lines and can be limited in number.
Trend Channel: A dynamic trend channel is drawn based on linear regression of the highs and lows of the last n bars. The channel’s width can be adjusted.
Alerts: The script triggers alerts on SMA crossovers, breaks of support or resistance lines, and when the price leaves the trend channel.
Adjustable Parameters: The key parameters such as SMA lengths, lookback periods for support/resistance and trend channel, and channel width are configurable via the input menu. There is also a preset selection for 15- or 30-minute timeframes.
This script simplifies the analysis of trend changes, key price levels, and overall market structure for medium-term intraday trading.
Dieses TradingView-Skript kombiniert mehrere nützliche Werkzeuge für den Intraday-Handel auf 15- und 30-Minuten-Charts:
SMA-Kreuzungen: Zwei gleitende Durchschnitte (SMA kurz und SMA lang) werden berechnet und auf dem Chart angezeigt. Buy- und Sell-Signale werden erkannt, wenn der kurze SMA den langen SMA von unten nach oben bzw. von oben nach unten kreuzt. Diese Signale werden als Labels auf dem Chart angezeigt.
Automatische Support- und Resistance-Linien: Swing Highs und Lows werden erkannt, um wichtige Unterstützungs- und Widerstandsniveaus zu bestimmen. Diese werden als horizontale Linien eingezeichnet und können in der Anzahl begrenzt werden.
Trendkanal: Ein dynamischer Trendkanal wird basierend auf linearer Regression der Hoch- und Tiefpunkte der letzten n Kerzen gezeichnet. Der Abstand des Kanals kann angepasst werden.
Alarme: Das Skript generiert Alarme bei SMA-Kreuzungen, beim Durchbrechen von Support- oder Resistance-Linien sowie beim Verlassen des Trendkanals.
Einstellbare Parameter: Die wichtigsten Parameter wie SMA-Längen, Lookback-Längen für Support/Resistance und Trendkanal sowie die Kanalbreite sind über das Input-Menü flexibel anpassbar. Außerdem gibt es eine Auswahlmöglichkeit für voreingestellte Parameter für 15- oder 30-Minuten-Zeiteinheiten.
Day Separator with Day LabelsAdjustable day separator that paints vertical lines through the start of day. Default set to GMT however totally customisable.
Has the day of week ladled also which is also optional in position.
there is a check box for a light chart background chart but default is dark background.
Vertical lines are customisable regarding thickness and colour.
Pretty new to it all so welcome feedback and amendment ideas.
Advanced Moving Average ChannelAdvanced Moving Average Channel (MAC) is a comprehensive technical analysis tool that combines multiple moving average types with volume analysis to provide a complete market perspective.
Key Features:
1. Dynamic Channel Formation
- Configurable moving average types (SMA, EMA, WMA, VWMA, HMA, TEMA)
- Separate upper and lower band calculations
- Customizable band offsets for precise channel adjustment
2. Volume Analysis Integration
- Multi-timeframe volume analysis (1H, 24H, 7D)
- Relative volume comparison against historical averages
- Volume trend detection with visual indicators
- Price-level volume distribution profile
3. Market Context Indicators
- RSI integration for overbought/oversold conditions
- Channel position percentage
- Volume-weighted price levels
- Breakout detection with visual signals
Usage Guidelines:
1. Channel Interpretation
- Price within channel: Normal market conditions
- Price above upper band: Potential overbought condition
- Price below lower band: Potential oversold condition
- Channel width: Indicates market volatility
2. Volume Analysis
- High relative volume (>150%): Strong market interest
- Low relative volume (<50%): Weak market interest
- Volume trend arrows: Indicate increasing/decreasing market participation
- Volume profile: Shows price levels with highest trading activity
3. Trading Signals
- Breakout arrows: Potential trend continuation
- RSI extremes: Confirmation of overbought/oversold conditions
- Volume confirmation: Validates price movements
Customization:
- Adjust MA length for different market conditions
- Modify band offsets for tighter/looser channels
- Fine-tune volume analysis parameters
- Customize visual appearance
This indicator is designed for traders who want to combine price action, volume analysis, and market structure in a single, comprehensive tool.
My Trading mantra/playbook🧠 My Trading Mantra — Motivational Trading Reminder Overlay
This indicator displays a customizable trading mantra as an overlay on your TradingView charts to keep your mindset sharp and disciplined during trading sessions.
You can customize the mantra text, font size, text color, background color, transparency, and screen position (top, middle, bottom, left, right, center).
It’s designed to serve as a constant motivational reminder emphasizing core trading principles like planning, risk management, patience, and learning from losses to grow profits.
Features:
Customizable multi-line mantra text input
Adjustable font size (small to huge)
Color customization for text and background
Adjustable background transparency
Multiple screen position options for display
Lightweight and simple overlay, no performance impact
Purpose:
To help traders stay mentally focused and disciplined by having their personalized mantra visible at all times while analyzing charts.
Additionally, it can be used as a trading plan or playbook, allowing traders to display their key rules, strategies, or reminders directly on their charts for quick reference during live trading.
code is open with love.
you are a good trader don't let the markets tell you diffrent.
Fibonacci Moving Average (Non-Repainting)# Fibonacci Moving Average Indicator
## What Does This Indicator Do?
This indicator creates a **special moving average** that combines traditional moving averages with Fibonacci ratios to help identify support and resistance levels.
## How It Works (In Simple Terms)
### 1. **Gets Yesterday's Close Price**
- Takes the closing price from the previous day
- This ensures the indicator **never repaints** (won't change its past values)
### 2. **Calculates a Base Moving Average**
- Uses yesterday's close to create a moving average (you can choose SMA, EMA, or WMA)
- This becomes the "center line" of our Fibonacci levels
### 3. **Creates Fibonacci Levels**
- Measures the distance between current price and the base moving average
- Uses famous Fibonacci percentages (23.6%, 38.2%, 50%, 61.8%, 78.6%) to create levels above and below the base line
- These levels often act as **support and resistance**
### 4. **Main Fibonacci MA**
- Combines the most important levels (61.8% upper, base, 61.8% lower) into one main line
- This blue line is your primary signal
## What You See on Your Chart
### Visual Elements:
- **Blue Line**: Main Fibonacci Moving Average (your key signal)
- **Colored Lines**: Individual Fibonacci levels (if enabled)
- **Background Color**:
- Light green = uptrend
- Light red = downtrend
- **Info Table**: Shows current values in top-right corner
## How to Use It
### Trading Signals:
1. **Price above blue line** = Bullish bias
2. **Price below blue line** = Bearish bias
3. **Blue line trending up** = Overall uptrend
4. **Blue line trending down** = Overall downtrend
### Support & Resistance:
- Fibonacci level lines often act as support when price is rising
- Same lines act as resistance when price is falling
- Watch for price reactions at these levels
## Key Settings You Can Adjust
- **Fibonacci Length**: How many periods to use (default: 21)
- **MA Type**: Choose SMA, EMA, or WMA for the base calculation
- **Show Levels**: Turn Fibonacci level lines on/off
## Why This Is Better Than Regular Moving Averages
1. **No Repainting**: Uses fixed historical data, so signals won't disappear
2. **Multiple Levels**: Gives you several potential support/resistance zones
3. **Fibonacci Magic**: Uses ratios that markets naturally respect
4. **Trend Confirmation**: Background color helps confirm overall direction
## Perfect For:
- Swing trading
- Identifying key levels
- Trend following
- Entry and exit timing
Swing Fibo Zone PRO + AlgoAlpha Swift Liquidity + RSI DivergenceHeadline:
“Swing Fibo Zone PRO + Swift Liquidity: Advanced Price Action & Liquidity Detection”
Description:
Unlock next-level price action and liquidity insight with Swing Fibo Zone PRO + AlgoAlpha Swift Liquidity + RSI Divergence!
Perfect for day traders, scalpers, and swing traders who want to track institutional sweeps, breakout traps, and high-probability reversal zones.
Key Features:
Dynamic Fibonacci Zones:
Auto-detect the latest swing high/low and plot real-time Fibo zones (100, 75, 50, 25, 0) with price labels, customizable color/width/size.
Swift Liquidity (AlgoAlpha):
Accurately detects and draws high-volume liquidity sweep zones using higher timeframe price swings (with optional multiplier), adjustable line color, width, and style.
Get instant “Bull Sweep” & “Bear Sweep” alerts on true mitigation!
RSI Divergence Engine:
Professional divergence signals (bull/bear), with full control of label size and color, for high-confidence setups in reaction zones.
Highlight Zone Box:
Instantly spot the top and bottom action zones with colored highlights.
Clean UI – no label overlap, always easy-to-read.
Modular & Customizable:
Separate controls for Fibo lines, liquidity lines, and all label styles
Full toggle: show/hide each feature as you like
Completely array-safe, optimized for all timeframes
How to Use:
Apply to your chart – works best on intraday and swing timeframes.
Adjust “Swing Strength” and “Interval” for your preferred swing/trend style.
Set the TimeFrame Multiplier in the Swift Liquidity section (e.g. 4–8 for institutional liquidity).
Customize all visual styles – line color, width, style, and label sizes for perfect clarity.
Look for confluence:
Major liquidity sweeps aligning with key Fibo zones
RSI divergence signals at or near these zones
Confirm with volume and candle structure
Best Use Cases:
Spotting liquidity grabs / stop hunts
High-probability reversal and continuation setups
Combining institutional orderflow with classic price action
Scalping, swing trading, and intraday strategy development
Tags:
#liquidity #fibonacci #swingtrading #priceaction #scalping #orderflow #divergence #liquiditysweep #tradingstrategy #algoalpha
Pro Tip:
For the most robust results, combine liquidity sweep lines with Fibo zones and only trade setups with RSI divergence confirmation.
Timeframe % TrakcerPulls historical closes from nine higher-timeframe look-backs (1 H, 12 H, 1 D, 7 D, 14 D, 1 M, 3 M, 6 M, 1 Y, 3 Y) with request.security().
2. Calculates the percent change between each look-back close and the current price:
(close − close₍look-back₎) / close₍look-back₎ × 100
3. Renders a two-column table in the chart’s top-right corner.
• Left column = timeframe label
• Right column = % move, rounded to two decimals
4. Heat-codes the cells — green if the asset is up, red if it’s down — so you can spot momentum (or pain) instantly.
5. Stays lightweight by updating only on the last bar; no excess runtimes.
Grid TLong V1The “Grid TLong V1” strategy is based on the classic Grid strategy, but in the mode of buying and selling in favor of the trend and only on Long. This allows to take advantage of large uptrend movements to maximize profits in bull markets. For this reason, excessively sideways or bearish markets may not be very conducive to this strategy.
Like our Grid strategies in favor of the trend, you can enter and exit with the balance with controlled risk, as the distance between each grid functions as a natural and adaptable stop loss and take profit. What differentiates it from bidirectional strategies is that Short uses a minimum amount of follow-through, so that the percentage distance between the grids is maintained.
In this version of the script the entries and exits can be chosen at market or limit , and are based on the profit or loss of the current position, not on the percentage change in price.
The user may also notice that the strategy setup is risk-controlled, because it risks 5% on each trade, has a fairly standard commission and modest initial capital, all in order to protect the strategy user from unrealistic results.
As with all strategies, it is strongly recommended to optimize the parameters for the strategy to be effective for each asset and for each time frame.
Previous Highs & Lows (Customizable)Previous Highs & Lows (Customizable)
This Pine Script indicator displays horizontal lines and labels for high, low, and midpoint levels across multiple timeframes. The indicator plots levels from the following periods:
Today's session high, low, and midpoint
Yesterday's high, low, and midpoint
Current week's high, low, and midpoint
Last week's high, low, and midpoint
Last month's high, low, and midpoint
Last quarter's high, low, and midpoint
Last year's high, low, and midpoint
Features
Individual Controls: Each timeframe has separate toggles for showing/hiding high/low levels and midpoint levels.
Custom Colors: Independent color selection for lines and labels for each timeframe group.
Display Options:
Adjustable line width (1-5 pixels)
Variable label text size (tiny, small, normal, large, huge)
Configurable label offset positioning
Organization: Settings are grouped by timeframe in a logical sequence from most recent (today) to least recent (last year).
Display Logic: Lines span the current trading day only. Labels are positioned to the right of the price action. The indicator automatically removes previous drawings to prevent chart clutter.
Session High/Low: Asia & LondonIndicator to automatically mark the lower low and the higher high of the Asian and London sessions.
Scalping EMA Crossover (EMA 9 / EMA 21 + EMA 200)scalping ema crossover u can change ema
ema 9
ema 21
ema 200
Volume pressure by GSK-VIZAG-AP-INDIA🔍 Volume Pressure by GSK-VIZAG-AP-INDIA
🧠 Overview
“Volume Pressure” is a multi-timeframe, real-time table-based volume analysis tool designed to give traders a clear and immediate view of buying and selling pressure across custom-selected timeframes. By breaking down buy volume, sell volume, total volume, and their percentages, this indicator helps traders identify demand/supply imbalances and volume momentum in the market.
🎯 Purpose / Trading Use Case
This indicator is ideal for intraday and short-term traders who want to:
Spot aggressive buying or selling activity
Track volume dynamics across multiple timeframes *1 min time frame will give best results*
Use volume pressure as a confirming tool alongside price action or trend-based systems
It helps determine when large buying/selling activity is occurring and whether such behavior is consistent across timeframes—a strong signal of institutional interest or volume-driven trend shifts.
🧩 Key Features & Logic
Real-Time Table Display: A clean, dynamic table showing:
Buy Volume
Sell Volume
Total Volume
Buy % of total volume
Sell % of total volume
Multi-Time frame Analysis: Supports 8 user-selectable custom time frames from 1 to 240 minutes, giving flexibility to analyze volume pressure at various granularities.
Color-Coded Volume Bias:
Green for dominant Buy pressure
Red for dominant Sell pressure
Yellow for Neutral
Intensity-based blinking for extreme values (over 70%)
Dynamic Data Calculation:
Uses volume * (close > open) logic to estimate buy vs sell volumes bar-by-bar, then aggregates by timeframe.
⚙️ User Inputs & Settings
Timeframe Selectors (TF1 to TF8): Choose any 8 timeframes you want to monitor volume pressure across.
Text & Color Settings:
Customize text colors for Buy, Sell, Total volumes
Choose Buy/Sell bias colors
Enable/disable blinking for visual emphasis on extremes
Table Appearance:
Set header color, metric background, and text size
Table positioning: top-right, bottom-right, etc.
Blinking Highlight Toggle: Enable this to visually highlight when Buy/Sell % exceeds 70%—a sign of strong pressure.
📊 Visual Elements Explained
The table has 6 rows and 10 columns:
Row 0: Headers for Today and TF1 to TF8
Rows 1–3: Absolute values (Buy Vol, Sell Vol, Total Vol)
Rows 4–5: Relative percentages (Buy %, Sell %), with dynamic background color
First column shows the metric names (e.g., “Buy Vol”)
Cells blink using alternate background colors if volume pressure crosses thresholds
💡 How to Use It Effectively
Use Buy/Sell % rows to confirm potential breakout trades or identify volume exhaustion zones
Look for multi-timeframe confluence: If 5 or more TFs show >70% Buy pressure, buyers are in control
Combine with price action (e.g., breakouts, reversals) to increase conviction
Suitable for equities, indices, futures, crypto, especially on lower timeframes (1m to 15m)
🏆 What Makes It Unique
Table-based MTF Volume Pressure Display: Most indicators only show volume as bars or histograms; this script summarizes and color-codes volume bias across timeframes in a tabular format.
Customization-friendly: Full control over colors, themes, and timeframes
Blinking Alerts: Rare visual feature to capture user attention during extreme pressure
Designed with performance and readability in mind—even for fast-paced scalping environments.
🚨 Alerts / Extras
While this script doesn’t include TradingView alert functions directly, the visual blinking serves as a strong real-time alert mechanism.
Future versions may include built-in alert conditions for buy/sell bias thresholds.
🔬 Technical Concepts Used
Volume Dissection using close > open logic (to estimate buyer vs seller pressure)
Simple aggregation of volume over custom timeframes
Table plotting using Pine Script table.new, table.cell
Dynamic color logic for bias identification
Custom blinking logic using na(bar_index % 2 == 0 ? colorA : colorB)
⚠️ Disclaimer
This indicator is a tool for analysis, not financial advice. Always backtest and validate strategies before using any indicator for live trading. Past performance is not indicative of future results. Use at your own risk and apply proper risk management.
✍️ Author & Signature
Indicator Name: Volume Pressure
Author: GSK-VIZAG-AP-INDIA
TradingView Username: prowelltraders
Hidden Orderblock,HOB,OB,BB,Moneytaur,MT,MTFHidden Orderblock,HOB,OB,BB,Moneytaur,MT,MTF Indicator – Powered by @Moneytaur_ Concepts
This powerful and intuitive indicator is built upon the advanced market structure concepts taught by @Moneytaur_ on X. Designed for traders who value precision, clarity, and speed, it brings institutional-grade insights directly to your charts – without the usual clutter.
🔑 Key Features:
Hidden Order Block & Breaker Block Detection (HOB/BB): Automatically identifies critical Hidden Order Blocks and Breaker Blocks, giving you an edge in spotting institutional levels before price reacts.
Partial Hidden Order Block Detection (PHOB): Capture partial block formations that are often missed by conventional indicators, helping you anticipate potential reversals or continuations early.
Order Block Detection (OB): Traditional and essential OBs are marked with precision, helping you align with smart money footprints.
Multi-Time Frame View: Stay on your preferred timeframe (e.g., 1H) while effortlessly viewing Daily Hidden OBs, Breaker Blocks, and more. No more constant switching between timeframes.
Engulfing Engine: A dynamic filter system allowing you to define what qualifies as a valid block. Use the “Easy Engulfing” mode to reveal all qualifying Order Blocks with ease.
Clean Visual Interface: Blocks are displayed with a simple line marking their Equilibrium (EQ) – the midpoint of the block – for a sleek, non-intrusive visual. Ideal for traders who value screen clarity and efficiency.
Lightning Fast Performance: Optimized for speed and responsiveness, keeping your charts smooth and your decisions fast.
Streamlined Workflow: Say goodbye to juggling multiple indicators or constantly swapping timeframes. Everything you need is right where you want it.
This indicator is a direct application of the Moneytaur methodology – precise, actionable, and rooted in real smart money concepts. If you follow @Moneytaur_ and appreciate his teachings, this tool will feel like a natural extension of his trading philosophy.
Ready to level up your charting with institutional precision? Add this to your toolkit today.
HTF Candle Breakout Fibonacci LevelsThis indicator automatically plots Fibonacci retracement levels on a lower timeframe (LTF) after detecting a breakout candle on a selected higher timeframe (HTF).
🔍 How It Works
When a candle on your selected HTF closes beyond the high or low of the previous candle, the indicator automatically draws Fibonacci levels on the LTF.
These levels remain visible until the next HTF candle is formed — allowing you to trade retracements with contextual precision.
⸻
⚙️ Customization Options
From the indicator settings, you can modify:
• The HTF candle timeframe (default is 1D)
• Fibonacci levels and colors
• Enable or disable “Show Only the Latest Levels” — ideal for live trading to keep the chart clean and focused.
⸻
🟪 HTF Candles Preview
After applying the indicator, you’ll see 3 vertical bars on the right edge of your LTF chart. These represent a live preview of the last three HTF candles and update in real-time.
If you prefer a cleaner chart, disable this feature via the “Show HTF Candles” toggle in the settings.
⸻
Feel free to reach out if you have any questions.
PriceLevels GB🚨 NEW INDICATOR: GOLDBACH LEVELS
In a market ruled by speed, algorithms, and hidden logic...
Goldbach Levels reveals 5 numbers that aren’t random:
35 – 29 – 71 – 11 – 65
Selected for a reason.
These are Goldbach numbers, deeply tied to algorithmic market behavior.
This free indicator automatically marks key price levels where these numbers occur — levels that align with the extremes of trading algorithms.
What does this mean?
These are levels where price tends to hesitate, react, or reverse.
🛠️ Full customization included: highlight only the levels you care about, tailored to your strategy.
📌 Follow us on TradingView for more custom tools and next-level strategies!!!
OBOB_With_Time4 – Smart Order Blocks + Time-Based Labels + Auto-Cleanup + Liquidity Zones
This indicator combines:
Fractal-based Order Block detection
Dynamic and Static Liquidity Zones
Time-based label calculations (Sum, Difference, Minutes)
Auto-removal of broken Order Blocks (custom feature)
🔹 Key features:
Detects bullish and bearish OBs using 3-bar or 5-bar fractals
OBs are automatically deleted once broken, helping keep charts clean and focused – a major improvement over the original implementation
Optional FVG validation for higher OB quality
Includes time-based label logic for bar/session timing analysis
Customizable line styles, widths, label positions, and time offsets
Displays swing highs/lows and fractal points
🛠 Fully customizable:
Select which fractal type to use
Enable/disable time logic elements
Adjust OB/FVG filtering
Fine-tune liquidity sensitivity
📌 Credits:
Liquidity detection uses open-source logic from 's LiquidityFinderLibrary.
This version significantly extends the original logic by adding automated cleanup of broken order blocks, new visualization options, and integrated time analytics.
Developed and expanded by @Nephew_Sam_
🔓 This script is open-source and published for educational and strategic use on TradingView.
Dynamic RSIThis is dynamic RSI to check the strength of the India stocks and indices on multiple time frames
FVG Premium [no1x]█ OVERVIEW
This indicator provides a comprehensive toolkit for identifying, visualizing, and tracking Fair Value Gaps (FVGs) across three distinct timeframes (current chart, a user-defined Medium Timeframe - MTF, and a user-defined High Timeframe - HTF). It is designed to offer traders enhanced insight into FVG dynamics through detailed state monitoring (formation, partial fill, full mitigation, midline touch), extensive visual customization for FVG representation, and a rich alert system for timely notifications on FVG-related events.
█ CONCEPTS
This indicator is built upon the core concept of Fair Value Gaps (FVGs) and their significance in price action analysis, offering a multi-layered approach to their detection and interpretation across different timeframes.
Fair Value Gaps (FVGs)
A Fair Value Gap (FVG), also known as an imbalance, represents a range in price delivery where one side of the market (buying or selling) was more aggressive, leaving an inefficiency or an "imbalance" in the price action. This concept is prominently featured within Smart Money Concepts (SMC) and Inner Circle Trader (ICT) methodologies, where such gaps are often interpreted as footprints left by "smart money" due to rapid, forceful price movements. These methodologies suggest that price may later revisit these FVG zones to rebalance a prior inefficiency or to seek liquidity before continuing its path. These gaps are typically identified by a three-bar pattern:
Bullish FVG : This is a three-candle formation where the second candle shows a strong upward move. The FVG is the space created between the high of the first candle (bottom of FVG) and the low of the third candle (top of FVG). This indicates a strong upward impulsive move.
Bearish FVG : This is a three-candle formation where the second candle shows a strong downward move. The FVG is the space created between the low of the first candle (top of FVG) and the high of the third candle (bottom of FVG). This indicates a strong downward impulsive move.
FVGs are often watched by traders as potential areas where price might return to "rebalance" or find support/resistance.
Multi-Timeframe (MTF) Analysis
The indicator extends FVG detection beyond the current chart's timeframe (Low Timeframe - LTF) to two higher user-defined timeframes: Medium Timeframe (MTF) and High Timeframe (HTF). This allows traders to:
Identify FVGs that might be significant on a broader market structure.
Observe how FVGs from different timeframes align or interact.
Gain a more comprehensive perspective on potential support and resistance zones.
FVG State and Lifecycle Management
The indicator actively tracks the lifecycle of each detected FVG:
Formation : The initial identification of an FVG.
Partial Fill (Entry) : When price enters but does not completely pass through the FVG. The indicator updates the "current" top/bottom of the FVG to reflect the filled portion.
Midline (Equilibrium) Touch : When price touches the 50% level of the FVG.
Full Mitigation : When price completely trades through the FVG, effectively "filling" or "rebalancing" the gap. The indicator records the mitigation time.
This state tracking is crucial for understanding how price interacts with these zones.
FVG Classification (Large FVG)
FVGs can be optionally classified as "Large FVGs" (LV) if their size (top to bottom range) exceeds a user-defined multiple of the Average True Range (ATR) for that FVG's timeframe. This helps distinguish FVGs that are significantly larger relative to recent volatility.
Visual Customization and Information Delivery
A key concept is providing extensive control over how FVGs are displayed. This control is achieved through a centralized set of visual parameters within the indicator, allowing users to configure numerous aspects (colors, line styles, visibility of boxes, midlines, mitigation lines, labels, etc.) for each timeframe. Additionally, an on-chart information panel summarizes the nearest unmitigated bullish and bearish FVG levels for each active timeframe, providing a quick glance at key price points.
█ FEATURES
This indicator offers a rich set of features designed to provide a highly customizable and comprehensive Fair Value Gap (FVG) analysis experience. Users can tailor the FVG detection, visual representation, and alerting mechanisms across three distinct timeframes: the current chart (Low Timeframe - LTF), a user-defined Medium Timeframe (MTF), and a user-defined High Timeframe (HTF).
Multi-Timeframe FVG Detection and Display
The core strength of this indicator lies in its ability to identify and display FVGs from not only the current chart's timeframe (LTF) but also from two higher, user-selectable timeframes (MTF and HTF).
Timeframe Selection: Users can specify the exact MTF (e.g., "60", "240") and HTF (e.g., "D", "W") through dedicated inputs in the "MTF (Medium Timeframe)" and "HTF (High Timeframe)" settings groups. The visibility of FVGs from these higher timeframes can be toggled independently using the "Show MTF FVGs" and "Show HTF FVGs" checkboxes.
Consistent Detection Logic: The FVG detection logic, based on the classic three-bar imbalance pattern detailed in the 'Concepts' section, is applied consistently across all selected timeframes (LTF, MTF, HTF)
Timeframe-Specific Visuals: Each timeframe's FVGs (LTF, MTF, HTF) can be customized with unique colors for bullish/bearish states and their mitigated counterparts. This allows for easy visual differentiation of FVGs originating from different market perspectives.
Comprehensive FVG Visualization Options
The indicator provides extensive control over how FVGs are visually represented on the chart for each timeframe (LTF, MTF, HTF).
FVG Boxes:
Visibility: Main FVG boxes can be shown or hidden per timeframe using the "Show FVG Boxes" (for LTF), "Show Boxes" (for MTF/HTF) inputs.
Color Customization: Colors for bullish, bearish, active, and mitigated FVG boxes (including Large FVGs, if classified) are fully customizable for each timeframe.
Box Extension & Length: FVG boxes can either be extended to the right indefinitely ("Extend Boxes Right") or set to a fixed length in bars ("Short Box Length" or "Box Length" equivalent inputs).
Box Labels: Optional labels can display the FVG's timeframe and fill percentage on the box. These labels are configurable for all timeframes (LTF, MTF, and HTF). Please note: If FVGs are positioned very close to each other on the chart, their respective labels may overlap. This can potentially lead to visual clutter, and it is a known behavior in the current version of the indicator.
Box Borders: Visibility, width, style (solid, dashed, dotted), and color of FVG box borders are customizable per timeframe.
Midlines (Equilibrium/EQ):
Visibility: The 50% level (midline or EQ) of FVGs can be shown or hidden for each timeframe.
Style Customization: Width, style, and color of the midline are customizable per timeframe. The indicator tracks if this midline has been touched by price.
Mitigation Lines:
Visibility: Mitigation lines (representing the FVG's opening level that needs to be breached for full mitigation) can be shown or hidden for each timeframe. If shown, these lines are always extended to the right.
Style Customization: Width, style, and color of the mitigation line are customizable per timeframe.
Mitigation Line Labels: Optional price labels can be displayed on mitigation lines, with a customizable horizontal bar offset for positioning. For optimal label placement, the following horizontal bar offsets are recommended: 4 for LTF, 8 for MTF, and 12 for HTF.
Persistence After Mitigation: Users can choose to keep mitigation lines visible even after an FVG is fully mitigated, with a distinct color for such lines. Importantly, this option is only effective if the general setting 'Hide Fully Mitigated FVGs' is disabled, as otherwise, the entire FVG and its lines will be removed upon mitigation.
FVG State Management and Behavior
The indicator tracks and visually responds to changes in FVG states.
Hide Fully Mitigated FVGs: This option, typically found in the indicator's general settings, allows users to automatically remove all visual elements of an FVG from the chart once price has fully mitigated it. This helps maintain chart clarity by focusing on active FVGs.
Partial Fill Visualization: When price enters an FVG, the indicator offers a dynamic visual representation: the portion of the FVG that has been filled is shown as a "mitigated box" (typically with a distinct color), while the original FVG box shrinks to clearly highlight the remaining, unfilled portion. This two-part display provides an immediate visual cue about how much of the FVG's imbalance has been addressed and what potential remains within the gap.
Visual Filtering by ATR Proximity: To help users focus on the most relevant price action, FVGs can be dynamically hidden if they are located further from the current price than a user-defined multiple of the Average True Range (ATR). This behavior is controlled by the "Filter Band Width (ATR Multiple)" input; setting this to zero disables the filter entirely, ensuring all detected FVGs remain visible regardless of their proximity to price.
Alternative Usage Example: Mitigation Lines as Key Support/Resistance Levels
For traders preferring a minimalist chart focused on key Fair Value Gap (FVG) levels, the indicator's visualization settings can be customized to display only FVG mitigation lines. This approach leverages these lines as potential support and resistance zones, reflecting areas where price might revisit to address imbalances.
To configure this view:
Disable FVG Boxes: Turn off "Show FVG Boxes" (for LTF) or "Show Boxes" (for MTF/HTF) for the desired timeframes.
Hide Midlines: Disable the visibility of the 50% FVG Midlines (Equilibrium/EQ).
Ensure Mitigation Lines are Visible: Keep "Mitigation Lines" enabled.
Retain All Mitigation Lines:
Disable the "Hide Fully Mitigated FVGs" option in the general settings.
Enable the feature to "keep mitigation lines visible even after an FVG is fully mitigated". This ensures lines from all FVGs (active or fully mitigated) remain on the chart, which is only effective if "Hide Fully Mitigated FVGs" is disabled.
This setup offers:
A Decluttered Chart: Focuses solely on the FVG opening levels.
Precise S/R Zones: Treats mitigation lines as specific points for potential price reactions.
Historical Level Analysis: Includes lines from past, fully mitigated FVGs for a comprehensive view of significant price levels.
For enhanced usability with this focused view, consider these optional additions:
The on-chart Information Panel can be activated to display a quick summary of the nearest unmitigated FVG levels.
Mitigation Line Labels can also be activated for clear price level identification. A customizable horizontal bar offset is available for positioning these labels; for example, offsets of 4 for LTF, 8 for MTF, and 12 for HTF can be effective.
FVG Classification (Large FVG)
This feature allows for distinguishing FVGs based on their size relative to market volatility.
Enable Classification: Users can enable "Classify FVG (Large FVG)" to identify FVGs that are significantly larger than average.
ATR-Based Threshold: An FVG is classified as "Large" if its height (price range) is greater than or equal to the Average True Range (ATR) of its timeframe multiplied by a user-defined "Large FVG Threshold (ATR Multiple)". The ATR period for this calculation is also configurable.
Dedicated Colors: Large FVGs (both bullish/bearish and active/mitigated) can be assigned unique colors, making them easily distinguishable on the chart.
Panel Icon: Large FVGs are marked with a special icon in the Info Panel.
Information Panel
An on-chart panel provides a quick summary of the nearest unmitigated FVG levels.
Visibility and Position: The panel can be shown/hidden and positioned in any of the nine standard locations on the chart (e.g., Top Right, Middle Center).
Content: It displays the price levels of the nearest unmitigated bullish and bearish FVGs for LTF, MTF (if active), and HTF (if active). It also indicates if these nearest FVGs are Large FVGs (if classification is enabled) using a selectable icon.
Styling: Text size, border color, header background/text colors, default text color, and "N/A" cell background color are customizable.
Highlighting: Background and text colors for the cells displaying the overall nearest bullish and bearish FVG levels (across all active timeframes) can be customized to draw attention to the most proximate FVG.
Comprehensive Alert System
The indicator offers a granular alert system for various FVG-related events, configurable for each timeframe (LTF, MTF, HTF) independently. Users can enable alerts for:
New FVG Formation: Separate alerts for new bullish and new bearish FVG formations.
FVG Entry/Partial Fill: Separate alerts for price entering a bullish FVG or a bearish FVG.
FVG Full Mitigation: Separate alerts for full mitigation of bullish and bearish FVGs.
FVG Midline (EQ) Touch: Separate alerts for price touching the midline of a bullish or bearish FVG.
Alert messages are detailed, providing information such as the timeframe, FVG type (bull/bear, Large FVG), relevant price levels, and timestamps.
█ NOTES
This section provides additional information regarding the indicator's usage, performance considerations, and potential interactions with the TradingView platform. Understanding these points can help users optimize their experience and troubleshoot effectively.
Performance and Resource Management
Maximum FVGs to Track : The "Max FVGs to Track" input (defaulting to 25) limits the number of FVG objects processed for each category (e.g., LTF Bullish, MTF Bearish). Increasing this value significantly can impact performance due to more objects being iterated over and potentially drawn, especially when multiple timeframes are active.
Drawing Object Limits : To manage performance, this script sets its own internal limits on the number of drawing objects it displays. While it allows for up to approximately 500 lines (max_lines_count=500) and 500 labels (max_labels_count=500), the number of FVG boxes is deliberately restricted to a maximum of 150 (max_boxes_count=150). This specific limit for boxes is a key performance consideration: displaying too many boxes can significantly slow down the indicator, and a very high number is often not essential for analysis. Enabling all visual elements for many FVGs across all three timeframes can cause the indicator to reach these internal limits, especially the stricter box limit
Optimization Strategies : To help you manage performance, reduce visual clutter, and avoid exceeding drawing limits when using this indicator, I recommend the following strategies:
Maintain or Lower FVG Tracking Count: The "Max FVGs to Track" input defaults to 25. I find this value generally sufficient for effective analysis and balanced performance. You can keep this default or consider reducing it further if you experience performance issues or prefer a less dense FVG display.
Utilize Proximity Filtering: I suggest activating the "Filter Band Width (ATR Multiple)" option (found under "General Settings") to display only those FVGs closer to the current price. From my experience, a value of 5 for the ATR multiple often provides a good starting point for balanced performance, but you should feel free to adjust this based on market volatility and your specific trading needs.
Hide Fully Mitigated FVGs: I strongly recommend enabling the "Hide Fully Mitigated FVGs" option. This setting automatically removes all visual elements of an FVG from the chart once it has been fully mitigated by price. Doing so significantly reduces the number of active drawing objects, lessens computational load, and helps maintain chart clarity by focusing only on active, relevant FVGs.
Disable FVG Display for Unused Timeframes: If you are not actively monitoring certain higher timeframes (MTF or HTF) for FVG analysis, I advise disabling their display by unchecking "Show MTF FVGs" or "Show HTF FVGs" respectively. This can provide a significant performance boost.
Simplify Visual Elements: For active FVGs, consider hiding less critical visual elements if they are not essential for your specific analysis. This could include box labels, borders, or even entire FVG boxes if, for example, only the mitigation lines are of interest for a particular timeframe.
Settings Changes and Platform Limits : This indicator is comprehensive and involves numerous calculations and drawings. When multiple settings are changed rapidly in quick succession, it is possible, on occasion, for TradingView to issue a "Runtime error: modify_study_limit_exceeding" or similar. This can cause the indicator to temporarily stop updating or display errors.
Recommended Approach : When adjusting settings, it is advisable to wait a brief moment (a few seconds) after each significant change. This allows the indicator to reprocess and update on the chart before another change is made
Error Recovery : Should such a runtime error occur, making a minor, different adjustment in the settings (e.g., toggling a checkbox off and then on again) and waiting briefly will typically allow the indicator to recover and resume correct operation. This behavior is related to platform limitations when handling complex scripts with many inputs and drawing objects.
Multi-Timeframe (MTF/HTF) Data and Behavior
HTF FVG Confirmation is Essential: : For an FVG from a higher timeframe (MTF or HTF) to be identified and displayed on your current chart (LTF), the three-bar pattern forming the FVG on that higher timeframe must consist of fully closed bars. The indicator does not draw speculative FVGs based on incomplete/forming bars from higher timeframes.
Data Retrieval and LTF Processing: The indicator may use techniques like lookahead = barmerge.lookahead_on for timely data retrieval from higher timeframes. However, the actual detection of an FVG occurs after all its constituent bars on the HTF have closed.
Appearance Timing on LTF (1 LTF Candle Delay): As a natural consequence of this, an FVG that is confirmed on an HTF (i.e., its third bar closes) will typically become visible on your LTF chart one LTF bar after its confirmation on the HTF.
Example: Assume an FVG forms on a 30-minute chart at 15:30 (i.e., with the close of the 30-minute bar that covers the 15:00-15:30 period). If you are monitoring this FVG on a 15-minute chart, the indicator will detect this newly formed 30-minute FVG while processing the data for the 15-minute bar that starts at 15:30 and closes at 15:45. Therefore, the 30-minute FVG will become visible on your 15-minute chart at the earliest by 15:45 (i.e., with the close of that relevant 15-minute LTF candle). This means the HTF FVG is reflected on the LTF chart with a delay equivalent to one LTF candle.
FVG Detection and Display Logic
Fair Value Gaps (FVGs) on the current chart timeframe (LTF) are detected based on barstate.isconfirmed. This means the three-bar pattern must be complete with closed bars before an FVG is identified. This confirmation method prevents FVGs from being prematurely identified on the forming bar.
Alerts
Alert Setup : To receive alerts from this indicator, you must first ensure you have enabled the specific alert conditions you are interested in within the indicator's own settings (see 'Comprehensive Alert System' under the 'FEATURES' section). Once configured, open TradingView's 'Create Alert' dialog. In the 'Condition' tab, select this indicator's name, and crucially, choose the 'Any alert() function call' option from the dropdown list. This setup allows the indicator to trigger alerts based on the precise event conditions you have activated in its settings
Alert Frequency : Alerts are designed to trigger once per bar close (alert.freq_once_per_bar_close) for the specific event.
User Interface (UI) Tips
Settings Group Icons: In the indicator settings menu, timeframe-specific groups are marked with star icons for easier navigation: 🌟 for LTF (Current Chart Timeframe), 🌟🌟 for MTF (Medium Timeframe), and 🌟🌟🌟 for HTF (High Timeframe).
Dependent Inputs: Some input settings are dependent on others being enabled. These dependencies are visually indicated in the settings menu using symbols like "↳" (dependent setting on the next line), "⟷" (mutually exclusive inline options), or "➜" (directly dependent inline option).
Settings Layout Overview: The indicator settings are organized into logical groups for ease of use. Key global display controls – such as toggles for MTF FVGs, HTF FVGs (along with their respective timeframe selectors), and the Information Panel – are conveniently located at the very top within the '⚙️ General Settings' group. This placement allows for quick access to frequently adjusted settings. Other sections provide detailed customization options for each timeframe (LTF, MTF, HTF), specific FVG components, and alert configurations.
█ FOR Pine Script® CODERS
This section provides a high-level overview of the FVG Premium indicator's internal architecture, data flow, and the interaction between its various library components. It is intended for Pine Script™ programmers who wish to understand the indicator's design, potentially extend its functionality, or learn from its structure.
System Architecture and Modular Design
The indicator is architected moduarly, leveraging several custom libraries to separate concerns and enhance code organization and reusability. Each library has a distinct responsibility:
FvgTypes: Serves as the foundational data definition layer. It defines core User-Defined Types (UDTs) like fvgObject (for storing all attributes of an FVG) and drawSettings (for visual configurations), along with enumerations like tfType.
CommonUtils: Provides utility functions for common tasks like mapping user string inputs (e.g., "Dashed" for line style) to their corresponding Pine Script™ constants (e.g., line.style_dashed) and formatting timeframe strings for display.
FvgCalculations: Contains the core logic for FVG detection (both LTF and MTF/HTF via requestMultiTFBarData), FVG classification (Large FVGs based on ATR), and checking FVG interactions with price (mitigation, partial fill).
FvgObject: Implements an object-oriented approach by attaching methods to the fvgObject UDT. These methods manage the entire visual lifecycle of an FVG on the chart, including drawing, updating based on state changes (e.g., mitigation), and deleting drawing objects. It's responsible for applying the visual configurations defined in drawSettings.
FvgPanel: Manages the creation and dynamic updates of the on-chart information panel, which displays key FVG levels.
The main indicator script acts as the orchestrator, initializing these libraries, managing user inputs, processing data flow between libraries, and handling the main event loop (bar updates) for FVG state management and alerts.
Core Data Flow and FVG Lifecycle Management
The general data flow and FVG lifecycle can be summarized as follows:
Input Processing: User inputs from the "Settings" dialog are read by the main indicator script. Visual style inputs (colors, line styles, etc.) are consolidated into a types.drawSettings object (defined in FvgTypes). Other inputs (timeframes, filter settings, alert toggles) control the behavior of different modules. CommonUtils assists in mapping some string inputs to Pine constants.
FVG Detection:
For the current chart timeframe (LTF), FvgCalculations.detectFvg() identifies potential FVGs based on bar patterns.
For MTF/HTF, the main indicator script calls FvgCalculations.requestMultiTFBarData() to fetch necessary bar data from higher timeframes, then FvgCalculations.detectMultiTFFvg() identifies FVGs.
Newly detected FVGs are instantiated as types.fvgObject and stored in arrays within the main script. These objects also undergo classification (e.g., Large FVG) by FvgCalculations.
State Update & Interaction: On each bar, the main indicator script iterates through active FVG objects to manage their state based on price interaction:
Initially, the main script calls FvgCalculations.fvgInteractionCheck() to efficiently determine if the current bar's price might be interacting with a given FVG.
If a potential interaction is flagged, the main script then invokes methods directly on the fvgObject instance (e.g., updateMitigation(), updatePartialFill(), checkMidlineTouch(), which are part of FvgObject).
These fvgObject methods are responsible for the detailed condition checking and the actual modification of the FVG's state. For instance, the updateMitigation() and updatePartialFill() methods internally utilize specific helper functions from FvgCalculations (like checkMitigation() and checkPartialMitigation()) to confirm the precise nature of the interaction before updating the fvgObject’s state fields (such as isMitigated, currentTop, currentBottom, or isMidlineTouched).
Visual Rendering:
The FvgObject.updateDrawings() method is called for each fvgObject. This method is central to drawing management; it creates, updates, or deletes chart drawings (boxes, lines, labels) based on the FVG's current state, its prev_* (previous bar state) fields for optimization, and the visual settings passed via the drawSettings object.
Information Panel Update: The main indicator script determines the nearest FVG levels, populates a panelData object (defined in FvgPanelLib), and calls FvgPanel.updatePanel() to refresh the on-chart display.
Alert Generation: Based on the updated FVG states and user-enabled alert settings, the main indicator script constructs and triggers alerts using Pine Script's alert() function."
Key Design Considerations
UDT-Centric Design: The fvgObject UDT is pivotal, acting as a stateful container for all information related to a single FVG. Most operations revolve around creating, updating, or querying these objects.
State Management: To optimize drawing updates and manage FVG lifecycles, fvgObject instances store their previous bar's state (e.g., prevIsVisible, prevCurrentTop). The FvgObject.updateDrawings() method uses this to determine if a redraw is necessary, minimizing redundant drawing calls.
Settings Object: A drawSettings object is populated once (or when inputs change) and passed to drawing functions. This avoids repeatedly reading numerous input() values on every bar or within loops, improving performance.
Dynamic Arrays for FVG Storage: Arrays are used to store collections of fvgObject instances, allowing for dynamic management (adding new FVGs, iterating for updates).
EMA Trend Filter Alert + CooldownThis indicator uses two EMA lengths of your choosing.
1. There is an alert when price crosses the long EMA which I put in Flags at the top and bottom.
2. There is also an alert when price crosses the second faster EMA.
3. When price is above the slow EMA then only BUY signals will be shown as price crosses the fast EMA.
4. When price is below the fast EMA then only sell signals will be shown as price crosses below the fast EMA.
5. I included colour changing EMAs for both the fast and slow EMA.
6. The is also a "Cooldown" period between alerts so we do not see too many alerts at the same time. Set it to your own number of candles. On the 3m chart I have it set on 25.
7. This indicator is designed to be a trend following indicator. When the market is trending down then price will be under the slow EMA and then only sell signals will appear on the price cross of the fast EMA. During the turning points in the trend we might not see signals on the fast EMA so I added the alert for the cross of the slow EMA.
8. All the alerts have been combined into one alert. The buy and sell alerts and also the cross of the slow EMA.
9. I use this on the 3m chart with a 30m Williams %r and a 3H Williams %r. The 30 minute should be enough.
10. This indicator is not designed to catch the tops or bottoms of a trend. It is designed to catch the continuation moves. This indicator need a trending market. The trend is your friend.
11. Use at your own risk. Do your own due diligence before taking a trade and do not rely entirely on this indicator.
12. I have not tested this indicator for repainting.
13. Have fun with the indicator and leave a message and vote it up if you like it.