Using the following example from the NinjaTrader help guide how can I modify the code in RED so that the data is not fixed and is always the current date.
// Check that its past 9:45 AM
if (ToTime(Time[0]) >= ToTime(9, 45, 00))
{
// Calculate the bars ago value for the 9 AM bar for the current day
int barsAgo = CurrentBar - Bars.GetBar(new DateTime([COLOR=Red]2006, 12, 18[/COLOR], 9, 0, 0));
// Print out the 9 AM bar closing price
Print("The close price on the 9 AM bar was: " + Close[barsAgo].ToString());
}
suprsnipes

Comment