I did use to be a cobol programmer many many many years ago.
Hehe. Me too - it was the first language I learned that compiled into machine code. At the time, compared with the BBC Basic I had been using the speed of execution was breathtaking.
As a help, (I hope) I modified an old SCRIPT ( again, THIS IS A SCRIPT) to look at your system time and then tell you what your GMT SHIFT is.
Steve, I think this would answer your question better than the file you sent me to make into a function. In the mean time anyone can just put this script on their chart and get an instant answer about the shift hours.
__________________ There are no Gurus, only dead Buddhas; "If you meet the Buddha on the Road, Kill Him"
Cheers Scott. I have put a link to your post in post 1, so it will not get lost.
If you want to incorporate it as a function, just put the import info at the top of the script above your #property...
and then you could just change the start () into a void LocalGMT() function and declare a couple of variables to hold what is the the string variable com.
However, I personally feel, if a person cannot figure out what their shift is with this bit of help, they should not use this EA, and maybe need to seriously reconsider their trading level and education. I mean this is not Rocket Science.
I don't mean to offend, just pointing out the obvious.
__________________ There are no Gurus, only dead Buddhas; "If you meet the Buddha on the Road, Kill Him"
Anybody know where we download the latest version of FFCal? We all have a version, I am sure, but don't know whether it is the latest.
Added the news and public hols filter - haven't posted it in post 1 yet, but here it is if people want to play with the settings to test them out.
Don't use this version of the robot on a trading account; it has a call to start() to force it to display information that might have unpredictable effects.