GreenTrade
12-12-2009, 09:04 AM
I would like to be able to call the bar interval in an indicator, i.e. if chart == 5 minute. How do I call this in NinjaScript. Thank you!
GT
NinjaTrader_RyanM
12-12-2009, 10:49 AM
Hello GreenTrade,
Thank you for your post.
For this you can use the Instrument() class - http://www.ninjatrader-support.com/HelpGuideV6/InstrumentClass.html (http://www.ninjatrader-support.com/HelpGuideV6/InstrumentClass.html) and BarsPeriod - http://www.ninjatrader-support.com/HelpGuideV6/BarsPeriod.html (http://www.ninjatrader-support.com/HelpGuideV6/BarsPeriod.html)