i have a script restricting order entries within a time window. i am using Time[0].Hour to get the hour.
this works fine in the trend for history and real time orders, however, when running in Strategy ANalyzer, it is not placing any orders so analyzer comes with zero results.
do i have to use a different time function to get this strategy to work in the analyzer?
i ma using NT8
this is code
[CODE]if (Time[0].Hour >= StartHour && Time[0].Hour < EndHour)
{TradingWindowEnabled = 1;} else {TradingWindowEnabled = 0;}[/CODE]

Comment