DayOfWeek() Alternative?

 

is there a alternative i can use instead of DayOfWeek()?

i have problems in backtesting with condition:

if (DayOfWeek() ==5) because gmt and dst shift, i need a condition to open exactly every friday at 23:58 ...

is it possible to use the day of week from local time ?

 
LocalTime isn't going to get you very far backtesting . . .