CATEGORY

Forex & Macro nodes

37 Forex & Macro building blocks in the Algovex node library. Each is a node you can drop on the visual canvas, connect into a strategy, backtest and export. No code required.

  • COT Commercial Net

    Commercial (hedger) net position with percentile rank over lookback. Commercials are physical-market participants who hedge underlying exposure — historically contrarian at extremes. Percentile 90+ = extreme bullish, 10- = extreme bearish.

  • COT Concentration

    Top-4 and top-8 trader concentration % of total long/short open interest. High concentration = market dominated by few large players — squeeze risk, potential extreme volatility.

  • COT Dealer / Intermediary

    TFF-only (Forex, Indexes, Crypto): exposes 4-bucket split — Dealers (sell-side market makers), Asset Managers (institutional real money), Leveraged Funds (hedge funds / CTAs), Other Reportables. Tracks "buy-side alignment" when AM + LF agree.

  • COT Index (Williams)

    Larry Williams COT Index — percentile rank of net position over a lookback window (default 156 weeks = 3 years). Commercial extremes are contrarian indicators: > 80 = bullish setup, < 20 = bearish setup.

  • COT Net Position

    Weekly CFTC Commitment of Traders net long/short by trader category with week-over-week change tracking. Supports TFF (FX/indexes/crypto) and Disaggregated (commodities) report types. Configurable primary category, position thresholds, and % of OI triggers.

  • COT Open Interest Change

    Week-over-week change in total Open Interest with z-score over lookback. Rising OI confirms trend (new positions entering); falling OI signals position closing / capitulation.

  • Event: Core PCE (MoM)

    Fires on the US Core PCE Price Index (MoM) release.

  • Event: CPI (YoY)

    Fires on the US CPI (YoY) release with real forecast/actual/surprise.

  • Event: Economic (generic)

    Generic economic-event node. Set Event Key to target a specific release (e.g. us_nfp), or leave blank for any high-impact event.

  • Event: FOMC Rate Decision

    Fires on the US Fed funds rate decision.

  • Event: GDP (QoQ)

    Fires on the US Advance GDP (QoQ) release.

  • Event: ISM Manufacturing PMI

    Fires on the US ISM Manufacturing PMI release.

  • Event: Non-Farm Payrolls (NFP)

    Fires on the US Non-Farm Payrolls release with real forecast/actual/surprise.

  • Event: Retail Sales

    Fires on the US Core Retail Sales (MoM) release.

  • Event: Unemployment Rate

    Fires on the US Unemployment Rate release.

  • Forex ADR

    Average Daily Range — computes the average of (high - low) over a lookback period with current range ratio.

  • Forex Pip Calculator

    Calculates price change in pips from an entry price — auto-detects JPY pairs for correct pip size.

  • Forex Seasonality

    Detects seasonal patterns based on month and day-of-week — computes average returns for the current month and day.

  • Forex Session

    Tracks every Asian, London and New York session as a persistent, color-coded box across history, with forward range high/low level lines per session (sweep references). DST-aware: EACH session window is anchored to its OWN market timezone (Asian → Asia/Tokyo, London → Europe/London, NY → America/New_York) and expressed in that market's local time, so Tokyo (no DST) never drifts vs London/NY (DST). Triggers on session open/close or Asian-range / prev-session breaks.

  • Forex Session Overlap

    Tracks the two high-liquidity forex session overlaps (London-NY, Asian-London) as persistent, color-coded boxes across history. DST-aware: overlaps are DERIVED from per-session membership, with EACH session anchored to its OWN market timezone (Asian → Asia/Tokyo, London → Europe/London, NY → America/New_York) and its HH:MM window in that market's local time. An overlap spanning two markets can't be one fixed window across DST, so it is computed from the two sessions. Triggers on the bar an overlap begins / ends, or while inside one.

  • Forex Strength

    Real USD-hub multi-currency strength meter. Over a lookback window it reads the USD major-pair closes (EURUSD, GBPUSD, USDJPY, USDCHF, AUDUSD, and optionally USDCAD + NZDUSD) from auxiliary FX data and derives a relative strength for up to eight currencies — EUR, GBP, AUD, JPY, CHF, CAD, NZD and USD — then ranks the available ones and reports the charted pair's base vs quote strength spread. CAD/NZD are included only when their aux pairs are ingested (graceful degradation to the 6-currency meter otherwise).

  • Intermarket Beta-Weighted

    Rolling beta of the charted asset versus a reference instrument (S&P 500 / DXY / Gold): cov(asset returns, reference returns) ÷ var(reference returns) over the lookback. Beta > 1 = the asset amplifies the reference's moves, ~1 = tracks it, ~0 = decoupled, < 0 = inverse.

  • Intermarket Correlation

    Rolling Pearson correlation between the charted asset's returns and a reference instrument (S&P 500, US Dollar Index, or Gold) from aux data. Classifies the regime as correlated / decorrelated / inverse with extreme bands.

  • Intermarket Divergence (SMT)

    Smart-Money-Technique divergence between the charted asset and a reference instrument. Compares SWING structure: a BULLISH divergence is the asset printing a lower-low while the reference prints a higher-low (the asset refuses to confirm the reference's weakness → hidden strength); a BEARISH divergence is the asset printing a higher-high while the reference prints a lower-high (→ hidden weakness). The diverging swings are joined by a line on BOTH panes (asset price + the reference line) so the divergence is visible, exactly like ict_smt. Reference is either a curated quick-pick (S&P 500 / DXY / Gold / FX majors) OR any symbol via referenceSymbol (e.g. ETHUSDT, EURUSD — its real candles are fetched).

  • Intermarket Ratio

    Relative-value ratio of the charted asset to a reference instrument (S&P 500 / DXY / Gold): asset price ÷ reference price, plotted with its SMA. Ratio above its SMA = the asset is outperforming the reference; below = underperforming. Extreme percentile bands flag stretched out/under-performance.

  • Intermarket Relative Strength

    Relative strength of the charted asset vs a reference instrument (S&P 500 / DXY / Gold): the asset's % return minus the reference's % return over the lookback. Above 0 = outperforming the reference over the window; below 0 = underperforming. Percentile bands flag leadership / laggard extremes.

  • Intermarket Rotation

    Ranks the charted asset's relative strength (return minus reference return over the lookback) against the whole reference basket — S&P 500, US Dollar (DXY) and Gold — to show which market it is leading and which it is lagging. Plots one relative-strength line per reference; a reference is included only when its own data actually moved (so a stale/flat series is excluded).

  • Intermarket Spread

    Standardised spread between the charted asset and a reference instrument (S&P 500 / DXY / Gold): the z-score of the asset/reference ratio over the lookback. z near 0 = the pair is at its typical relationship; large |z| = the asset is stretched vs the reference (a mean-reversion setup).

  • Macro DXY

    FRED Broad Trade-Weighted US Dollar Index (DTWEXBGS) — NOT the ICE DXY. Scale ~100-128. Classifies into strong (>128) / neutral / weak (<115) zones with extreme bands (133 / 110) and a 120 midline. Requires FRED API key and scripts/fetch-fred.mjs.

  • Macro Gold Correlation

    Pearson correlation between asset returns and London Gold Fixing Price from FRED. Classifies correlation regime (correlated/decorrelated/inverse). Requires FRED API key and scripts/fetch-fred.mjs.

  • Macro Inflation

    CPI Year-over-Year percentage change from FRED. Classifies inflation environment (high/inflationary/stable/deflationary). Requires FRED API key and scripts/fetch-fred.mjs.

  • Macro Interest Rate

    Federal Funds Effective Rate from FRED. Classifies rate environment (tightening/easing/neutral) and level (high/moderate/low/zero). Requires FRED API key and scripts/fetch-fred.mjs.

  • Macro Liquidity

    M2 Money Supply from FRED. Classifies liquidity condition (abundant/normal/tight) with trend detection. Requires FRED API key and scripts/fetch-fred.mjs.

  • Macro Risk Appetite

    Risk appetite score derived from CBOE VIX via FRED. 0-100 scale: VIX 12→100 (max risk-on), VIX 62→0 (max risk-off). Requires FRED API key and scripts/fetch-fred.mjs.

  • Macro S&P500 Correlation

    Pearson correlation between asset returns and S&P 500 from FRED. Classifies coupling regime (coupled/decoupled/inverse). Requires FRED API key and scripts/fetch-fred.mjs.

  • Macro Treasury Spread

    10Y-2Y Treasury yield spread from FRED. Detects yield curve inversion (recession signal) and normalization. Requires FRED API key and scripts/fetch-fred.mjs.

  • Macro Yield Curve

    10Y-3M Treasury yield spread from FRED. Detects yield curve shape (normal/flat/inverted) with steepening/flattening trend. Requires FRED API key and scripts/fetch-fred.mjs.

Explore other categories