I am from Europe and I have to trade US futures one hour earlier at these times. I'am working on my automated trading strategy and I need to correct the times by a script and don't know how.
I'd like to make a test like this:
if (today localtime is summertime
&& today US time is summertime)
{ trade as usual }
else { trade one hour earlier }
Is there any C# function to do this?
Comment