I've had a problem for quite some time, and that is with getting the FX data that I have to be set to Universal time.
My machine runs on CST, Chicago or UTC-6 hours. Changing my machine time to GMT would really be inconvenient.
What I am wanting is to use my script, with my session manager to be able to have a common start time. I am wanting that start time to be around the start of Asia, or 1600 Central Standard time, but this jumps across two sessions. See picture attached labeled, "Date Problem."
Currently my session template looks like the pic attached labeled "Session Template."
I have tried several things.
1) Initially, I would use "Bars.FirstBarOfSession." I would initialize the date to a string:
currentDate = Time[0].AddDays(1);
2)Next I would use:
currentDate = Time[0].ToUniversalTime();
Is there a simple way of solving this issue that I am unaware of?
Comment