PDA

View Full Version : Indicator value at specific time


Jeremytang
08-24-2010, 08:47 AM
Hi, how do I get an indicator's value at a specific DateTime?

NinjaTrader_RyanM
08-24-2010, 08:50 AM
Hello Jeremytang,

You use GetBar() (http://www.ninjatrader-support.com/HelpGuideV6/GetBar.html)to get the bars ago of a specified Date / Time. This reference sample helps with this:
Indicator: Getting indicator values from a specified time (http://www.ninjatrader.com/support/forum/showthread.php?t=19176)