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.
Indicators and strategies
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.
📊 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
Bollinger Bands Highlight [Custom TF]
Highlights the blocks where the chart is outside upper or lower Bollinger Band.
Customizable timeframe.
ADX Trend Visualizer with Dual ThresholdsADX Trend Visualizer with Dual Thresholds
A minimal, color coded ADX indicator designed to filter market conditions into weak, moderate, or strong trend phases.
Uses a dual threshold system for separating weak, moderate, and strong trend conditions.
Color coded ADX line:
Green– Strong trend (above upper threshold)
Yellow – Moderate trend (between thresholds)
Red – Weak or no trend (below lower threshold)
Two horizontal reference lines plotted at threshold levels
Optional +DI and -DI lines (Style tab)
Recommended Use:
Use on higher time frames (1h and above) as a trend filter
Combine with entry/exit signals from other indicators or strategies
Avoid possible false entries when ADX is below the weak threshold
This trend validator helps highlight strong directional moves and avoid weak market conditions
Volume + Price Reversal SignalTesting so not sure if it works, using volume and candlesticks to determine reversals
Average volume yearlyI noticed that there is no Average Volume for 7 days, 180 days, and 365 days, which is sometimes badly needed.
I have decided to add the Average volume for the week, 180 days, and a year.
SPX MACD + EMA Crossover Option AlertsFeatures Included:
MACD Golden Cross (bullish) and Death Cross (bearish) detection
EMA Crossovers as confirmation (you can set fast & slow EMAs)
Optimal trading time filters (e.g., 10:00–11:30 AM, 2:00–3:30 PM ET)
Alerts for CALLs (bullish) and PUTs (bearish) only within trade hours
Visual signals on the chart for easier trading
5DMA Optional HMA Entry📈 5DMA Optional HMA Entry Signal – Precision-Based Momentum Trigger
Category: Trend-Following / Reversal Timing / Entry Optimization
🔍 Overview:
The 5DMA Optional HMA Entry indicator is a refined price-action entry tool built for traders who rely on clean trend alignment and precise timing. This script identifies breakout-style entry points when price gains upward momentum relative to short-term moving averages — specifically the 5-day Simple Moving Average (5DMA) and an optional Hull Moving Average (HMA).
Whether you're swing trading stocks, scalping ETFs like UVXY or VXX, or looking for pullback recovery entries, this tool helps time your long entries with clarity and flexibility.
⚙️ Core Logic:
Primary Condition (Always On):
🔹 Close must be above the 5DMA – ensuring upward short-term momentum is confirmed.
Optional Condition (Toggled by User):
🔹 Close above the HMA – adds slope-responsive trend filtering for smoother setups. Enable or disable via checkbox.
Bonus Entry Filter (Optional):
🔹 Green Candle Wick Breakout – optional pattern logic that detects bullish momentum when the high pierces above both MAs, with a green body.
Reset Mechanism:
🔁 Signal resets only after price closes back below all active MAs (5DMA and HMA if enabled), reducing noise and avoiding repeated signals during chop.
🧠 Why This Works:
This indicator captures the kind of setups that professional traders look for:
Momentum crossovers without chasing late.
Mean reversion snapbacks that align with fresh bullish moves.
Avoids premature entries by requiring clear structure above moving averages.
Optional HMA filter allows adaptability: turn it off during choppy markets or range conditions, and on during trending environments.
🔔 Features:
✅ Adjustable HMA Length
✅ Enable/Disable HMA Filter
✅ Optional Green Wick Breakout Detection
✅ Visual “Buy” label plotted below qualifying bars
✅ Real-time Alert Conditions for automated trading or manual alerts
🎯 Use Cases:
VIX-based ETFs (e.g., UVXY, VXX): Catch early breakouts aligned with volatility spikes.
Growth Stocks: Time pullback entries during bullish runs.
Futures/Indices: Combine with macro levels for intraday scalps or swing setups.
Overlay on Trend Filters: Combine with RSI, MACD, or VWAP for confirmation.
🛠️ Recommended Settings:
For smooth setups in volatile names, use:
HMA Length: 20
Keep green wick filter ON
For fast momentum trades, disable the HMA filter to act on 5DMA alone.
⭐ Final Thoughts:
This script is built to serve both systematic traders and discretionary scalpers who want actionable signals without noise or lag. The toggleable HMA feature lets you adjust sensitivity depending on market conditions — a key edge in adapting to volatility cycles.
Perfect for those who value clean, non-repainting entries rooted in logical structure.
CoffeeShopCrypto Supertrend Liquidity EngineMost SuperTrend indicators use fixed ATR multipliers that ignore context—forcing traders to constantly tweak settings that rarely adapt well across timeframes or assets.
This Supertrend is a nodd to and a more completion of the work
done by Olivier Seban ( @olivierseban )
This version replaces guesswork with an adaptive factor based on prior session volatility, dynamically adjusting stops to match current conditions. It also introduces liquidity-aware zones, real-time strength histograms, and a visual control panel—making your stoploss smarter, more responsive, and aligned with how the market actually moves.
📏 The Multiplier Problem & Adaptive Factor Solution
Traditional SuperTrend indicators rely on fixed ATR multipliers—often arbitrary numbers like 1.5, 2, or 3. The issue? No logical basis ties these values to actual market conditions. What works on a 5-minute Nasdaq chart fails on a daily EUR/USD chart. Traders spend hours tweaking multipliers per asset, timeframe, or volatility phase—and still end up with stoplosses that are either too tight or too loose. Worse, the market doesn’t care about your setting—it behaves according to underlying volatility, not your parameter.
This version fixes that by automating the multiplier selection entirely. It uses a 4-zone model based on the current ATR relative to the previous session’s ATR, dynamically adjusting the SuperTrend factor to match current volatility. It eliminates guesswork, adapts to the asset and timeframe, and ensures you’re always using a context-aware stoploss—one that evolves with the market instead of fighting it.
ATR EXAMPLE
Let’s say prior session ATR = 2.00
Now suppose current ATR = 0.32
This places us in Zone 1 (Very Low Volatility)
It doesn’t imply "overbought" or "oversold" — it tells you the market is moving very little, which often means:
Lower risk | Smaller stops | Smaller opportunities (and losses)
🔁 Liquidity Zones vs. Arbitrary Pullbacks
The standard SuperTrend stop loss line often looks like price “barely misses it” before continuing its trend. Traders call this "stop hunting," but what’s really happening is liquidity collection—price pulls back into a zone rich in orders before continuing. The problem? The old SuperTrend doesn’t show this zone. It only draws the outer limit, leaving no visual cue for where entries or continuation moves might realistically originate.
This script introduces 2 levels in the Liquidity Zone. One for Support and one for Stophunts, which draw dynamically between the current price and the SuperTrend line. These levels reflect where the market is most likely to revisit before resuming the trend. By visualizing the area just above the Supertrend stop loss, you can anticipate pullbacks, spot ideal re-entries, and avoid premature exits. This bridges the gap between mechanical stoploss logic and real-world liquidity behavior.
⏳ Prior Session ATR vs. Live ATR
Using real-time ATR to determine movement potential is like driving by looking in your rearview mirror. It’s reactive, not predictive. Traders often base decisions on live ATR, unaware that today’s range is still unfolding —creating volatility mismatches between what’s calculated and what actually matters. Since ATR reflects range, calculating it mid-session gives an incomplete and misleading picture of true volatility.
Instead, this system uses the ATR from the previous session , anchoring your volatility assumptions in a fully-formed price structure . It tells you how far price moved in the last full market phase—be it London, New York, or Tokyo—giving you a more reliable gauge of expected range today. This is a smarter way to estimate how far price could move rather than how far it has moved.
The Smoothing function will take the ATR, Support, Resistance, Stophunt Levels, and the Moving Avearage and smooth them by the calculation you choose.
It will also plot a moving average on your chart against closing prices by the smoothing function you choose.
🧭 Scalping vs. Trending Modes
The market moves in at least 4 phases. Trending, Ranging, Consolidation, Distribution.
Every trader has a different style —some scalp low-volatility moves during off-hours, while others ride macro trends across days. The problem with classic SuperTrend? It treats every market condition the same. A fixed system can’t possibly provide proper stoploss spacing for both a fast scalp and a long-term swing. Traders are forced to rebuild their system every time the market changes character or the session shifts.
This version solves that with a simple toggle:
Scalping or Trend Mode . With one switch, it inverts the logic of the adaptive factor to either tighten or loosen your trailing stops. During low-liquidity hours or consolidation phases, Scalping Mode offers snug stoplosses. During expansion or clear directional bias.
Trend Mode lets the trade breathe. This is flexibility built directly into the logic—not something you have to recalibrate manually.
📉 Histogram Oscillator for Move Strength
In legacy indicators, there’s no built-in way to gauge when the move is losing power . Traders rely on price action or momentum indicators to guess if a trend is fading. But this adds clutter, lag, and often contradiction. The classic SuperTrend doesn’t offer insight into how strong or weak the current trend leg is—only whether price has crossed a line.
This version includes a Trending Liquidity Histogram —a histogram that shows whether the liquidity in the SuperTrend zone is expanding or compressing. When the bars weaken or cross toward zero, it signals liquidity exhaustion . This early warning gives you time to prep for reversals or anticipate pullbacks. It even adapts visually depending on your trading mode, showing color-coded signals for scalping vs. trending behavior. It's both a strength gauge and a trade timing tool—built into your stoploss logic.
Histogram in Scalping Mode
Histogram in Trending Mode
📊 Visual Table for Real-Time Clarity
A major issue with custom indicators is opacity —you don’t always know what settings or values are currently being used. Even worse, if your dynamic logic changes mid-trade, you may not notice unless you go digging into the code or logs. This can create confusion, especially for discretionary traders.
This SuperTrend solves it with a clean visual summary table right on your chart. It shows your current ATR value, adaptive multiplier, trailing stop level, and whether a new zone size is active. That means no surprises and no second-guessing—everything important is visible and updated in real-time.
HTF CandlesThis indicator helps to visualize what is happening on the higher timeframe on your current chart without having to change intervals. Quickly see gaps, imbalances, trends on the higher timeframe while you are trading. Works excellent for seeing 5m or 15m trend on a 1m chart for example.
Multi EMA with Smoothing & BBMulti EMA with Smoothing & BB
────────────────────────────
This script overlays **four exponential moving averages**—fully adjustable (defaults 20/30/40/50)—to give an instant read on trend direction via “EMA stacking.”
• When the faster lines (short lengths) sit above the slower ones, the market is in up-trend alignment; the opposite stack signals down-trend momentum.
┌─ Optional Smoothing Engine
│ The 4th EMA (slowest) can be run through a second moving-average filter to cut noise:
│ ─ SMA ─ EMA ─ SMMA/RMA ─ WMA ─ VWMA ─ None
│ You choose both the type and length (default 14).
│ This smoothed line often acts as dynamic support/resistance for pull-back entries.
└───────────────────────────
┌─ Built-in Bollinger Bands
│ If you pick **“SMA + Bollinger Bands,”** the script wraps the smoothed EMA with upper/lower bands using a user-set standard-deviation multiplier (default 2.0).
│ • Band expansion ⇒ rising volatility / breakout potential.
│ • Band contraction ⇒ consolidation / squeeze conditions.
└───────────────────────────
Extra Utilities
• **Offset** (±500 bars) lets you shift every plot forward or backward—handy for visual back-testing or screenshot aesthetics.
• Selectable data *source* (close, HLC3, etc.) for compatibility with custom feeds.
• Transparent BB fill improves chart readability without hiding price.
Typical Uses
1. **Trend Confirmation** – Trade only in the direction of a clean EMA stack.
2. **Dynamic Stops/Targets** – Trail stops along the smoothed EMA or take profit at opposite BB.
3. **Volatility Filter** – Enter breakout strategies only when BB width begins to widen.
Parameter Summary
• EMA Lengths: 1–500 (defaults 20 | 30 | 40 | 50)
• Smoothing Type: None / SMA / EMA / SMMA / WMA / VWMA / SMA + BB
• Smoothing Length: 1–500 (default 14)
• BB StdDev: 0.001–50 (default 2.0)
• Offset: -500…+500 bars
No repainting – all values calculated on fully closed candles.
Script written in Pine Script v6. Use at your own discretion; not financial advice.
Volumetric Expansion/Contraction### Indicator Title: Volumetric Expansion/Contraction
### Summary
The Volumetric Expansion/Contraction (PCC) indicator is a comprehensive momentum oscillator designed to identify high-conviction price moves. Unlike traditional oscillators that only look at price, the PCC integrates four critical dimensions of market activity: **Price Change**, **Relative Volume (RVOL)**, **Cumulative Volume Delta (CVD)**, and **Average True Range (ATR)**.
Its primary purpose is to help traders distinguish between meaningful, volume-backed market expansions and noisy, unsustainable price action. It gives more weight to moves that occur in a controlled, low-volatility environment, highlighting potential starts of new trends or significant shifts in market sentiment.
### Key Concepts & Purpose
The indicator's unique formula synthesizes the following concepts:
1. **Price Change:** Measures the magnitude and direction of the primary move.
2. **Relative Volume (RVOL):** Confirms that the move is backed by significant volume compared to its recent average, indicating institutional participation.
3. **Cumulative Volume Delta (CVD):** Measures the underlying buying and selling pressure, confirming that the price move is aligned with the net flow of market orders.
4. **Inverse Volatility (ATR):** This is the indicator's unique twist. It normalizes the signal by the inverse of the Average True Range. This means the indicator's value is **amplified** when volatility (ATR) is low (signifying a controlled, confident expansion) and **dampened** when volatility is high (filtering out chaotic, less predictable moves).
The goal is to provide a single, easy-to-read oscillator that signals when price, volume, and order flow are all in alignment, especially during a breakout from a period of contraction.
### Features
* **Main Oscillator Line:** A single line plotted in a separate pane that represents the calculated strength of the volumetric expansion or contraction.
* **Zero Line:** A dotted reference line to easily distinguish between bullish (above zero) and bearish (below zero) regimes.
* **Visual Threshold Zones:** The background automatically changes color to highlight periods of significant strength:
* **Bright Green:** Indicates a "Strong Up Move" when the oscillator crosses above the user-defined upper threshold.
* **Bright Fuchsia:** Indicates a "Strong Down Move" when the oscillator crosses below the user-defined lower threshold.
### Configurable Settings & Filters
The indicator is fully customizable to allow for extensive testing and adaptation to different assets and timeframes.
#### Main Calculation Inputs
* **Price Change Lookback:** Sets the period for calculating the primary price change.
* **CVD Normalization Length:** The lookback period for normalizing the Cumulative Volume Delta.
* **RVOL Avg Volume Length:** The lookback for the simple moving average of volume, used to calculate RVOL.
* **RVOL Normalization Length:** The lookback period for normalizing the RVOL score.
* **ATR Length & Normalization Length:** Sets the periods for calculating the ATR and its longer-term average for normalization.
#### Weights
* Fine-tune the impact of each core component on the final calculation, allowing you to emphasize what matters most to your strategy (e.g., give more weight to CVD or RVOL).
#### External Market Filter (Powerful Feature)
* **Enable SPY/QQQ Filter for Up Moves?:** A checkbox to activate a powerful regime filter.
* **Symbol:** A dropdown to choose whether to filter signals based on the trend of **SPY** or **QQQ**.
* **SMA Period:** Sets the lookback period for the Simple Moving Average (default is 50).
* **How it works:** When enabled, this filter will **only allow "Strong Up Move" signals to appear if the chosen symbol (SPY or QQQ) is currently trading above its specified SMA**. This is an excellent tool for aligning your signals with the broader market trend and avoiding bullish entries in a bearish market.
#### Visuals
* **Upper/Lower Threshold:** Allows you to define what level the oscillator must cross to trigger the colored background zones, letting you customize the indicator's sensitivity.
***
**Disclaimer:** This tool is designed for market analysis and confluence. It is not a standalone trading system. Always use this indicator in conjunction with your own trading strategy, risk management, and other forms of analysis.
Ultimate Williams %RUltimate Williams %R
The most advanced Williams %R indicator available - featuring multi-timeframe analysis, zero-lag processing, volatility adaptivity, and intelligent extreme zone detection.
Key Improvements Over Standard Williams %R
Multi-Timeframe: Combines short, medium, and long-term Williams %R calculations with Ultimate Oscillator-style weighting for superior signal quality
Zero-Lag Implementation: Utilizes Ehler's Zero-Lag EMA with error correction, eliminating traditional oscillator lag while maintaining smoothness
Volatility Adaptive: Automatically adjusts periods based on ATR volatility analysis for optimal performance in all market conditions
Z-Score Normalization: Provides consistent, statistically-based extreme level detection across different market environments
Perfect For
Overbought/Oversold Identification: Instantly spot extreme market conditions with visual intensity that scales with signal strength
Divergence Analysis: Enhanced responsiveness and smooth operation make divergence patterns clearer and more reliable
Multi-Timeframe Confirmation: Built-in timeframe combination eliminates the need for multiple Williams %R indicators
Entry/Exit Timing: Zero-lag processing provides earlier signals without sacrificing accuracy
Customizable Settings
Timeframe Periods: Adjustable short (7), medium (14), and long (28) periods
Volatility Adaptation: Configurable ATR-based period adjustment
Zero-Lag Processing: Toggle and fine-tune the smoothing system
Z-Score Normalization: Adjustable lookback period for statistical analysis
Extreme Levels: Customizable threshold for extreme signal detection
[FS] Time & Cycles Time & Cycles
A comprehensive trading session indicator that helps traders identify and track key market sessions and their price levels. This tool is particularly useful for forex and futures traders who need to monitor multiple trading sessions.
Key Features:
• Multiple Session Support:
- London Session
- New York Session
- Sydney Session
- Asia Session
- Customizable TBD Session
• Session Visualization:
- Clear session boxes with customizable colors
- Session labels with adjustable visibility
- Support for sessions crossing midnight
- Timezone-aware calculations
• Price Level Tracking:
- Daily High/Low levels
- Weekly High/Low levels
- Previous session High/Low levels
- Customizable history depth for each level type
• Customization Options:
- Adjustable colors for each session
- Customizable border styles
- Label visibility controls
- Timezone selection
- History level depth settings
• Technical Features:
- High-performance calculation engine
- Support for multiple timeframes
- Efficient memory usage
- Clean and intuitive visual display
Perfect for:
• Forex traders monitoring multiple sessions
• Futures traders tracking market hours
• Swing traders identifying key session levels
• Day traders planning their trading hours
• Market analysts studying session patterns
The indicator helps traders:
- Identify active trading sessions
- Track session-specific price levels
- Monitor market activity across different time zones
- Plan trades based on session boundaries
- Analyze price action within specific sessions
Note: This indicator is designed to work across all timeframes and is optimized for performance with minimal impact on chart loading times.
RSI Distance+Here’s a Pine Script that highlights when the RSI line is significantly far from its moving average, just like in your marked image:
🔍 How It Works:
Calculates RSI and its SMA.
Measures absolute distance between the two.
If that distance exceeds your chosen threshold (e.g. 4.0), it:
Colors the background behind the RSI.
Marks it with a small red circle on the RSI line.
You can adjust the distanceThreshold input to fine-tune sensitivity based on your preference.
IKODO Harmonic Patterns🧠 IKODO Prof Price Action Indicator
"Let the price speak. We just listen."
While most traders rely on lagging tools, IKODO Prof reads the raw language of the market — price itself.
🔹 Zero lag. Zero noise. Pure price intelligence.
🔹 Real-time detection of breaker zones, liquidity hunts, and smart money traps
🔹 Designed for institutional-grade precision
🔹 Built for scalpers, swing traders, and those who don't follow the herd
> “Price action is not a tool — it’s a mindset.”
Welcome to IKODO Prof — a weapon, not just an indicator.
Breakout Time Zones (CT)High and low of 3am-7am central time plus high and low of 8:30-8:44 high and low
EMA 52W 65-80% Down ShiftShifted EMA 52W. Useful in identifying the low points of medium- and long-term trends on altcoins. EMA 52 W - Annual Trend A 65-75% downward shift relative to the current position potentially indicates deep drawdowns for most investor participants and can serve as an approximate zone for a medium-term rebound or trend reversal.
Running Minimum HighThe running minimum high looks at the minimum high from a defined lookback period (default 10 days) and plots that on the price chart. Green arrows signify when the low of the candle is above the running minimum high (suggesting an uptrend), and red arrows signify when the high of the candle is below the running minimum high (suggesting a downtrend).
It is recommended to use this on high timeframes (e.g. 1 hour and above) given the high number of signals it generates on lower timeframes.