Average Daily LiquidityIt is important to have sufficient daily trading value (liquidity) to ensure you can easily enter and, importantly, exit the trade. This indicator allows you to see if the traded value of a stock is adequate. The default average is 10 periods and it is common to average the daily traded value as both price and volume can have spikes causing trading errors. Some investors use a 5 period for a week, 10 period for 2 weeks, 20 or 21 period for 4 weeks/month and 65 periods for a quarter. You need to ascertain your buying amount such as $10000 and then have the average daily trading value be your comfortable moving average more such as average liquidity is more than 10 x MA(close x volume) or $100000 in this example. The value is extremely important for small and micro cap stocks you may wish to purchase.
Indicators and strategies
Money Flow Index (mit Pivot-Divergenzen)SKb_
This indicator enhances the traditional Money Flow Index (MFI) by adding a pivot-based divergence detection system and visual background signals for overbought and oversold conditions.
✨ Key Features:
✅ Money Flow Index (MFI) Plot:
Plots the MFI value with customizable length (default 14).
✅ Overbought/Oversold Highlighting:
Automatically shades the background light green when MFI > 80 and light red when MFI < 20 for better visual alerts.
✅ Pivot-Based Divergence Detection:
Detects both bullish and bearish divergences between MFI and price using pivot highs and lows (configurable pivot strength).
– Bullish divergence: price makes a lower low, MFI makes a higher low
– Bearish divergence: price makes a higher high, MFI makes a lower high
✅ Divergence Signals Plotted on Chart:
Plots lime green triangles below bars for bullish divergence and red triangles above bars for bearish divergence.
✅ Customizable Pivot Sensitivity:
The pivotLen input allows you to adjust how significant a swing high/low must be to qualify as a pivot.
Usage:
This indicator helps traders spot potential trend reversals by combining momentum (MFI) with divergence signals based on pivot points.
It can be used standalone or as a confirmation tool alongside other technical indicators.
Recommended for swing traders, momentum traders, or anyone wanting to identify divergences with a reduced noise level compared to bar-by-bar divergence detection.
Aroon Buy & Sell with Customizable Candle Pattern FilterSure! Here's a description of how the script works without the code:
### Overview:
This trading strategy combines the **Aroon indicator** and **candlestick pattern recognition** to generate buy and sell signals. It allows for a more customizable approach by enabling you to filter signals based on the direction of a trend (identified by the Aroon indicator) and specific candlestick patterns that are often seen as indicators of potential reversals or continuation in the market.
### Key Components:
1. **Aroon Indicator**:
* **Aroon Up and Aroon Down** are calculated over a 14-period window. The Aroon Up shows how recently the highest high occurred, while Aroon Down shows how recently the lowest low occurred.
* A crossover between the Aroon Up and Aroon Down lines indicates a change in market trend. When the Aroon Up crosses above the Aroon Down, it's a signal of an uptrend, and when the Aroon Down crosses above the Aroon Up, it's a signal of a downtrend.
* The strategy uses **5-minute** Aroon data to track the overall trend and **1-minute** Aroon data to refine entry signals.
2. **Candlestick Pattern Filters**:
The script allows you to select and use various candlestick patterns to filter the signals:
* **Bullish Engulfing**: A pattern where a bullish candle completely engulfs the previous bearish candle.
* **Bearish Engulfing**: A pattern where a bearish candle completely engulfs the previous bullish candle.
* **Pin Bar**: A candlestick with a small body and a long tail, indicating potential reversal.
* **Doji**: A candlestick with a very small body, showing indecision in the market.
* You can toggle each of these patterns on or off based on your preference.
3. **Signal Generation**:
* **Buy Signal**: A buy signal is triggered when the market is in a bullish trend (as indicated by the Aroon Up crossing over the Aroon Down on the 5-minute chart), the Aroon Down on the 1-minute chart is at 100% (suggesting a low moment for entry), and a valid candlestick pattern (like Bullish Engulfing, Pin Bar, or Doji) occurs.
* **Sell Signal**: A sell signal is triggered when the market is in a bearish trend (as indicated by the Aroon Down crossing over the Aroon Up on the 5-minute chart), the Aroon Up on the 1-minute chart is at 100% (suggesting a potential reversal point), and a valid candlestick pattern (like Bearish Engulfing, Pin Bar, or Doji) occurs.
4. **Cooldown Period**:
* The strategy includes a **cooldown** mechanism to prevent multiple signals from being triggered in a very short period. This helps avoid false signals and ensures that only significant trends or pattern formations are considered for trades.
5. **Signal Plotting**:
* **Buy Signals** are displayed as green "BUY" labels below the price bars.
* **Sell Signals** are displayed as red "SELL" labels above the price bars.
6. **Alerts**:
* Alerts are set up to notify the user when a buy or sell signal is triggered. This can be useful for traders who prefer to be alerted when a valid setup is detected.
### Customization:
* The user can customize which candlestick patterns they want to use in the strategy by turning them on or off.
* The user can also adjust the Aroon settings and other parameters, allowing for flexibility in adapting the strategy to different market conditions and personal preferences.
### Summary:
This strategy blends trend-following (via Aroon) with reversal/continuation signals from candlestick patterns, providing traders with a way to fine-tune their entries and exits based on both trend strength and price action patterns. It aims to reduce noise and filter out weak signals by combining these elements.
DMI Percentile MTF📈 DMI Percentile MTF – Custom Technical Indicator
This indicator is an enhanced version of the classic Directional Movement Index (DMI), converting +DI, -DI, and ADX values into dynamic percentiles ranging from 0% to 100%, making it easier to interpret the strength and direction of a trend.
⚙️ Key Features:
Percentile Normalization: Calculates where current values stand within a historical range (default: 100 bars), providing clearer overbought/oversold context.
+DI (green): Indicates bullish directional strength.
-DI (orange): Indicates bearish directional strength.
ADX (fuchsia): Measures overall trend strength (rising = strong trend, falling = flat market).
20% / 80% reference lines: Help identify weak or strong conditions.
Multi-Timeframe (MTF) Support: Analyze a higher timeframe trend (e.g., daily) while viewing a lower timeframe chart (e.g., 1h).
📊 How to Read It:
+DI > -DI → bullish trend dominance.
-DI > +DI → bearish trend dominance.
ADX rising → strengthening trend (regardless of direction).
ADX falling → sideways or consolidating market.
Values above 80% → historically high / strong conditions.
Values below 20% → historically low / weak conditions or potential breakout setup.
Liquidity DeltaThis indicator estimates market pressure by calculating the difference between bid and ask volume based on candle structure and volume without access to an order book.
Methodology
Normalized delta by volume for consistency across assets, smoothed for reduced noise
The threshold channel highlights potential imbalances
Settings
Normalization Length: window size for averaging volume and delta
Smoothing Length: noise reduction for the normalized data
MA types for averaging delta, its normalization and final smoothing
Reintegration OPR zone 9h30📝 Indicator Description (for TradingView):
Name: Reintegration OPR Zone – 9:30 AM EST (UTC-4)
Purpose:
This indicator is designed for US indices like NAS100, US30, or SPX500. It helps identify potential false breakouts or retests by tracking when the price re-enters the Opening Price Range (OPR) after an initial breakout.
🔍 How it works:
At 9:30 AM New York time (UTC-4), the script captures the high and low of the first 15-minute candle (which is key for the US session open).
It then draws a horizontal box (rectangle) from the high to the low of that candle.
The box extends horizontally for 7 hours (28 candles on a 15-minute chart).
The script tracks if price:
Breaks above or below the OPR zone
Then re-enters the zone (a potential "fakeout" or "retest" signal)
No label or text is displayed on the chart (you requested it to be hidden).
🕒 Timeframe:
Designed for the 15-minute chart (M15)
Assumes New York session open at 9:30 AM EST (UTC-4)
RedAndBlue M2 Global Liquidity Index (Lag in Days)This indicator shows M2 with a lag in days.
This lag feature is used to analyze the correlation with BTC, as it is currently believed that BTC follows the M2 chart with a lag of several weeks.
Credit to @Mik3Christ3ns3n for original M2 indicator (without lag in days feature)
Multi-Timeframe Converging Signal AlertThis is not financial advice, nor meant to influence anyone's trading strategies.
Please use at your discretion and if you decide to give this indicator a shot, please leave some feedback if there could be changes made to the intervals or if there any other necessary changes to make.
Signal fires only when ALL of the following align across timeframes:
🔹 Long-Term (Daily or Weekly)
PMO crosses above its signal line and SMA-50
MACD bullish crossover
RSI crosses above 50 from below
Price closes above SMA-50 and Bollinger Mid-Band
🔹 Mid-Term (4H/1H)
EWO positive and climbing
MACD histogram turning up
Volume spike (relative to 20-period avg)
VWAP reclaimed after drop
🔹 Short-Term (15/30m)
Price breaks out of Bollinger Band squeeze
RSI > 60 and climbing
MACD > Signal line
Price closes above VWAP & SMA-50
The code is designed for steady, multi-indicator-confirmed trend reversals, not extreme or rapid parabolic moves like short squeezes. This is why the sell indicator has fallen short on the squeeze of 2021 and 2024 with GME because there is no parabolic overextension trigger and certain indicators lag behind and miss out on the data in that type of movement.
I hope this is helpful in determining solid entries and provides an understanding of the data to analyze when looking to accumulate or unload some shares for profit, but as always provide feedback if there are any concerns or feedback.
Morning & EOD ReportThis is not financial advice, nor meant to influence anyone's trading strategies.
Please use at your discretion and if you decide to give this indicator a shot, please leave some feedback if there could be changes made to the intervals or if there any other necessary changes to make
As you can see, this indicator provides a detailed morning report on all timeframes. Also, when you switch to the 15 minute time interval you are able to see an EOD report as well. These both print after collecting enough data based on key indicators within a designated time frame.
The reports will provide short-term data showing whether the stock price is above or below VWAP, as well as if the MACD and RSI are trending upwards or downwards. This is the code that builds the model and signal:
= ta.macd(close, 12, 26, 9)
rsiST = ta.rsi(close, 14)
vwapST = ta.vwap
priceAboveVWAP = close > vwapST
macdBullish = macdST > signalST
rsiBullish = rsiST > 50
The long-term uses a mid/daily time frame and analyzes key indicators like MACD, RSI, PMO, SMA on a 50 day moving average, and if price is above or below VWAP. These indicators allow the model to display BUY Signal Active, SELL Signal Active, or Neutral. Along with this, it also tracks price change percentage and can indicate whether volume is normal or if there has been a spike detected. The code that makes all this possible is listed below:
= request.security(syminfo.tickerid, "D", ta.macd(close, 12, 26, 9))
rsiD = request.security(syminfo.tickerid, "D", ta.rsi(close, 14))
pmo = request.security(syminfo.tickerid, "D", ta.ema(ta.roc(close, 1), 35))
pmoSMA = request.security(syminfo.tickerid, "D", ta.sma(ta.ema(ta.roc(close, 1), 35), 10))
priceAboveSMA50 = close > ta.sma(close, 50)
buySignalD = macdD > signalD and rsiD > 50 and pmo > pmoSMA and priceAboveSMA50
sellSignalD = macdD < signalD and rsiD < 50 and pmo < pmoSMA and not priceAboveSMA50
// --- % CHANGE FROM OPEN ---
sessionOpen = request.security(syminfo.tickerid, "D", open)
pctChange = ((close - sessionOpen) / sessionOpen) * 100
// --- Volume Spike Detection ---
avgVol = ta.sma(volume, 20)
volSpike = volume > avgVol * 1.5
Color Coded Volume IndicatorColor Coded Volume Indicator
Overview
Splits each bar’s total volume into estimated buy-side vs. sell-side components and displays them as stacked two-tone columns (red = sell, green = buy). Axis labels and tooltips use “K”/“M” formatting.
Features
Stacked Two-Tone Columns
Red Base : estimated sell volume (50% opacity)
Green Top : remaining buy volume (50% opacity)
Automatic K/M Formatting via format=format.volume
Zero Baseline for clean reference at zero
Positive-Only Bars (no negatives)
How It Works
True-Range Guard
Skips bars where high == low to avoid divide-by-zero.
Volume Split
BuyVol = Volume × (Close − Low) / (High − Low)
SellVol = Volume × (High − Close) / (High − Low)
Both series clamped ≥ 0.
Layered Plot
Draw semi-transparent green at full height, then overlay red sell portion.
Usage
Open TradingView’s Pine Editor
Paste in the full script
Click “Save & Add to Chart”
In the Publish dialog, title it “Color Coded Volume Indicator” and paste this description.
Interpretation
Green-dominant bars → strong buying pressure
Red-dominant bars → strong selling pressure
Equal halves → balanced activity
SMA 50/200 Crossover with Candle Coloring
Indicator Features:
Customizable Moving Averages: You can change the lengths of the 50- and 200-SMA in the settings.
Candle Color: The candle at which the crossover occurs is colored (green for a bullish crossover, red for a bearish crossover).
Crossover Markers: Small arrows appear at the crossover points.
Colored Background: The background changes color when a crossover occurs.
Alerts: You can set alerts when crossovers occur.
ORB 15 min w/ PDHL + bands = $$$This indicator was created for the 15 min Opening Range Breakout Strategy. The goal was to incorporate Previous Day High and Low levels (PDHL).
For visual ease, the bands can be filled in and you can easily fill in an overlay color when the ORB intersects the PDHL.
Alerta Caída Brusca + Confirmación de VolumenTechnical Components of the Indicator
EMA 9 vs EMA 21
Detects momentum shifts via exponential moving average crossovers.
When EMA 9 crosses below EMA 21, it is interpreted as a bearish signal.
Bollinger Band Compression
Identifies periods of low volatility (tight bands).
A breakout following this compression typically precedes sharp and fast price moves.
Ichimoku Cloud (Kumo Breakout)
If the price closes below the Kumo (Ichimoku cloud), it indicates structural bearish pressure.
This confirms the loss of key technical support.
RSI (Relative Strength Index)
A reading below 45 signals price weakness and low buying pressure.
🛑 Conditions to Trigger a Sell Signal
A sell signal is generated when all of the following conditions occur simultaneously:
Bollinger Bands show compression (low volatility).
EMA 9 crosses below EMA 21 (bearish crossover).
Price breaks below the Ichimoku cloud (Kumo).
RSI is below 45, confirming weak buying momentum.
When these conditions are met, a "SELL" label is visually projected on the corresponding candle.
📈 Usage Recommendations
Recommended timeframes: 5 minutes, 15 minutes, or 1 hour.
Useful for anticipating drops, avoiding late entries, and detecting technical breakdowns.
Can be combined with volume, candlestick patterns, or liquidity zones for higher accuracy.
Market Manipulation Index (MMI)The Composite Manipulation Index (CMI) is a structural integrity tool that quantifies how chaotic or orderly current market conditions are, with the aim of detecting potentially manipulated or unstable environments. It blends two distinct mathematical models that assess price behavior in terms of both structural rhythm and predictability.
1. Sine-Fit Deviation Model:
This component assumes that ideal, low-manipulation price behavior resembles a smooth oscillation, such as a sine wave. It generates a synthetic sine wave using a user-defined period and compares it to actual price movement over an adaptive window. The error between the real price and this synthetic wave—normalized by price variance—forms the Sine-Based Manipulation Index. A high error indicates deviation from natural rhythm, suggesting structural disorder.
2. Predictability-Based Model:
The second component estimates how well current price can be predicted using recent price lags. A two-variable rolling linear regression is computed between the current price and two lagged inputs (close and close ). If the predicted price diverges from the actual price, this error—also normalized by price variance—reflects unpredictability. High prediction error implies a more manipulated or erratic environment.
3. Adaptive Mechanism:
Both components are calculated using an adaptive smoothing window based on the Average True Range (ATR). This allows the indicator to respond proportionally to market volatility. During high volatility, the analysis window expands to avoid over-sensitivity; during calm periods, it contracts for better responsiveness.
4. Composite Output:
The two normalized metrics are averaged to form the final CMI value, which is then optionally smoothed further. The output is scaled between 0 and 1:
0 indicates a highly structured, orderly market.
1 indicates complete structural breakdown or randomness.
Suggested Interpretation:
CMI < 0.3: Market is clean and structured. Trend-following or breakout strategies may perform better.
CMI > 0.7: Market is structurally unstable. Choppy price action, fakeouts, or manipulative behavior may dominate.
CMI 0.3–0.7: Transitional zone. Caution or reduced risk may be warranted.
This indicator is designed to serve as a contextual filter, helping traders assess whether current market conditions are conducive to structured strategies, or if discretion and defense are more appropriate.
INTELLECT_city - Bitcoin Genesis Block DayBitcoin Genesis Block Day is celebrated on January 3 each year, commemorating the creation of the first block in the Bitcoin blockchain, known as the genesis block, by Satoshi Nakamoto on January 3, 2009. This block, block 0, marked the official launch of the Bitcoin network, embedding a message in its coinbase transaction: "The Times 03/Jan/2009 Chancellor on brink of second bailout for banks," referencing a headline from The Times newspaper. This message highlighted Bitcoin’s purpose as a decentralized alternative to centralized financial systems amid the 2008 financial crisis.
The genesis block is unique because it’s hardcoded into the Bitcoin protocol and cannot be spent, containing 50 BTC that remain unspendable. It established the foundation for Bitcoin’s blockchain, with subsequent blocks building upon it through cryptographic hashing. The day symbolizes the birth of cryptocurrency and is celebrated by the crypto community as a milestone in financial and technological innovation.
TTM Squeeze Overlay (Wave A/B/C Visible)This indicator shows three different cycle wave energy ( long, short and now )
Float LabelFloat label
Float label is simply a label that will display the float (number of shares that are publicly available for trading on the open market) for the ticker currently open in the chart.
Very handy for trading smaller cap names.
Currently working on a complete low float label to replace this.
VAPI with MA (no ta.sum)## 📘 Indicator: **VAPI with MA (no ta.sum)**
This custom indicator is a version of the **Volume Adjusted Price Indicator (VAPI)** combined with a selectable **moving average (MA)**. It manually computes the volume-weighted price momentum over a period and smooths it with a chosen type of moving average. The purpose is to assess directional volume pressure and potential trend shifts.
---
### 🔧 Inputs:
* **VAPI Length (`length`)**: Number of bars used for calculating the VAPI.
* **MA Length (`maLength`)**: Number of bars for smoothing VAPI with a moving average.
* **MA Type (`maType`)**: Type of moving average to apply (options: SMA, EMA, WMA, RMA, HMA, VWMA).
---
### 📈 Calculation Logic:
1. **x = (2 × close − high − low) / (high − low)**
Measures where the closing price lies within the candle range:
* Close at high → x = 1
* Close at low → x = -1
* Close in the middle → x = 0
A small constant (0.0001) is used to avoid division by zero.
2. **volX = volume × x**
This adjusts volume based on the candle's directional momentum.
3. **Manual summation over `length` bars** (instead of using `ta.sum`):
* `tva` accumulates the volume-adjusted values (`volX`)
* `tv` accumulates the total volume
4. **VAPI = 100 × (tva / tv)**
Gives a percentage-style oscillator:
* Positive values → bullish pressure
* Negative values → bearish pressure
5. **MA = Moving Average of VAPI**
Type of MA is user-defined (SMA, EMA, WMA, RMA, HMA, or VWMA).
---
### 📊 Plots:
* **VAPI Line** — Gray line (shows raw volume-adjusted price impulse).
* **MA Line** — Orange line (smoothed VAPI).
* **Zero Line** — Dashed horizontal reference at 0:
* Crossovers may suggest trend direction changes.
---
### 💡 Use Cases:
* **Volume momentum analysis**: Shows if volume supports current price action.
* **Divergence spotting**: Compare VAPI behavior against price movements.
* **Trend filtering**: The MA smooths out noise for clearer signals.
* **Entry/exit signals**: Use crossovers of VAPI/MA or zero line as potential triggers.
Missing Candle AnalyzerMissing Candle Analyzer: Purpose and Importance
Overview The Missing Candle Analyzer is a Pine Script tool developed to detect and analyze gaps in candlestick data, specifically for cryptocurrency trading. In cryptocurrency markets, it is not uncommon to observe missing candles—time periods where no price data is recorded. These gaps can occur due to low liquidity, exchange downtime, or data feed issues.
Purpose The primary purpose of this tool is to identify missing candles in a given timeframe and provide detailed statistics about these gaps. Missing candles can introduce significant errors in trading strategies, particularly those relying on continuous price data for technical analysis, backtesting, or automated trading. By detecting and quantifying these gaps, traders can: Assess the reliability of the price data. Adjust their strategies to account for incomplete data. Avoid potential miscalculations in indicators or trade signals that assume continuous candlestick data.
Why It Matters In cryptocurrency trading, where volatility is high and trading decisions are often made in real-time, missing candles can lead to: Inaccurate Technical Indicators : Indicators like moving averages, RSI, or MACD may produce misleading signals if candles are missing. Faulty Backtesting : Historical data with gaps can skew backtest results, leading to over-optimistic or unreliable strategy performance. Execution Errors : Automated trading systems may misinterpret gaps, resulting in unintended trades or missed opportunities.
By using the Missing Candle Analyzer, traders gain visibility into the integrity of their data, enabling them to make informed decisions and refine their strategies to handle such anomalies.
Functionality
The script performs the following tasks: Gap Detection : Identifies time gaps between candles that exceed the expected timeframe duration (with a configurable multiplier for tolerance). Statistics Calculation : Tracks total candles, missing candles, missing percentage, and the largest gap duration. Visualization : Displays a table with analysis results and optional markers on the chart to highlight gaps. User Customization : Allows users to adjust font size, table position, and whether to show gap markers.
Conclusion The Missing Candle Analyzer is a critical tool for cryptocurrency traders who need to ensure the accuracy and completeness of their price data. By highlighting missing candles and providing actionable insights, it helps traders mitigate risks and build more robust trading strategies. This tool is especially valuable in the volatile and often unpredictable cryptocurrency market, where data integrity can directly impact trading outcomes.
EMA Trend Bias (200 & 50)🔥 How It Works
📌 Green 200 EMA = Price above (Long-term Bullish trend)
📌 Red 200 EMA = Price below (Long-term Bearish trend)
📌 Blue 50 EMA = Price above (Short-term Bullish bias)
📌 Orange 50 EMA = Price below (Short-term Bearish bias)
This script helps confirm both short-term & long-term trend direction, making it easier to identify strong setups! 🚀
Would you like me to add alerts when price crosses either EMA for automated trade notifications?
Let me know if you need any refinements!