Indicator / Start here

Match CFD and exchange symbols.

Match a broker CFD ticker to its exchange symbol, then share that match with compatible indicators.

SVKO CFD Symbol MapperStocksShared setupOpen source · MPL-2.0
SYMBOL CONNECTIONILLUSTRATIVE
ONE PAIR. TWO CONNECTED INPUTS.
CFD chartTRADENATION:NVDA.EX
Underlying shareNASDAQ:NVDA
Receiving indicator
1st codeMap: 1st code
2nd codeMap: 2nd code
Connect once. Keep Map on this chart.
Illustrative mockup, not actual product outputReal capture needed: Show the mapping pair and both receiver inputs connected to the same Map instance. Include the chart symbol.

Why I built it

A broker CFD ticker and its underlying share have different identities. Repeating those pairs in every indicator makes a small change unnecessarily repetitive. Mapper gives compatible indicators a shared place to find the counterpart.

How it solves the problem

Add Map once to the chart, configure the pair and connect both receiver inputs. It sends the symbol identity through two hidden plots. After setup, Map looks up the current chart symbol automatically, and the receiving tool requests the data it needs. Mapper itself draws nothing and fetches no price or volume.

TRADENATION:NVDA.EX = NASDAQ:NVDA
IG:AAPL = NASDAQ:AAPL

Custom pairs take priority over the built in Trade Nation map. On an eligible broker chart, the lookup goes from CFD to native symbol. On a native chart, it returns the first matching CFD counterpart.

When do I need it?

Use Mapper when Info, Real Volume or Levels receives its two code inputs. Keep it on that chart after the initial connection. You do not need it when Info or Levels has a suitable local mapping, or Real Volume has an explicit formula. Those settings take priority.

Supported symbols and mapping limits

The source recognises IG, Trade Nation and Trade Nation SB prefixes. This is not a promise that every instrument has a built in pair. Unresolved mappings send zero and receivers remain empty where appropriate.

The transport accepts uppercase letters, digits, -, :, ., and _, up to 18 encoded characters, with compact Trade Nation prefixes. It does not transport !. Use the receiver’s direct mapping or volume formula for continuous futures such as CME_MINI:NQ1!.

Credits

Original work by SVKO. Mozilla Public License 2.0, as recorded in the indicator documentation.

GET STARTED

Add it to TradingView.

Set up on desktop for the workflow documented here. TradingView mobile can render Pine indicators, but the author has not reviewed or tested their mobile output. You can read these guides and browse the source on a phone.

  1. Add Symbol Mapper to the same TradingView chart as the receiving indicator.
  2. Check the symbol pair. Custom mappings take priority over the built in Trade Nation map.
  3. In the receiver, connect 1st code to Map: 1st code and 2nd code to Map: 2nd code from the same instance.
  4. Leave Map on the chart while the receiver uses these inputs.

The source copy is also available on GitHub. Publication versions can differ; review the source before using a local version.

OPEN SOURCE / MPL-2.0

Source code and contributions

Use the source to understand the tool, report a problem or propose a focused change. Keep its licence and existing notices.