Thanks
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Instrument name
Collapse
X
-
Hello pman777,
Thank you for the post.
You can access the Instrument, along with the MasterInstrument from a script using the Instrument object.
The Instrument object would be the instrument that is selected whereas the Instrument.MasterInstrument is the main definition of that instrument (NQ). For Futures to include the expiry, you want the Instrument.FullName.
Code:Print(Instrument.FullName);
JesseNinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by mangel2000, Today, 01:30 AM
|
0 responses
1 view
0 likes
|
Last Post
by mangel2000
Today, 01:30 AM
|
||
Started by Doxxxx, Today, 01:24 AM
|
0 responses
3 views
0 likes
|
Last Post
by Doxxxx
Today, 01:24 AM
|
||
Started by ezekilany, Today, 01:10 AM
|
0 responses
3 views
0 likes
|
Last Post
by ezekilany
Today, 01:10 AM
|
||
Started by usjavaburn, Today, 12:59 AM
|
0 responses
3 views
0 likes
|
Last Post
by usjavaburn
Today, 12:59 AM
|
||
Started by heatherjmarshalls, Today, 12:56 AM
|
0 responses
2 views
0 likes
|
Last Post Today, 12:56 AM |
Comment