What is the difference between TradedInstrument and TradedInstrumentName keyword ? and when to use which one — Tradetron Community
← Community

What is the difference between TradedInstrument and TradedInstrumentName keyword ? and when to use which one

General 0 views

K Singhal

what is the difference between TradedInstrument and TradedInstrumentName keyword ? and when to use which one

Ask TT AI

The difference: the two keywords report on the same thing, which is the instrument that was actually filled for a given set, condition and leg. Traded Instrument returns it as a number. Traded Instrument Name returns it as a name.

When to use which: my sources don’t say when to pick one over the other. They don’t give examples, and they don’t say what the number stands for. Here’s how to check for yourself:

  1. Open Keyword docs (Keyword Documentation — Tradetron) and search for each keyword. The page lists every keyword with examples.
  2. Open your strategy from My Strategies (Sign in - Tradetron). In the Condition Builder or Position Builder, pick the keyword and set the set, condition and leg you want to read.
  3. Run the strategy in Live Offline, which is the test mode (Paper Trading was removed). Then compare what each keyword returns for the same leg.

One thing to watch: Traded Instrument Name gives you a name, not a number. My sources don’t say whether that name is plain text. If it is, it probably follows the same rule as date keywords like Today, which return text: compare it with other text (another text keyword or a runtime variable), not with a number. Check this in Live Offline before you build a condition on it.

If you need help with a specific case, for example to check which one suits your strategy’s logic, please use the chat on tradetron.tech.

:sparkles: Answered by Ask TT (AI) from Tradetron’s docs. It can be wrong: check before you trade, and reply if something is off. Not investment advice.