ES/SPY Conversion Ratio (by Yulien)The CME_MINI:ES1! ES/ AMEX:SPY SPY Conversion Ratio compares E-mini S&P 500 futures (ES) with the SPDR S&P 500 ETF (SPY). It establishes a daily reference ratio from the confirmed close of the first regular-session minute (9:30-9:31 AM, America/New_York), avoiding reliance on the noisier opening-auction print.
It also calculates a live ratio on every update, displays the percentage drift from the first-minute reference, and converts a user-selected SPY price level into its corresponding ES price rounded to the configured ES tick size.
The indicator includes a configurable on-chart table, an interactive SPY reference level, and a customizable horizontal marker. It does not generate trading alerts or directional signals. This tool is intended for relative price conversion and execution reference only.
IMPORTANT DATA REQUIREMENT
Accurate operation requires real-time market data for both CME ES futures and SPY. Delayed, unavailable, or differently timestamped feeds can produce stale prices, an unavailable first-minute reference, or an inaccurate live ratio. Indicator

Projected Volume (Intraperiod Estimate)Projected Volume (Intraperiod Estimate)
════════════════════════════════════════
OVERVIEW
Projected Volume replaces the standard volume study with a live, forward-looking
estimate of where the current bar's volume is likely to finish. Volume is only
known with certainty once a bar closes, which makes it hard to judge in real time
whether the bar in progress is trading heavy or light. This indicator solves that
by drawing the volume already traded as a solid column and projecting the
remaining, not-yet-traded volume as a hollow cap on top — so the anticipated
final volume of the developing bar is visible at a glance. The projection is
rebuilt on every update of the live bar and adapts to your chart timeframe and to
the data your subscription can access.
WHAT IT PLOTS
• Directional volume columns on every bar — green when close ≥ open, red when
close < open (the standard volume read you already use).
• On the current, unfinished bar only:
– a solid column for the volume traded so far;
– a hollow outline extending from the top of the solid column up to the
projected final volume;
– an optional label with the projected total and the percent of the period
elapsed.
As the bar fills in, the solid portion grows and the hollow cap shrinks toward
zero. At the close, projected equals actual.
HOW THE PROJECTION WORKS
The indicator uses two methods and selects between them automatically based on
whether sub-bar (intrabar) data is available.
1) Intraperiod volume profile — primary method
For each of the last N completed bars, the script requests lower-timeframe
volume and measures how volume accumulates through the period: what fraction of
the period's total volume is typically complete by the end of each time-slice —
the classic "how much of the day's volume is usually done by the first hour, the
second hour…" shape. That cumulative curve is averaged across the lookback window
to form a typical accumulation profile.
For the developing bar the script determines how far through the period it has
progressed, reads the typical cumulative fraction f at that point, and estimates:
projected total = volume so far ÷ f
Because the profile captures the real intraperiod shape — the U-shaped session
volume common in equities, or the flatter distribution of 24/7 crypto — the
estimate reflects typical behavior rather than assuming volume arrives at a
constant rate.
2) Average-of-increment — base-resolution fallback
When the chart is already at the lowest interval your data plan provides (for
example a 1-minute chart on a plan without seconds data), there is no sub-bar to
sample and the profile method does not apply. In that case the script projects:
projected total = volume so far + (1 − elapsed) × average volume of last N bars
This equals a typical bar early in the period, tracks the realized volume as the
bar fills, always sits at or above the volume already traded, and converges to
the actual figure at the close. It requires no lower-timeframe data and cannot
error. Elapsed time is measured from the clock, so no sub-bar feed is needed.
Automatic method selection
The script detects whether a usable lower timeframe exists that your plan can
serve. If so, it uses the profile method — and floors sub-sampling at one minute,
so 5m / 15m / 1h charts still build a genuine profile from 1-minute intrabars. If
not, it uses the average-of-increment fallback. The active method is shown in the
on-chart label, where a "· avg" suffix denotes fallback mode.
SETTINGS
• Intraperiod slices (12 / 24 / 48) — number of time-slices used to model the
accumulation curve within each period. 24 is roughly hourly on a daily chart.
• Lookback periods — number of completed bars averaged for the profile and the
fallback average (default 30).
• Auto sub-period timeframe — when on, the script chooses the intrabar sampling
resolution automatically. Turn off to set it manually.
• Manual sub-period timeframe — used when Auto is off; must be lower than the
chart timeframe.
• Allow seconds sub-sampling — off by default. Enable only if your plan provides
seconds data; when off, the script never requests sub-minute data and therefore
cannot error on a 1-minute chart.
• Min % elapsed before projecting — suppresses unstable projections in the
opening moments of a new bar.
• Up / Down volume colors and a toggle for the projection label.
READING THE LABEL
The label reads, for example, "Proj 1.2M (35% elapsed)" — the projected final
volume and how far the current period has progressed. A "· avg" suffix indicates
the average-of-increment fallback is active because intrabar data is unavailable
at that resolution.
BEHAVIOR, NOTES & LIMITATIONS
• Real-time by design. The projection exists only on the current, unfinished bar
and recalculates as that bar develops. Historical bars display actual traded
volume only — the indicator does not restate closed bars, but the live estimate
moves tick to tick as new volume arrives. This is expected behavior for a
forward projection, not hidden repainting.
• It is an estimate, not a guarantee. Accuracy is lowest in the first fraction of
a new bar and improves as the bar fills; the "Min % elapsed" input guards the
earliest, noisiest moments.
• The profile method depends on intrabar data availability, which varies by
symbol and subscription. Where it is unavailable, the indicator degrades
gracefully to the average-based method.
• Works across asset classes and timeframes. Because elapsed progress is measured
from intrabar count where available (and otherwise from the clock), it adapts to
both continuous (crypto) and session-based (equities/futures) markets.
• Volume reflects the data feed of the chart's symbol; index or aggregated tickers
may report volume differently from a single exchange.
CONCEPT
The tool pairs a standard directional volume histogram with an
intraperiod-accumulation model and presents the realized-versus-projected split
visually as a filled column plus a hollow cap. The aim is a single, glanceable
read on whether the bar in progress is on pace to finish heavy or light relative
to recent norms. Indicator

Interactive TA↕️ Interactive TA is a proof-of-concept indicator that enables moving average selection directly on the chart through an interactive selector, without opening the settings panel. Drag the selector marker vertically to switch between SMA, EMA, VWMA, HMA, and DEMA — the selected moving average updates on the price overlay in real time. Built as an educational framework for interactive technical analysis in PineScript, the indicator demonstrates how PulseWire's price input can be repurposed as a draggable on-chart control, establishing a template for developers to build interactive indicators, dashboards, and selection tools beyond what PineScript natively offers.
💡 CONCEPT 💡
PineScript currently offers no command buttons, toggles, or selection controls that operate directly on the chart. All indicator configuration is handled through the settings panel, requiring the user to open a dialog, adjust values, and close it before seeing the result. This workflow, while functional, interrupts the analytical process and disconnects the user from the chart during configuration changes.
Interactive TA demonstrates a workaround to this limitation. The indicator uses input.price — a PineScript function originally designed for anchoring price levels on a chart — as a vertically draggable selector. By mapping the vertical position of this price input to discrete zones, each corresponding to a different moving average type, the indicator transforms a simple price anchor into a functional control element.
The lower pane of the chart serves as the control surface. A selector marker is displayed with labeled zones on the right side, each representing a moving average type (SMA, EMA, VWMA, HMA, DEMA). The currently active zone is highlighted, and the selected moving average is plotted on the upper price chart using force_overlay , with its type and length displayed in the top-right corner. Dragging the selector marker into a different zone immediately switches the active moving average in real time.
This approach demonstrates that interactive technical analysis — where chart elements respond to direct user manipulation rather than static settings — is achievable within PineScript's existing capabilities. The moving average selector is intentionally simple; it exists to illustrate the interactive pattern itself, which can be extended to virtually any indicator parameter or selection logic.
🔶 HOW TO USE 🔶
Add the indicator to your chart. The lower pane displays the selector with labeled zones, and the upper chart displays the currently selected moving average.
Click and drag the orange selector marker up or down to move it into the zone of the desired moving average type.
Release the drag. The moving average on the upper chart updates immediately to reflect the new selection. Interactive Selector : The arrows indicate the drag points where the user can click and slide the selector line vertically to switch between moving average types. The currently selected type (VWMA) is highlighted in orange, and the corresponding moving average is plotted on the upper chart.
Pane sizing: The lower pane can be resized by dragging the horizontal divider between the upper and lower panes. This allows the user to adjust the vertical spacing of the zone labels for comfort and readability. Making the lower pane taller spreads the labels out; making it shorter compresses them. This is standard PulseWire behavior and provides an additional layer of visual customization.
Pane scale: The numeric values on the lower pane's vertical axis are internal zone coordinates used for selector positioning and do not represent price.
🛠️ SETTINGS 🛠️
MA Length : Sets the period for the moving average calculation. Default is 50.
MA Color : Sets the color of the moving average line on the upper chart.
Selector Color : Sets the color of the selector pointer, zone highlight, and the type label on the upper chart.
Auto-Generated By PineScript : System input created by the interactive selector. No adjustment needed.
🔑 PRACTICAL ADVANTAGES 🔑
The ability to adjust indicator parameters directly on the chart, without leaving the visual context of price action, offers practical advantages for technical analysis:
Rapid comparison. Switching between moving average types to evaluate their behavior on the same price action takes a single drag gesture rather than multiple clicks through the settings panel. This enables quick side-by-side evaluation of how different calculations respond to the same market conditions.
Reduced context switching. Opening the settings dialog shifts attention away from the chart. Interactive controls keep the analyst's focus on price action while making adjustments, preserving the visual continuity of the analysis.
Faster live workflow. During active market sessions, the difference between a one-second drag and a multi-step settings change can affect the pace of analysis. Interactive controls compress the decision-to-observation cycle.
Education and presentation. When demonstrating technical analysis concepts to others, the ability to switch between indicator types in real time — visibly, on the chart — is more effective than toggling settings behind a dialog. The audience sees the change happen, which reinforces understanding of how different indicators behave.
Exploration. Interactive controls lower the friction of experimentation. When switching between options is effortless, analysts are more likely to explore alternatives they might otherwise skip, potentially discovering indicator configurations better suited to current market conditions.
DEMA (50) : Selected via the interactive slider. The selector is positioned in the DEMA zone, with the corresponding label highlighted and the double exponential moving average plotted on the upper chart. EMA (50) : Selected on the same chart and timeframe. The selector has been dragged to the EMA zone, switching the overlay without changing any settings. Comparing the two charts reveals how the EMA responds differently to the same price action.
🔮 EXPANDING THE CONCEPT 🔮
Interactive TA is released as a proof of concept and an open invitation to the PineScript development community. The interactive pattern demonstrated here — mapping a draggable price input to discrete zones that drive indicator logic — is not limited to moving average selection. The same framework can be adapted to control virtually any aspect of a technical analysis tool.
Timeframe or source selection controlled by an on-chart slider
Strategy mode switching between parameter presets
Alert threshold adjustment through direct chart interaction
Multi-indicator dashboards where a single control determines which overlay is visible
Sensitivity or risk level tuning without opening settings
These are starting points, not boundaries. The framework is deliberately generic — a draggable position mapped to an array of options — and developers are encouraged to extend it in directions not anticipated here. As the community explores and builds upon this workaround, the case for native support becomes increasingly evident. Definable slider ranges, anchored control elements, minimum and maximum value constraints, step intervals, and discrete input types would significantly expand the potential for building interactive analytical tools in PineScript.
⚠️ NOTE ⚠️
Interactive TA is a proof-of-concept indicator designed for educational purposes and as a development framework. It demonstrates an innovative approach to on-chart interactivity in PineScript and is intended to serve as a template for further development by the community. The included moving average selector is a demonstration of the interactive pattern, not a standalone trading tool. It is not intended as financial advice or a trading signal generator. Users and developers are encouraged to adapt, extend, and build upon this framework to suit their own analytical needs. Indicator

Indicator

Indicator
