Indicator

Indicator

Macro Event Radar JP FreeMacro Event Radar JP Free is a Japanese-focused economic calendar overlay for FX traders.
Features:
• Automatically imports upcoming economic events from the public Pine Seeds feed maintained by toodegrees (source data: Forex Factory).
• Displays event time in JST, currency, expected impact, event name, countdown and warning state.
• Adds Japanese helper text to major event names.
• Optional vertical event lines, release labels, risk-window background, dynamic alerts and post-release reaction statistics (5/15/30/60 min, MFE/MAE).
• Currency can follow the chart automatically or be selected manually.
• Manual JST schedule input remains available as a fallback.
Data can be delayed, incomplete or changed. Always verify important release times with the official source. This indicator is not financial advice.
Credits:
Data feed and public libraries: toodegrees
Source data: Forex Factory
Japanese UI, JST presentation and reaction-analysis features: a4gete02b
日本語:
FX向けの日本語経済指標カレンダーです。標準設定は「自動」で、公開フィードから予定を取得し、JST時刻・通貨・重要度・指標名・残り時間・警戒状態を表示します。主要指標には日本語補助名を付けます。縦線、発表済みラベル、警戒背景、アラート、発表後5/15/30/60分とMFE/MAEの反応分析を利用できます。
使い方:
1. チャートに追加します。
2. 「予定データ取得」は通常「自動」のまま使用します。
3. 初期設定の「対象通貨=すべて」では全通貨を表示します。チャート関連通貨だけなら「自動」に変更します。
4. 重要指標だけなら「最低重要度=3」にします。
5. PulseWireのアラート作成で本インジケーターを選び、「Any alert() function call」を選ぶと事前通知を受け取れます。
6. 小さい画面では予定表=右上、分析=右下または左下にすると重なりを避けられます。
経済指標データは遅延・欠落・変更の可能性があります。重要な発表時刻は必ず公式情報でも確認してください。 Indicator

Indicator

Indicator

Indicator

Butterworth Spectral Trend [QuantAlgo]🟢 Overview
The Butterworth Spectral Trend is a trend-following indicator built on a 2-pole Butterworth SuperSmoother rather than fixed moving averages or crossover logic. It extracts a low-noise spectral trend path from price, optionally stretches or compresses that path’s cutoff from residual signal-to-noise conditions, then converts filter slope into direction with hysteresis and hold controls so traders can separate genuine trend turns from short-lived noise across every timeframe and market.
🟢 How It Works
The foundation of the indicator is a classic 2-pole Butterworth SuperSmoother. Coefficients are derived from the live cutoff period and a damping factor (√2 by default for the maximally flat Butterworth response), then applied recursively to the selected price source, with an optional Nyquist average of the current and prior sample to suppress 2-bar oscillation:
butterworth_coefficients(float period, float damping) =>
float safe_period = math.max(period, 2.0)
float argument = damping * math.pi / safe_period
float alpha = math.exp(-argument)
float c2 = 2.0 * alpha * math.cos(argument)
float c3 = -alpha * alpha
float c1 = 1.0 - c2 - c3
A provisional filter always runs at the base cutoff. Residual energy (price minus provisional filter) and provisional slope energy are tracked with EMA-style RMS estimates. Their ratio maps market conditions into a noise weight that lengthens the cutoff when residuals dominate and shortens it when directional slope energy is cleaner:
float residual = price_source - provisional_filter
float signal_to_noise = residual_rms > 0 ? slope_rms / residual_rms : 10.0
float noise_weight = 1.0 / (1.0 + math.min(math.max(signal_to_noise, 0.05), 10.0))
float target_cutoff = min_cutoff + (max_cutoff - min_cutoff) * noise_weight
float desired_cutoff = adaptive_cutoff ? base_cutoff * (1.0 - adapt_strength) + target_cutoff * adapt_strength : float(base_cutoff)
The live cutoff is blended toward that target with a smoothing factor so period changes do not jump bar to bar. The final spectral filter is then computed from those adaptive coefficients. When adaptivity is disabled, the filter always uses the fixed base cutoff period.
Direction is read from the spectral filter’s slope, not from price-versus-line crossovers. Optional hysteresis requires opposite slope to exceed a multiple of its typical recent magnitude before a flip is allowed, and a minimum hold bar count enforces a cooldown after each flip:
float filter_slope = spectral_filter - nz(spectral_filter , spectral_filter)
float deadband = hysteresis * typical_slope
bool opposite_move = slope_direction != 0 and slope_direction != trend_direction
bool clears_deadband = abs_filter_slope > deadband or hysteresis == 0.0
bool hold_complete = bars_since_flip >= min_hold_bars
if opposite_move and clears_deadband and hold_complete
trend_direction := slope_direction
bars_since_flip := 0
This design means the trend path is spectral (period-based smoothing), while state flips are slope-gated. Clean directional conditions can tighten the cutoff for faster response; noisy conditions can lengthen it for more stability. Hysteresis and hold bars further reduce clustered flips without changing the underlying filter math.
Direction state is tracked through an integer trend direction, with signal conditions derived from comparing the current and prior bar states:
turned_bullish = trend_direction == 1 and trend_direction != 1
turned_bearish = trend_direction == -1 and trend_direction != -1
trend_changed = turned_bullish or turned_bearish
🟢 Signal Interpretation
▶ Bullish Trend (Green/Bullish palette): When spectral filter slope turns positive and clears any active hysteresis and hold constraints, the indicator enters bullish mode with bullish colouring applied across the SuperSmoother line, optional spectral bodies, gradient fill, and BUY label. This state persists until slope reverses with enough strength (and after enough bars) to satisfy the signal filters, allowing shallow noise wiggles in the filter to occur without flipping direction.
▶ Bearish Trend (Red/Bearish palette): When spectral filter slope turns negative under the same constraints, the indicator enters bearish mode with bearish colouring across all visual elements. A confirmed opposite slope move is required to exit this state and print a SELL signal.
🟢 Features
▶ Preconfigured Presets: Three parameter sets cover different trading approaches. "Default" targets swing trading on 1-hour to daily charts with a balanced base cutoff, moderate residual adaptivity, and lookback. "Fast Response" shortens the cutoff and strengthens adaptivity for intraday charts from 5-minute to 1-hour, where earlier turns matter more than flip sparsity. "Smooth Trend" lengthens the cutoff, softens adaptivity, and adds light hysteresis plus a short hold for position trading on daily and weekly timeframes, where false flips are more costly than delayed ones. Selecting a preset overrides the corresponding core, adaptivity, and signal inputs.
▶ Built-in Alerts: Three alert conditions cover all directional states. "Bullish Trend Signal" fires on the bar where trend direction confirms bullish. "Bearish Trend Signal" fires on the bar where it confirms bearish. "Any Trend Change" combines both into a single condition for traders who want a unified notification regardless of direction. Alerts continue to work even when signal labels are hidden.
▶ Visual Customisation: Six colour presets (Classic, Aqua, Cosmic, Cyber, Neon, and Custom) apply coordinated bullish and bearish colour schemes across the SuperSmoother line, spectral bodies, gradient fill, signal labels, and optional bar and background colouring. Bar colouring tints price candles with the active trend colour at a configurable transparency level, and background colouring extends the directional tint across the full chart pane.
Indicator

Indicator

Indicator

Strategy

Indicator

TSF Risk ManagerTSF Risk Manager
═══════════════════════════════════════ ENGLISH ═══════════════════════════════════════
OVERVIEW A visual position-size and risk calculator. Mark your entry and stop-loss on the chart and it instantly computes the exact lot size for your chosen account risk, draws the full trade (entry, stop, take-profits) and shows the REAL risk in your account currency.
Important: PulseWire / Pine cannot access your broker account or place orders. This is a calculator and visual planner — you enter your account size and risk %, and it does the math. It does not execute trades.
WHAT IT DOES
Click-to-place entry and stop-loss directly on the chart.
Calculates position size (lots) for your target risk %, rounded DOWN to your broker's lot step so you never exceed the intended risk.
Shows the REAL risk of the rounded lot (in money and %), so what you see is what you actually risk — not just the target.
Warns when your account size and stop distance don't allow the target risk (i.e., when the broker's minimum lot already risks more than your %).
Draws the trade: entry, stop and three take-profit levels at configurable R multiples, with a green reward zone and a red risk zone.
Detects direction (long / short) automatically from where the stop is placed.
HOW IT WORKS
Risk amount = account balance × risk %.
Lot size = risk amount ÷ (stop distance × value-per-1.00-move-per-lot), floored to the broker's lot step.
The "Value of 1.00 move per lot" must match your instrument. For XAUUSD (gold) it is 100 (1 standard lot = 100 oz, so a 1.00 price move = $100 per lot). Adjust it for other instruments / brokers.
HOW TO USE
Add the indicator; when prompted, click your entry and then your stop-loss on the chart.
In the settings, set your account size, risk %, and the value-per-point for your instrument (100 for gold).
Read the lot size and the real risk in the panel; the trade is drawn on the chart.
To plan another trade without deleting the current one, simply add the indicator again.
USER-INTERFACE TEXT (English translation) The panel and labels are written in Spanish. English meaning:
"TSF RISK" = panel title · "COMPRA" = Buy (long) · "VENTA" = Sell (short).
"Capital" = Account balance · "Riesgo objetivo" = Target risk · "Distancia SL" = Stop distance.
"LOTAJE" = Lot size · "Riesgo real" = Actual risk · "Estado" = Status.
"⚠ Mín 0.01 = X% del capital" = Warning: the broker's minimum lot risks X% of the account.
"✔ Riesgo bajo control" = Risk under control · "marcá entrada y stop" = mark entry and stop.
"TP1 / TP2 / TP3 (R)" = take-profit levels at R multiples · "Trading Sin Fronteras" = the author's brand.
This script is open-source. Feel free to study it, learn from it and adapt it.
═══════════════════════════════════════ ESPAÑOL ═══════════════════════════════════════
Calculadora visual de gestión de riesgo y tamaño de posición. Marcás tu entrada y tu stop en el gráfico y te calcula al instante el lotaje exacto para el riesgo que elegiste, dibuja la operación completa (entrada, stop, take-profits) y te muestra el riesgo REAL en el dinero de tu cuenta.
Importante: PulseWire no accede a tu cuenta del broker ni ejecuta órdenes. Esto es una calculadora y planificador visual — vos cargás tu capital y tu % de riesgo, y hace el cálculo. No opera por vos.
QUÉ HACE
Marcás entrada y stop con un clic en el gráfico.
Calcula el lotaje para tu % de riesgo, redondeado HACIA ABAJO al mínimo de tu broker para que nunca te pases del riesgo objetivo.
Muestra el riesgo REAL del lote redondeado (en $ y en %), así lo que ves es lo que de verdad arriesgás.
Te avisa cuando tu capital y tu stop no permiten el riesgo objetivo (cuando el lote mínimo del broker ya arriesga más que tu %).
Dibuja la operación: entrada, stop y tres take-profits en múltiplos de R, con zona verde de beneficio y roja de riesgo.
Detecta la dirección (compra / venta) según dónde pongas el stop.
CÓMO USARLO Agregá el indicador y, cuando lo pida, hacé clic en tu entrada y luego en tu stop. En los ajustes cargá tu capital, tu % de riesgo y el "valor de 1.00 por lote" de tu instrumento (100 para el oro). Leé el lotaje y el riesgo real en el panel. Para planificar otra operación sin borrar la anterior, agregá el indicador de nuevo.
Script de código abierto — Trading Sin Fronteras. Indicator

Indicator

Indicator

Asian Session XAUUSD by CapitanzorThis indicator highlights the Asian trading session (default 01:00–03:00, Europe/London time) on the chart — a period typically characterized by lower volatility and tighter price ranges in Gold (XAUUSD), before the London session opens.
The session's time range and timezone are fully configurable via the indicator's settings (input.session and input.string), allowing each trader to adapt it to their own local time and preferred session window, without needing to edit the code.
How it works:
- The script uses time() combined with input.session() to detect whether the current bar falls within the selected time range, converted to the chosen timezone.
- When the condition is true, the background is shaded in a light yellow color for easy visual identification.
- Useful for spotting pre-breakout consolidation zones ahead of higher-volatility sessions (e.g. London or New York open).
—
Este indicador resalta la sesión asiática (por defecto 01:00–03:00, hora de Londres) en el gráfico — un periodo típicamente caracterizado por baja volatilidad y rangos de precio más estrechos en el oro (XAUUSD), antes de la apertura de la sesión de Londres.
El rango horario y la zona horaria son totalmente configurables desde las opciones del indicador, permitiendo a cada trader adaptarlo a su hora local sin necesidad de tocar el código.
Cómo funciona:
- El script usa time() junto con input.session() para detectar si la vela actual cae dentro del rango horario seleccionado, convertido a la zona horaria elegida.
- Cuando la condición se cumple, el fondo se sombrea en amarillo claro para facilitar su identificación visual.
- Útil para detectar zonas de consolidación previas a sesiones de mayor volatilidad (ej. apertura de Londres o Nueva York). Indicator

Dynamic Candle Trailing StopDynamic Candle Trailing Stop (v1)
The Dynamic Candle Trailing Stop is a clean, multi-directional trailing stop tool designed to help traders automate exit management, protect profits, and reduce emotional decision-making.
Instead of relying on volatility indicators like ATR or static percentages, this indicator anchors its trailing stop directly to recent price structure (highs and lows over a customizable candle period, default is 6 candles).
-----
🔹 How It Works
1. Structural Anchoring: It continuously calculates the highest high and lowest low over a user-defined lookback window (`# of Candles to Look Back`).
2. One-Way Ratcheting Mechanism:
- In a Long Trend: The trailing stop only moves UP (ratchets upward as new local lows form) and will never step down.
- In a Short Trend: The trailing stop only moves DOWN (ratchets downward as new local highs form) and will never step up.
3. Automated Trend Reset: When price closes beyond the trailing stop, the trend state automatically flips, and the stop resets to the opposite structural boundary.
-----
🟢 How to Use It
* Color Coding:
* Green Stepline: Active Long Trailing Stop.
* Red Stepline: Active Short Trailing Stop.
* Exit Signal: Close a position when the candle closes beyond the stepline.
* Trend Filtering: Use the line color as an extra confirmation filter for current short-term directional bias.
* Ranges: Don't ratchet your stop if the current candles closes opposite direction. Leave space for a range to breath. If you move the stop too aggressively you won't be able to capture the bigger move.
-----
⚙️ Settings
* # of Candles to Look Back:
* Default: `6`
* Lower values (e.g., 2–3) provide a tight, fast-reacting trail for scalping.
* Higher values (e.g., 5–10) give the asset more breathing room, suited for longer intraday trading.
-----
Open source under Mozilla Public License 2.0. Enjoy, and safe trading! Indicator

Market Structure Trend [QuantAlgo]🟢 Overview
The Market Structure Trend tracks the dominant directional bias of price by detecting confirmed swing highs and lows and maintaining an active structure level that only flips on a genuine break of that level. Rather than reacting to every minor high or low, it waits for a pivot to lock in after a defined number of bars on either side, then holds the resulting structure until price closes beyond it by an optional confirmation buffer. The result is a clean, non-repainting structure line that stays aligned with the prevailing market structure while filtering out stop hunts and marginal pokes through key levels. This makes the prevailing bias readable at a glance across any instrument or timeframe.
🟢 How It Works
The indicator begins by identifying pivot highs and pivot lows using the selected left and right structure bars. These pivots become the swing points that define market structure:
pivot_high = ta.pivothigh(high, left_bars, right_bars)
pivot_low = ta.pivotlow(low, left_bars, right_bars)
When a new pivot is confirmed, the corresponding swing high or swing low is updated. The active structure range is calculated as the absolute distance between the current swing high and swing low, and a confirmation buffer is derived as a percentage of that range:
structure_range = math.abs(swing_high - swing_low)
confirm_buffer = structure_range * buffer_pct / 100.0
Break levels are then offset by this buffer so that a downside break sits below the swing low and an upside break sits above the swing high. On every confirmed bar the script checks whether the chosen source (or the high or low when Break On Wick is enabled) has crossed the relevant break level. A successful cross reverses structure direction and reassigns the structure level to the opposite swing. If no break occurs, the structure level simply continues to track the swing consistent with the current direction.
Structure direction is seeded on the first ready bar by comparing price to the midpoint of the swing range, establishing an initial bias. From that point forward flips are gated strictly by confirmed breaks, so the state never repaints or changes mid-bar.
The structure level is drawn as a continuous line with a soft glow underneath. When radial layering is enabled, four concentric fills are drawn between the structure level and the bar midpoint, with transparency increasing outward. This produces a stepped radial field that visually maps distance from the active structure boundary rather than a single flat zone.
🟢 Signal Interpretation
▶ Bullish Structure (Structure Line at Swing Low with Bullish Color): When structure direction is bullish the line sits at the most recent confirmed swing low. Price is considered to remain in an uptrend structure as long as it stays above the buffered downside break level. The bullish state holds until a confirmed downside break occurs, at which point the line moves to the swing high and the color transitions.
▶ Bearish Structure (Structure Line at Swing High with Bearish Color): When structure direction is bearish the line sits at the most recent confirmed swing high. Price remains in a downtrend structure until a confirmed upside break flips the state. The bearish state persists through subsequent bars until an upside break is registered.
🟢 Features
▶ Preconfigured Presets: Three parameter sets cover a range of trading styles and timeframes. Default uses the manual Left Structure Bars, Right Structure Bars, and Confirmation Buffer values and is balanced for swing trading on 1-hour and daily charts. Fast Response shortens the structure legs for scalping and intraday use on 1-minute to 1-hour charts, registering minor swings so the structure trend flips earlier. Smooth Trend lengthens the legs for position trading on daily and weekly charts, tracking only major swings and holding through pullbacks with the confirmation buffer.
▶ Built-in Alerts: Three alert conditions support automated monitoring of structure flips. Bullish Structure Shift fires on the first bar that structure direction changes from bearish to bullish. Bearish Structure Shift fires on the opposite transition. Any Structure Shift triggers on either flip for traders who prefer a single unified alert. All messages include the exchange, ticker, and timeframe for immediate context.
▶ Visual Customization: Six color presets (Classic, Aqua, Cosmic, Cyber, Neon, and Custom) supply coordinated bullish and bearish color pairings suited to different chart themes. Selecting Custom unlocks independent color pickers for full manual control. Optional bar coloring tints each candle with the active structure color at a configurable transparency, and optional background coloring extends the same tint across the full chart pane. Radial layering, structure shift markers, and the structure line itself all inherit the active color pair so the entire visual system remains consistent.
Indicator

Indicator

Indicator

Indicator

Indicator

Time-of-Day/Session Performance Stats [QuantAlgo]🟢 Overview
The Time-of-Day/Session Performance Stats is a comprehensive time-based analysis tool built for traders who want clear, ranked insight into when markets actually move. It measures average range, volume, bullish bias, and drift across every hour of the day and the four major sessions, then surfaces the strongest and weakest windows so you can focus activity where the data supports it. Whether you trade crypto around the clock or equity and forex sessions on a weekday schedule, the indicator turns raw historical bars into practical rankings, session comparisons, and non-repainting chart overlays.
🟢 What is Time-of-Day and Session Performance?
Markets are not uniform across the 24-hour cycle. Liquidity, volatility, and participation concentrate in specific hours and sessions. Sydney is typically the thinnest of the four major centers, Tokyo drives Asian activity, London often produces the widest ranges of the day, and the London-New York overlap is usually the busiest window. By averaging range, volume, the share of up closes, and net drift for each hour and each session over a configurable lookback, this tool converts those recurring patterns into ranked statistics instead of leaving you to rely on memory or anecdotal observation.
🟢 How It Works
The indicator walks a configurable window of past bars (limited by lookback days and a hard max-bar ceiling) in the timezone you select. Every usable bar is assigned to its hour of day and to any sessions it falls inside. Range can be measured in percent of close or in raw price units. Volume, directional closes, and drift are accumulated in parallel. Hours that do not meet a minimum bar-count threshold are dropped from every ranking so tiny samples cannot distort the boards.
Five ranking boards are produced: Activity (average range), Volume (when the symbol reports it), Bias (percentage of directional bars that closed higher), Drift (mean close-minus-open percentage), and Aggregated (the mean percentile of range, volume, and directional edge). Sessions are ranked solely on average range per bar and can be toggled or given custom windows. Overlaps count toward every session involved rather than being forced into one.
Chart overlays read a trailing window of the same length rather than the final ranking, so background shading and bar coloring never repaint. The Focus Hours panel converts the Aggregated ranking into three practical allocation plans plus the single quietest hour to avoid.
🟢 Key Features
▶ Ranking Boards
Five independent boards list every qualifying hour from strongest to weakest.
1. Activity Ranking: Orders hours by average bar range. Rank 1 is the hour with the most room; the last row is the quietest. This is the simplest and often most useful single board.
2. Volume Ranking: Orders hours by average volume. Read it alongside Activity. High range on low volume signals thin participation. The board is hidden automatically on symbols that report no volume.
3. Bias Ranking: Orders hours by the percentage of directional bars that closed above their open. Flat bars are excluded, so the figure reflects only bars that actually moved. There is no separate bearish column; the bottom of the board is the most bearish reading.
4. Drift Ranking: Orders hours by mean percentage change from open to close. An hour can post a high bull rate yet still show negative drift if its losing bars are larger than its winning ones. Divergences between Bias and Drift are often the most interesting signals.
5. Aggregated Ranking: Combines percentile ranks of range, volume (when present), and directional edge into a single composite score. This is the ranking that feeds both the Focus Hours panel and the Aggregated overlay option.
▶ Session Ranking Panel
The four major sessions are ranked by average range per bar and displayed with their window, bull rate, drift, and bar count. Rank 1 takes the bullish color and the last rank takes the bearish color on the same continuous gradient used by the boards. Because a bar inside an overlap is counted toward every session it belongs to, session bar totals can exceed the overall sample size.
▶ Focus Hours Panel
The Aggregated ranking is translated into four labeled plans: Aggressive (top hour only), Mix (top two with 80/20 weights), Conservative (top three with 50/30/20 weights), and Avoid (the single quietest hour by average range). Each row shows the relevant hours, their session affiliation, bull rate, drift, and score so the reading can be acted on immediately.
▶ Chart Overlay
Background shading and price-bar coloring can be driven independently by Session Ranking, Activity Ranking, Volume Ranking, Bias Ranking, Drift Ranking, Aggregated Ranking, or Focus Hours. All overlays are computed from a trailing window so they never repaint. Transparency controls let you keep the ranking obvious or keep it subtle enough not to compete with price.
▶ Session and Filter Controls
Sydney, Tokyo, London, and New York can each be enabled or disabled and given custom HHMM-HHMM windows in the selected timezone. A weekdays-only filter removes weekend bars for forex, futures, and equities while leaving crypto fully intact. The Bars To Include setting can restrict the entire study to all bars, any enabled session, or one named session.
▶ Built-in Alerts
Ready-made alert conditions fire when price enters the peak activity hour, the quietest hour, the peak volume hour, the most bullish or most bearish hour, or the top Aggregated hour. Separate alerts cover the open and close of each individual session, any session start or end, and the start and end of the London-New York overlap.
▶ Color Presets
Six presets (Classic, Aqua, Cosmic, Cyber, Neon, Custom) apply a continuous gradient from the bullish color at rank 1 to the bearish color at the last rank across every board, panel, and overlay. Custom mode exposes individual bullish and bearish color pickers; text contrast is calculated automatically so any chosen colors remain readable.
▶ Interval Warning
When the chart interval is higher than 1 hour, most of the 24 hour buckets never receive a bar, leaving the rankings incomplete. The indicator displays a clear warning label on the chart that explains the limitation and recommends switching to 5m, 15m, 30m, or 1h, for example. The warning can be turned off once the restriction is understood and a clean chart is preferred.
Indicator

Indicator
