PDA

View Full Version : Retrieving Instrument information


jonmoron
03-30-2009, 05:29 PM
Hi,

I need to query indicator information in the Initialize function.
I tried 'Instrument.FullName', however it is always null.

Is there a way to do this? Is there a better way to query this sort of information (contract name, expiry, exchange, etc, etc, etc).

many thanks

NinjaTrader_Bertrand
03-31-2009, 06:26 AM
Did you add a null reference check to your code when calling it in the Initialize() ? - http://www.ninjatrader-support.com/HelpGuideV6/InstrumentFullName.html

jonmoron
03-31-2009, 08:59 AM
thanks! Is there another class or object I can query for more detailed instrument/contract information?

thanks!

NinjaTrader_Bertrand
03-31-2009, 10:16 AM
You're welcome - you can check the Instrument Class for this - http://www.ninjatrader-support.com/HelpGuideV6/InstrumentClass.html