All indicators

Custom Indices/baskets

By LuxAlgoJun 8, 2026

Custom Indices/baskets is an indicator on Vela, our next-generation charting platform, written in Pine Script®.

Static chart image

Custom Indices/baskets is the definitive clean builder for a custom index or basket: up to ten constituents aggregated into one synthetic series. Rebased Prices lets weights drift like a buy-and-hold portfolio; Compounded Returns re-applies the weights every bar like a continuously rebalanced basket, with equal, manual or liquidity weighting and optional currency conversion.

How to Trade the Custom Indices/baskets?

  • Symbol against basket: the comparison line treats the chart symbol exactly like the basket; crossings fire leading and lagging alerts.
  • Constituent spread: the member lines show whether a move is basket-wide or one ticker's story.
  • Level crosses: the alert level watches the synthetic scale; execution happens leg by leg at real quotes.

Custom Indices/baskets Settings

  • Construction (default Rebased Prices): rebased weighted average, or compounded weighted returns.
  • Base Value (default 100): the level every series is rebased to.
  • Weighting (default Manual): Equal, per-symbol weights, or Liquidity by traded value.
  • Liquidity Length (default 50): lookback for the traded-value average.
  • Basket Timeframe (default chart): sampling timeframe; daily closes tame mismatched sessions.
  • Currency Conversion (default None): converts every leg to one currency first.
  • Rebase Start (default First Available Bar) and Custom Start Date (default 01 Jan 2024): where each series begins.
  • Symbol 1 through Symbol 10, each with a weight (default 1): the constituents; empty slots are skipped.
  • Chart Symbol Comparison (default on): overlays the chart symbol, processed identically.
  • Alert Level (default 100, hidden by default): the cross-alert level.
  • Show Dashboard (default on): per-constituent weight, level and status.
  • Style inputs cover the line colors, constituent lines and the base gradient fill.

Frequently Asked Questions

Free to use

Run it on Vela. Go further with a paid plan.

  • Up to 500 Custom Alerts, with webhook automation
  • Up to 10× the chart history of Free
  • Orderflow lookback up to full history
  • More Quant usage to customize it, plus extra usage when you need it
  • Futures data alongside crypto, stocks, forex and commodities
See plans
Original indicatorBuilt in-house by LuxAlgo

Run it on Vela. Make it yours with Quant.

Open this indicator free on Vela, our next-generation charting platform. Then ask Quant, our coding agent built into Vela, to retune it or turn it into a backtested strategy of your own.