Lagged M2 Money SupplyDescription:
This indicator plots the U.S. M2 Money Supply (FRED:M2SL) with an optional time lag applied, enabling macroeconomic correlation analysis with lagging assets such as Bitcoin (BTC) or equities.
Source: Federal Reserve Economic Data (FRED)
Update Frequency: Weekly (as per FRED:M2SL data)
Lag Control: Default lag is 12 weeks; this can be modified in the script
Visualization:
Original M2 plotted in gray
Lagged M2 plotted in orange
Use Case: Identify delayed correlations between monetary expansion and asset performance (e.g., BTC price reactions to liquidity growth)
Note: As the M2 dataset is macroeconomic and updates infrequently, this indicator is best used on weekly timeframes or higher.
Indicatori e strategie
EMA x4📌 Indicator: EMA x4
Author:
Script Type: Overlay (draws on price chart)
Language: Pine Script™ v6
License: Mozilla Public License 2.0
📖 Overview
EMA x4 is a minimalist technical indicator designed to display four customizable Exponential Moving Averages (EMAs) directly on the chart. It offers a clear view of short-, medium-, long-, and extra-long-term trends to support trend-following and momentum-based trading strategies.
This tool is ideal for traders who rely on moving average crossovers, dynamic support/resistance, or need to confirm market bias with multiple time-frame alignment.
⚙️ Input Parameters
Users can modify each EMA's length to match their strategy preferences:
Short EMA: Fastest EMA for short-term by default its value is 35
Middle EMA: Medium-term EMA by default its value is 75
Large EMA: Long-term EMA by default its value is 100
XL - EMA: Extra-long-term trend filter by default its value is 200
📊 Visual Representation
The script plots each EMA using distinct colors and consistent line thickness:
EMA1: Color Blue Short-term EMA (35)
EMA2: Color Orange Mid-term EMA (75)
EMA3: Color Green Long-term EMA (100)
EMA4: Color Red Extra-long-term EMA (200)
All lines are rendered with a linewidth of 2 for enhanced visibility on any chart.
🧠 Typical Use Cases
Trend Identification: Watch for the EMAs stacking in order (e.g., EMA1 above EMA2, etc.) to confirm bullish or bearish trends.
Crossover Signals: Look for EMA crossovers to generate entry/exit signals.
Support & Resistance: EMAs often act as dynamic zones of support/resistance during trending markets.
Multi-timeframe Confirmation: Combine this overlay with higher timeframe charts to confirm trend alignment.
✅ Key Benefits
Fully customizable EMA lengths for all trading styles.
Clean design, ideal for visually-driven traders.
Lightweight code – no lag or performance impact.
Can be used in confluence with other indicators or strategies.
🚀 How to Use
Add the indicator to any TradingView chart.
Configure the EMA lengths based on your preference (swing, day trading, long-term).
Analyze price interactions with the EMAs and look for confluences or crossovers.
Open = High or LowThis indicator highlights potential intraday reversal points by detecting when a candle's opening price is equal to its high or low.
SpreadsThis indicator plots a line representing the spread difference between the nearby and following contract. Particularly helpful for measuring real supply and demand factors in the commodity markets.
Professional A/DThis indicator measures professional accumulation & distribution in the marketplace by plotting a cumulative line of price/volatility metrics and volume.
Hybrid Fibo+MA Strategy (Looser Buy)This script implements a hybrid trend-following and swing-reversal indicator for stocks and other assets across any timeframe. It combines classic Fibonacci retracement and extension zones, adaptive moving averages, and LazyBear's Squeeze Momentum (SQZMOM) to help identify high-probability Buy and Sell signals.
Key Features:
Multi-Timeframe Adaptability: Works on 30m, 4h, daily, weekly, and monthly charts with dynamic trend reference levels.
Flexible Sensitivity: The Swing Lookback length lets you adjust for more or fewer signals depending on your trading style.
Looser Buy, Stricter Sell: Buy signals are designed to trigger on swing lows with rising momentum, while sell signals require multiple bearish confirmations and trend alignment, helping to avoid false exits from minor pullbacks.
Fibonacci Zones: Highlights potential support/resistance areas with automatic Fib plotting.
No Repainting: All calculations are based strictly on bar-close data; no future leaks or lookahead bias.
How to Use:
Add the indicator to any chart. Adjust the sensitivity and enable/disable moving average and Fib levels as desired for your strategy or timeframe. Use signals as directional trade ideas, in combination with your own risk management.
Supply/Demand Zones (Synthetic SMA Candles)Supply/Demand Zones (Synthetic SMA Candles)
Created by The_Forex_Steward
This indicator highlights institutional-style supply and demand zones using synthetic SMA-based candles rather than raw price data. It provides a smoother, more refined view of price action to help identify key imbalance areas where price is likely to react.
Features:
- Uses SMA-smoothed synthetic candles to detect bullish and bearish engulfing structures
- Draws demand zones after bullish breakouts and supply zones after bearish breakouts
- Zones are persistent for a customizable number of bars
- Mitigated zones can optionally be removed from the chart
- Includes alerts for breakout and mitigation events
- Optional plotting of synthetic candles over price for visual clarity
How It Works:
When a synthetic candle closes above the high of a previous bearish candle, a bullish engulfing is detected, and a demand zone is created from that bearish candle’s high and low. Conversely, when price closes below the low of a previous bullish candle, a supply zone is formed. These zones stay on the chart for the user-defined duration or until they are mitigated by price, at which point they can be removed automatically.
How to Use:
- Adjust the SMA Length to control how smooth the synthetic candles appear
- Enable or disable Show Supply Zones and Show Demand Zones as needed
- Set the Zone Duration to control how long each zone persists
- Use Delete Mitigated Zones to automatically remove zones when price returns to them
- Optionally enable Show Synthetic SMA Candles to see the candle logic used in detection
- Use the built-in alerts to stay notified of new zone creation or mitigation
Note: This tool is most effective when combined with structure or trend-based strategies for confirmation.
TAO Sweep + Full Bottom DetectionTao liquidity sweep detector. Uses analysis of btc dominance PA and eth/btc PA as confluences. Uses volume moving average to catch sweeps of the lows.
First EMA 9 & 21 Breakout SignalThis will give indiacation on the bars that close below and above 9 and 21
SMA3/SMA10 Trend & Momentum Dashboard + Advanced MA🧭 Indicator Name
Multi-Timeframe Momentum & MA Dashboard
📖 Overview
This indicator provides a clean, intuitive dashboard that consolidates Momentum signals and Moving Average alignment across multiple timeframes. Designed for traders who want to quickly scan for confluences and optimize their entry and exit decisions, this tool eliminates the need to manually switch between charts.
⚙️ What It Does
📊 Displays Dashboard Panel with key information:
Moving Average alignment
📈 Analyzes multiple timeframes (5m, 15m, 30m, 1h, 4h)
🎯 Highlights confluence zones where momentum and MA align for stronger signals
🛎️ Helps identify potential entries and exits based on:
Momentum shifts
MA crossovers
Trend confirmations
🧠 Why Use This Indicator
Quickly assess market conditions across multiple timeframes
Spot high-probability trade setups based on combined signals
Reduce screen time and avoid over-analysis
Ideal for swing traders, scalpers, and trend-followers
RedAndBlue Indicator LightsRedAndBlue Indicator Lights — RSI, MFI, and Bollinger Band Sentiment Table
This indicator provides a multi-timeframe sentiment dashboard using RSI , MFI , and Bollinger Bands , visualized in a compact color-coded table.
What it does:
Evaluates RSI and MFI values across multiple timeframes: 5m, 15m, 30m, 1h, 2h, 4h, and 1D
Analyzes Bollinger Bands in two ways:
BB = compares candle body position relative to Bollinger Bands
BBw = checks whether candle wicks pierce above or below the bands
Each cell displays the indicator value or a symbolic label (↓↓, ↓, –, ↑, ↑↑)
Color-coded backgrounds reflect overbought/oversold zones
All thresholds and colors are fully customizable in the input settings
Color meanings:
Green : Strong oversold (value < low1)
Light blue : Slightly oversold (value < low2)
White : Neutral zone (between low2 and high2)
Yellow : Slightly overbought (value > high2)
Red : Strong overbought (value > high1)
BB and BBw label meanings:
↓↓ = Price (or wick) pierced below the lower Bollinger Band
↓ = Candle body is between lower band and midline
– = Candle body crosses the midline (neutral)
↑ = Candle body is between midline and upper band
↑↑ = Price (or wick) pierced above the upper Bollinger Band
How to use it effectively:
If RSI, MFI, BB, and BBw all show oversold signals (green or light blue) across multiple timeframes, especially on 1h, 4h, or 1D, it may signal a good buying opportunity
If the indicators all show overbought signals (red or yellow), it may indicate a potential exit or short zone
BBw shows wick-based signals and can act as an early warning; BB confirms with the candle body
Use this table to spot sentiment confluence across timeframes before entering a trade
If most cells are white, the market is likely in a sideways or neutral state
This indicator helps you quickly identify multi-timeframe sentiment shifts and potential reversal points through a clean, structured visual layout.
MACD with Colored HistogramA script specifying the difference between convergence and divergence indicated with an icon.
Supertrend Indicator with AlertsSupertrend updated with Heikin Ashi
This indicator is a modified version of the traditional Supertrend, recalculated using Heikin Ashi candles for smoother trend detection. It includes built-in alert functions and is optimized for use on Heikin Ashi charts.
自带提醒,适用于平均K线图
Unified Sentiment Candles Overlay (SMA)Unified Sentiment Candles (SMA) Indicator
The Unified Sentiment Candles (SMA) is a custom overlay indicator designed to provide a smoothed visualization of market sentiment by plotting synthetic candles based on the Simple Moving Average (SMA) of open, high, low, and close prices. It helps traders identify trend direction and potential reversals more clearly.
How to Use:
- Observe Candle Colors: Green candles indicate bullish sentiment (close ≥ open), while red candles suggest bearish sentiment (close < open).
- Trend Identification: Consistent green candles point to an uptrend, whereas consistent red candles may signal a downtrend.
- Support & Resistance Zones: The SMA-based candles smooth out short-term volatility, assisting in spotting key support and resistance levels.
- Entry & Exit Signals: Look for color changes or candle pattern formations within the synthetic candles to time entries and exits more effectively.
Settings:
SMA Length : Adjust this parameter to control the smoothing period. A shorter length makes the indicator more responsive, while a longer length smooths out more noise.
This indicator is best used in conjunction with other technical analysis tools to confirm signals and improve trading accuracy.
This script is open-source and licensed under the Mozilla Public License 2.0. Use and modify it at your own discretion.
Smart Flow Pro v3 – Pattern Learning Engine
smart flow pro
### 📄 **Script Description (for TradingView):**
> **Smart Flow Pro v3** is an advanced confluence-based trading strategy built for futures, crypto, and forex markets.
>
> It combines key elements of smart money concepts, trend analysis, momentum, volume, and price action patterns. The script only triggers entries when multiple high-probability conditions align — using a dynamic scoring system to filter for the best trades.
>
> **Included Features:**
>
> * EMA 50/200 trend filter
> * RSI momentum confirmation
> * Fair Value Gap (FVG) detection
> * VWAP zone logic
> * Volume spike detection
> * Candlestick patterns (engulfing, hammers, morning/evening stars)
> * Chart pattern simulation (double tops & bottoms)
> * ATR-based Stop Loss & Take Profit
> * Adjustable scoring threshold to filter signals
> * All features customizable in script settings
> Designed for 1H, 4H, and Daily charts, this strategy is optimized for traders looking for high-quality signals with controlled risk.
>
> **Best used with:** BTC, ETH, and major altcoins on high-volume futures platforms (e.g., MEXC, Binance).
>
> Feel free to experiment with thresholds, timeframes, and SL/TP multipliers based on your trading style.
>
> ⚠️ *Backtest thoroughly and manage risk appropriately. Not financial advice.*
---
Bearish/ bullish Reversal PatternsThis indicator is a simple, no-frills tool I put together to flag three candlestick patterns that Bulkowski’s research tagged with some of the best historical reversal stats: the Three Black Crows and Evening Star (both classic bearish-reversal signals after an up-move) and the slightly oddball Bearish Three-Line Strike, which often flips into a bullish reversal after three red candles. On your chart you’ll see a colored label and a faint background tint wherever one of these patterns forms, and you can turn on built-in alerts if you’d rather be pinged than stare at the screen. It’s not magic past “win rates” don’t guarantee anything, and you’ll want to mix this with your own trend filter, risk management, and maybe a higher-time-frame check before trading real money. Treat it as a learning aid, paper-test it first, and please remember that nothing here is financial advice. Enjoy, tweak the colors if you like, and let me know what you think.
Follow Line IndicatorThe Bhanq Line is a trend-following tool that uses Bollinger Bands and optional ATR filtering to plot a dynamic trendline. It identifies trend reversals and displays emoji signals: 🎯 for buy (bullish reversal) and 🍞 for sell (bearish reversal). The trendline changes color—🔵 blue for uptrends and 🟡 yellow for downtrends—offering clear visual cues for traders.
BhanqrollThis indicator contains the ability to use 4 moving averages that are on there by default. Your 7 and 11 ema is your quick cloud giving you your entry based on the up and down arrows everytime the cloud moves. The 150 and 250 is to act as support and has a arrow print when the cloud is flipped. Alignment is important in identifying upward and downward trends, when both the quick cloud and slow cloud are in alignment then you may take an entry
DR SessionsDR/IDR concept sessions with multiple ways to view the session to best suit your needs.
Each session, ADR, ODR, RDR can be turned on/off, and displayed 3 different ways. Lines, will highlight each DR and IDR line, and will color the side that breaks out. Zones, will fill in the gap between the DR and the IDR lines and will color the breakout side. Finally range will fill the entire range from DR to DR with a single color that will change to the breakout color once price closes outside of the range.
Greer Free Cash Flow Yield✅ Title
Greer Free Cash Flow Yield (FCF%) — Long-Term Value Signal
📝 Description
The Greer Free Cash Flow Yield indicator is part of the Greer Financial Toolkit, designed to help long-term investors identify fundamentally strong and potentially undervalued companies.
📊 What It Does
Calculates Free Cash Flow Per Share (FY) from official financial reports
Divides by the current stock price to produce Free Cash Flow Yield %
Tracks a static average across all available financial years
Color-codes the yield line:
🟩 Green when above average (stronger value signal)
🟥 Red when below average (weaker value signal)
💼 Why It Matters
FCF Yield is a powerful metric that reveals how efficiently a company turns revenue into usable cash. This can be a better long-term value indicator than earnings yield or P/E ratios, especially in capital-intensive industries.
✅ Best used in combination with:
📘 Greer Value (fundamental growth score)
🟢 Greer BuyZone (technical buy zone detection)
🔍 Designed for:
Fundamental investors
Value screeners
Dividend and FCF-focused strategies
📌 This tool is for informational and educational use only. Always do your own research before investing.
Distribution & Accumulation Days# Distribution & Accumulation Days Indicator
## Overview
This powerful institutional activity tracker identifies **Distribution Days** (selling pressure) and **Accumulation Days** (buying pressure) based on the proven methodology used by Investor's Business Daily (IBD). Perfect for detecting when "smart money" institutions are actively buying or selling, helping you align your trades with institutional flow.
## What It Does
- **Distribution Days**: Identifies days when price drops significantly on higher volume (institutional selling)
- **Accumulation Days**: Identifies days when price rises significantly on higher volume (institutional buying)
- **Real-time Counting**: Tracks the number of each type over your specified lookback period
- **Net Analysis**: Shows whether buying or selling pressure is dominant
## Key Features
### 🎯 **Customizable Threshold**
- Set your own price change percentage (default 0.2%) to filter out minor moves
- Focus only on significant institutional activity
### 📊 **Moving Average Filter**
- Optional MA filter to eliminate noise during strong downtrends
- Choose from SMA, WMA, or EMA
- Only counts signals when price is above the moving average
### 📈 **Visual Markers**
- **Red 'D'** markers above bars = Distribution (selling pressure)
- **Green 'A'** markers below bars = Accumulation (buying pressure)
- Numbers show current count within your lookback period
### 📋 **Information Dashboard**
Real-time table displays:
- Total Distribution Days in period
- Total Accumulation Days in period
- Net difference (positive = more buying, negative = more selling)
## How to Use
### Market Analysis
- **4-5 Distribution Days** in 25 sessions = Potential market weakness
- **Multiple Accumulation Days** after decline = Potential bottom formation
- **Net positive** = Institutional buying dominance
- **Net negative** = Institutional selling dominance
### Trade Setup
- Look for accumulation clusters near support levels for long entries
- Watch for distribution clusters near resistance for potential short setups
- Use in conjunction with your existing technical analysis
## Settings
| Parameter | Description | Default |
|-----------|-------------|---------|
| Days Back | Lookback period for counting | 25 |
| Price Change Threshold | Minimum % move required | 0.2% |
| Moving Average Filter | Enable/disable MA filter | Off |
| MA Type | SMA, WMA, or EMA | EMA |
| MA Length | Moving average period | 50 |
## Best Practices
- Use on **daily timeframe only** (automatically restricts to daily)
- Works best on major indices (SPY, QQQ, IWM) and liquid stocks
- Combine with support/resistance levels for better entries
- Monitor both individual counts and net difference for complete picture
## Important Notes
- Based on proven IBD methodology used by professional traders
- Requires significant volume confirmation - price moves without volume are ignored
- Most effective when used as part of a complete trading system
- Works only on daily charts (designed for institutional timeframe analysis)
---
*This indicator helps you see the market through institutional eyes. When the big players are buying or selling, you'll know.*
**Tags**: Distribution, Accumulation, IBD, Institutional, Volume Analysis, Smart Money, Market Structure
📊 Cumulative Portfolio TrackerHi all, first time poster here
I just figured I'd share a script that I wrote for portfolio buy and hold backtesting purposes.
Basically what it does is compares the performance of a group of stocks combined as a portfolio vs a benchmark. In this case I have a portfolio of 20 companies vs SPY set as the default but it's pretty easy to change them in the code. Also it starts in January 2022 because one of my chosen companies only started trading at that date. Again, easy to change.
Alright, so how do we interpret the data?
The script tracks the two values to be compared with a base value of 100 and then that number rises and falls from there showing their relative performance. The orange will be the user defined portfolio and the blue will be the benchmark.
Some caveats - the user defined portfolio will start exactly when the newest ticker began trading unless specified to start past that date. This means for example if you compare SPY to SPYI, SPY will be showing years of compounding compared to SPYI's performance.
I'm a pretty novice coder for Pinecode as I usually use Python for my projects but anyway.
Potential future features -
- Swapping the baseline 100 for a % gain or $ gain from the starting point(giving the option to choose which one). This one would probably be pretty easy to do. To be honest this code isn't exactly complex. I really do not know Pinescript that well.
- Adding in returns from dividends. I don't know if this one is possible. Will need to look into it.
- The ability to overlay indicators on both the portfolio and the benchmark. This might already be possible with this code, I haven't tried because I just finished managing to get it to compile and I'm frankly tired.
-Custom weighting.
As of now it's all equal weight.
Questions I assume you will be asking -
- "Can we display the user profile as candlesticks instead of a line?"
I really don't think so. I have to assume it's hardcoded. My first idea was to just have a blank chart with no ticker and then do some fiddling to use the user profile's combined high/low/open/close display on the chart but couldn't figure that one out.
-Doesn't Portfoliovisualizer already do this but better?
It sure does. However the features I include here are going to be more flexible compared to their free version if you can't be bothered to pay for it(number of tickers, length of time, etc.).
-The benchmark line doesn't perfectly match the ticker I have on screen!
You're right it doesn't. I've turned off candles in my screenshot for that exact purpose. This goes back to what I mentioned about how you have to carefully pick the timespan that you're going to be looking at. At least I think that's what causes it. Further research needed. For now it was just easier to use a couple of lines only.
- *other scripter* already did this idea but better!
It's not exactly that complex of an idea so I wouldn't doubt it but I didn't look. I wanted to make a tool that would both be useful to me and also help me get better with Pinescript. That's pretty much the whole thing.
-How many tickers can I add?
Not a clue. 100? 1000? That would be tedious to test. 20 seemed like a good baseline.
Anyway, if anyone has feedback on what to add or anything I'm all ears. This is just the stuff that came to me over the last few hours while I was working my way through the documentation. If you find this useful, awesome! If not, no hard feelings. Still new!
Thanks folks,
Steve