what is the difference between TradedInstrument and TradedInstrumentName keyword ? and when to use which one
what is the difference between TradedInstrument and TradedInstrumentName keyword ? and when to use which one
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:
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.
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.
Request received. Pick a time now, or close this and we'll call you to set one up.
The calendar didn't load here. Open the booking page ↗
Booked. The calendar invite is on its way to your email.
Tradetron's AI assistant — pricing, brokers, strategies, anything.
AI can make mistakes. Consider checking important information.
How good was it?
We store the question and the answer with your report so the team can audit it.