Smart Money Flow Oscillator [MarkitTick]💡This script introduces a sophisticated method for analyzing market liquidity and institutional order flow. Unlike traditional volume indicators that treat all market activity equally, the Smart Money Flow Oscillator (SMFO) employs a Logic Flow Architecture (LFA) to filter out market noise and "churn," focusing exclusively on high-impact, high-efficiency price movements. By synthesizing price action, volume, and relative efficiency, this tool aims to visualize the accumulation and distribution activities that are often attributed to "smart money" participants.
✨ Originality and Utility
Standard indicators like On-Balance Volume (OBV) or Money Flow Index (MFI) often suffer from noise because they aggregate volume based simply on the close price relative to the previous close, regardless of the quality of the move. This script differentiates itself by introducing an "Efficiency Multiplier" and a "Momentum Threshold." It only registers volume flow when a price move is considered statistically significant and structurally efficient. This creates a cleaner signal that highlights genuine supply and demand imbalances while ignoring indecisive trading ranges. It combines the trend-following nature of cumulative delta with the mean-reverting insights of an In/Out ratio, offering a dual-mode perspective on market dynamics.
🔬 Methodology
The underlying calculation of the SMFO relies on several distinct quantitative layers:
• Efficiency Analysis
The script calculates a "Relative Efficiency" ratio for every candle. This compares the current price displacement (body size) per unit of volume against the historical average.
If price moves significantly with relatively low volume, or proportional volume, it is deemed "efficient."
If significant volume occurs with little price movement (churn/absorption), the efficiency score drops.
This score is clamped between a user-defined minimum and maximum (Efficiency Cap) to prevent outliers from distorting the data.
• Momentum Thresholding
Before adding any data to the flow, the script checks if the current price change exceeds a volatility threshold derived from the previous candle's open-close range. This acts as a gatekeeper, ensuring that only "strong" moves contribute to the oscillator.
• Variable Flow Calculation
If a move passes the threshold, the script calculates the flow value by multiplying the Typical Price and Volume (Money Flow) by the calculated Efficiency Multiplier.
Bullish Flow: Strong upward movement adds to the positive delta.
Bearish Flow: Strong downward movement adds to the negative delta.
Neutral: Bars that fail the momentum threshold contribute zero flow, effectively flattening the line during consolidation.
• Calculation Modes
Cumulative Delta Flow (CDF): Sums the flow values over a rolling period. This creates a trend-following oscillator similar to OBV but smoother and more responsive to real momentum.
In/Out Ratio: Calculates the percentage of bullish inflow relative to the total absolute flow over the period. This oscillates between 0 and 100, useful for identifying overextended conditions.
📖 How to Use
Traders can utilize this oscillator to identify trend strength and potential reversals through the following signals:
• Signal Line Crossovers
The indicator plots the main Flow line (colored gradient) and a Signal line (grey).
Bullish (Green Cloud): When the Flow line crosses above the Signal line, it suggests rising buying pressure and efficient upward movement.
Bearish (Red Cloud): When the Flow line crosses below the Signal line, it suggests dominating selling pressure.
• Divergences
The script automatically detects and plots divergences between price and the oscillator:
Regular Divergence (Solid Lines): Suggests a potential trend reversal (e.g., Price makes a Lower Low while Oscillator makes a Higher Low).
Hidden Divergence (Dashed Lines): Suggests a potential trend continuation (e.g., Price makes a Higher Low while Oscillator makes a Lower Low).
"R" labels denote Regular, and "H" labels denote Hidden divergences.
• Dashboard
A dashboard table is displayed on the chart, providing real-time metrics including the current Efficiency Multiplier, Net Flow value, and the active mode status.
• In/Out Ratio Levels
When using the Ratio mode:
Values above 50 indicate net buying pressure.
Values below 50 indicate net selling pressure.
Approaching 70 or 30 can indicate overbought or oversold conditions involving volume exhaustion.
⚙️ Inputs and Settings
Calculation Mode: Choose between "Cumulative Delta Flow" (Trend focus) or "In/Out Ratio" (Oscillator focus).
Auto-Adjust Period: If enabled, automatically sets the lookback period based on the chart timeframe (e.g., 21 for Daily, 52 for Weekly).
Manual Period: The rolling lookback length for calculations if Auto-Adjust is disabled.
Efficiency Length: The period used to calculate the average body and volume for the efficiency baseline.
Eff. Min/Max Cap: Limits the impact of the efficiency multiplier to prevent extreme skewing during anomaly candles.
Momentum Threshold: A factor determining how much price must move relative to the previous candle to be considered a "strong" move.
Show Dashboard/Divergences: Toggles for visual elements.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
This indicator represents a hybrid synthesis of academic Market Microstructure theory and classical technical analysis. It utilizes an advanced algorithm to quantify "Price Impact," leveraging the following theoretical frameworks:
• 1. The Amihud Illiquidity Ratio (2002)
The core logic (calculating body / volume) functions as a dynamic implementation of Yakov Amihud’s Illiquidity Ratio. It measures price displacement per unit of volume. A high efficiency score indicates that "Smart Money" has moved the price significantly with minimal resistance, effectively highlighting liquidity gaps or institutional control.
• 2. Kyle’s Lambda (1985) & Market Depth
Drawing from Albert Kyle’s research on market microstructure, the indicator approximates Kyle's Lambda to measure the elasticity of price in response to order flow. By analyzing the "efficiency" of a move, it identifies asymmetries—specifically where price reacts disproportionately to low volume—signaling potential manipulation or specific Market Maker activity.
• 3. Wyckoff’s Law of Effort vs. Result
From a classical perspective, the algorithm codifies Richard Wyckoff’s "Effort vs. Result" logic. It acts as an oscillator that detects anomalies where "Effort" (Volume) diverges from the "Result" (Price Range), predicting potential reversals.
• 4. Quantitative Advantage: Efficiency-Weighted Volume
Unlike linear indicators such as OBV or Chaikin Money Flow—which treat all volume equally—this indicator (LFA) utilizes Efficiency-Weighted Volume. By applying the efficiency_mult factor, the algorithm filters out market noise and assigns higher weight to volume that drives structural price changes, adopting a modern quantitative approach to flow analysis.
● Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. I expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion.
Orderflowtrading
Aggregated Open InterestAggregates Open Interest data across 10 major crypto exchanges: Binance, Bybit, Kraken, MEXC, Bitget, BingX, Coinbase, Deribit, HTX, and Crypto.com.
Displays total market OI with candlesticks on intraday timeframes and a step line on daily+ timeframes. Color-coded: teal for increasing OI, red for decreasing OI.
Toggle individual exchanges on/off in settings to customize your view.
With this indicator there is no need to be on the perpetual chart of the asset for the open interest to be displayed.
Cluster Reversal Zones📌 Cluster Reversal Zones – Smart Market Turning Point Detector
📌 Category : Public (Restricted/Closed-Source) Indicator
📌 Designed for : Traders looking for high-accuracy reversal zones based on price clustering & liquidity shifts.
🔍 Overview
The Cluster Reversal Zones Indicator is an advanced market reversal detection tool that helps traders identify key turning points using a combination of price clustering, order flow analysis, and liquidity tracking. Instead of relying on static support and resistance levels, this tool dynamically adjusts to live market conditions, ensuring traders get the most accurate reversal signals possible.
📊 Core Features:
✅ Real-Time Reversal Zone Mapping – Detects high-probability market turning points using price clustering & order flow imbalance.
✅ Liquidity-Based Support/Resistance Detection – Identifies strong rejection zones based on real-time liquidity shifts.
✅ Order Flow Sensitivity for Smart Filtering – Filters out weak reversals by detecting real market participation behind price movements.
✅ Momentum Divergence for Confirmation – Aligns reversal zones with momentum divergences to increase accuracy.
✅ Adaptive Risk Management System – Adjusts risk parameters dynamically based on volatility and trend state.
🔒 Justification for Mashup
The Cluster Reversal Zones Indicator contains custom-built methodologies that extend beyond traditional support/resistance indicators:
✔ Smart Price Clustering Algorithm: Instead of plotting fixed support/resistance lines, this system analyzes historical price clustering to detect active reversal areas.
✔ Order Flow Delta & Liquidity Shift Sensitivity: The tool tracks real-time order flow data, identifying price zones with the highest accumulation or distribution levels.
✔ Momentum-Based Reversal Validation: Unlike traditional indicators, this tool requires a momentum shift confirmation before validating a potential reversal.
✔ Adaptive Reversal Filtering Mechanism: Uses a combination of historical confluence detection + live market validation to improve accuracy.
🛠️ How to Use:
• Works well for reversal traders, scalpers, and swing traders seeking precise turning points.
• Best combined with VWAP, Market Profile, and Delta Volume indicators for confirmation.
• Suitable for Forex, Indices, Commodities, Crypto, and Stock markets.
🚨 Important Note:
For educational & analytical purposes only.
Activity and Volume Orderflow Profile [AlgoAlpha]🔍 Activity and Volume Orderflow Profile 📊
🚀 Unlock the power of market order flow analysis with the Activity and Volume Orderflow Profile indicator by AlgoAlpha . This versatile tool helps you visualize and understand the dynamics of buying and selling pressure within a specified lookback period. Perfect for traders who want to dig deeper into volume-based market insights!
Key Features:
📊 Profile Type Options : Choose between "Comparison" and "Net Order Flow" to analyze market activity based on your preferred method.
🔎 Adjustable Lookback Period : Customize the lookback period to fit your trading strategy.
🎨 Flexible Appearance Settings : Toggle the display of the profile, lookback period visualization, and heatmap to suit your preferences.
🖍 Color Customization : Set your preferred colors for up and down volumes.
🕹 High Activity Highlight : Use the minimum transparency setting to highlight areas of significant activity.
Quick Guide to Using the Activity and Volume Orderflow Profile
🛠 Add the Indicator: Add the indicator to your favorites. Customize settings like profile type, lookback period, and resolution to fit your trading style.
📊 Market Analysis: Use the profile to identify areas of high buying or selling pressure. In "Comparison" mode, look for significant volume differences; in "Net Order Flow" mode, focus on net volume changes. Additionally, you can use the activity heatmap to find key levels that can act as support and resistance as price is likely to react to the zones as indicated by the heatmap.
How it Works:
The indicator operates by first gathering data on high and low prices, as well as buy and sell volumes, over a user-defined lookback period. It then calculates the maximum and minimum prices during this period and divides this range into bins based on the chosen resolution. For each bin, it computes the total volume of buy and sell orders. In "Comparison" mode, it displays side-by-side boxes representing buy and sell volumes, while in "Net Order Flow" mode, it shows the net volume difference. The indicator visually presents these profiles on the chart with customizable colors, transparency levels, and the option to display a heatmap for enhanced volume activity insights.
Maximize your trading with the Activity and Volume Orderflow Profile from AlgoAlpha! 🚀✨
OrderFlow Absorption IndicatorWhat it Does
The OrderFlow Absorption Indicator marks areas where the price absorbs a large volume of aggressive market trades. This indicates areas where price may bounce back due to large limit (resting) orders absorbing significant aggressor volume (market orders). Absorption can also be seen as "preventing" or "stopping" the other side from breaking through a price level (e.g. bids stopping an influx of sell market orders). Absorption may signal a change in sentiment, potentially leading to a pullback or reversal.
An Example of Absorption
Of course, it is not always the case that such bullish absorption will initiate a trend as the example above. The OrderFlow Absorption Indicator merely serves as a tool for spotting possible absorption points in the market which you can incorporate into your trading arsenal.
How it Works
The indicator actively monitors price changes and records volume accumulated at a price level. If the price bounces back to at least where it was before the current price move, the indicator records this as absorption, provided it meets the Volume Requirement and optional Time Requirement.
How to Use it
1. Set Parameters
Choose your desired tick size and volume filter value. If unsure, refer to the table on the top right of the chart for recommended values. An automatic volume limit filter mode is also available.
Automatic Limit Mode : Enable this mode to have the indicator automatically select a volume filter value. It calculates the standard deviation of the last n minutes of volume and multiplies it by a volume multiplier. You can adjust these parameters.
Higher Volume Filter : Setting a higher volume filter value results in fewer, but higher quality detections, reducing noise.
2. Enabling the Time Limit
Enabling the time limit further improves detection quality by filtering out price levels that can defend against quick, sudden aggressive orders, acting as confirmation and indicating strong sentiment and resilient liquidity.
3. Enabling Historical Data Absorption
The indicator can also detect absorption in historical data, though less accurately than in real-time due to OHLCV aggregation.
You can select the granularity of historical data.
Lower granularity (e.g., 1 second) : Provides more accurate detections but may slow down the indicator.
Higher granularity : Improves speed but reduces detection accuracy.
Other Features
Hovering : When hovering over an absorption point, the interface reveals the price where the absorption occurred, along with the volume absorbed by the bids and asks, as well as the volume filter value used.
Delta Mode : In Delta mode, the system calculates the difference between the volume absorbed by bids and asks, revealing points only when the absolute value of this difference exceeds the volume filter value. Especially useful for larger tick sizes.
Troubleshooting
If the indicator doesn't mark anything, it means the traded volume hasn't exceeded the set volume filter value within the specified price intervals(tick size) and time limit. Adjust these settings as necessary.
Standardized Orderflow [AlgoAlpha]Introducing the Standardized Orderflow indicator by AlgoAlpha. This innovative tool is designed to enhance your trading strategy by providing a detailed analysis of order flow and velocity. Perfect for traders who seek a deeper insight into market dynamics, it's packed with features that cater to various trading styles. 🚀📊
Key Features:
📈 Order Flow Analysis: At its core, the indicator analyzes order flow, distinguishing between bullish and bearish volume within a specified period. It uses a unique standard deviation calculation for normalization, offering a clear view of market sentiment.
🔄 Smoothing Options: Users can opt for a smoothed representation of order flow, using a Hull Moving Average (HMA) for a more refined analysis.
🌪️ Velocity Tracking: The indicator tracks the velocity of order flow changes, providing insights into the market's momentum.
🎨 Customizable Display: Tailor the display mode to focus on either order flow, order velocity, or both, depending on your analysis needs.
🔔 Alerts for Critical Events: Set up alerts for crucial market events like crossover/crossunder of the zero line and overbought/oversold conditions.
How to Use:
1. Setup: Easily configure the indicator to match your trading strategy with customizable input parameters such as order flow period, smoothing length, and moving average types.
2. Interpretation: Watch for bullish and bearish columns in the order flow chart, utilize the Heiken Ashi RSI candle calculation, and look our for reversal notations for additional market insights.
3. Alerts: Stay informed with real-time alerts for key market events.
Code Explanation:
- Order Flow Calculation:
The core of the indicator is the calculation of order flow, which is the sum of volumes for bullish or bearish price movements. This is followed by normalization using standard deviation.
orderFlow = math.sum(close > close ? volume : (close < close ? -volume : 0), orderFlowWindow)
orderFlow := useSmoothing ? ta.hma(orderFlow, smoothingLength) : orderFlow
stdDev = ta.stdev(orderFlow, 45) * 1
normalizedOrderFlow = orderFlow/(stdDev + stdDev)
- Velocity Calculation:
The velocity of order flow changes is calculated using moving averages, providing a dynamic view of market momentum.
velocityDiff = ma((normalizedOrderFlow - ma(normalizedOrderFlow, velocitySignalLength, maTypeInput)) * 10, velocityCalcLength, maTypeInput)
- Display Options:
Users can choose their preferred display mode, focusing on either order flow, order velocity, or both.
orderFlowDisplayCond = displayMode != "Order Velocity" ? display.all : display.none
wideDisplayCond = displayMode != "Order Flow" ? display.all : display.none
- Reversal Indicators and Divergences:
The indicator also includes plots for potential bullish and bearish reversals, as well as regular and hidden divergences, adding depth to your market analysis.
bullishReversalCond = reversalType == "Order Flow" ? ta.crossover(normalizedOrderFlow, -1.5) : (reversalType == "Order Velocity" ? ta.crossover(velocityDiff, -4) : (ta.crossover(velocityDiff, -4) or ta.crossover(normalizedOrderFlow, -1.5)) )
bearishReversalCond = reversalType == "Order Flow" ? ta.crossunder(normalizedOrderFlow, 1.5) : (reversalType == "Order Velocity" ? ta.crossunder(velocityDiff, 4) : (ta.crossunder(velocityDiff, 4) or ta.crossunder(normalizedOrderFlow, 1.5)) )
In summary, the Standardized Orderflow indicator by AlgoAlpha is a versatile tool for traders aiming to enhance their market analysis. Whether you're focused on short-term momentum or long-term trends, this indicator provides valuable insights into market dynamics. 🌟📉📈
Volume Anomaly DetectorThis indicator is designed to detect volume anomalies such as block orders, large institutional orders, and sweep orders. It works by comparing the current volume to the moving average of volume and identifying deviations that exceed a specified threshold. By detecting anomalous volume, it can help traders identify potential market-moving events and anticipate changes in price direction.
One key difference between this indicator and others is its focus on volume anomalies rather than just overall volume or price movements. This can provide traders with additional insights into market conditions and help them identify trading opportunities that may not be visible using other indicators.
In terms of timeframe and market conditions, this indicator can be used on any timeframe and in any market where volume data is available. However, it may be particularly useful in markets with high liquidity and significant institutional participation, such as equities and futures markets. It may also be most effective during periods of heightened volatility or when significant news or events are expected to impact the market. As with any trading indicator, it's important to use it in conjunction with other tools and analysis to confirm signals and make informed trading decisions.






