I'm trying to open a position in different futures contracts with the Strategy Builder.
I'm using the NinjaTrader Continuum Data feed, and I'm not sure if this is related to my feed or to my code.
The strategy is not producing any entries. Without filtering for time, it does produce entries on Thursdays and exits on Fridays.
My final goal is to place a trade in the evening hours of Thursday and exit in the evening hours of Friday.
Here's my code:
// Set 1
if ((Times[0][0].DayOfWeek == DayOfWeek.Wednesday)
&& (Times[0][0].TimeOfDay > new TimeSpan(15, 0, 0))
&& (Times[0][0].TimeOfDay < new TimeSpan(15, 30, 0)))
{
EnterLong(Convert.ToInt32(DefaultQuantity), "");
}
// Set 2
if (Times[0][0].DayOfWeek == DayOfWeek.Thursday)
{
ExitLong(Convert.ToInt32(DefaultQuantity), "", "");
}

Comment