[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Forex referenceing prior days OHLC-code help needed.



PureBytes Links

Trading Reference Links

Hi Steve,

Please see my other post for a somewhat different explanation.

We, my partner and I, have encountered the same kinds of problems that
you are dealing with.  We have found that by changing the computer clock
to GMT and displaying the data without an offset from GMT it is much
much easier to deal with TS commands based on date/time.  Talking about
and dealing with when is it today and when is it yesterday was just to
confusing for us.  We eliminated the confusion by going to GMT time.

We also use a DLL that does 'get' computer time in hr:min:sec - in one
application when an event happens we do a one time look at the computer
time to establish a base time and then look at the computer time on each
subsequent tick and compare the times - when a certain amount of seconds
has past an action takes place.  I cannot imagine trying to make this
work within two different time frames - I suppose it could be done but
I'm not going to do it.  It was bad enough coding the possibility that
the start action could take place at 23:59:50 and that the subsequent
action needs to take place at 00:00:20. 

James has a very different and interesting approach to the problem that
he solved with some new functions.  These may work better for you.  I
definitely would like to see the functions that he has made.

Larry

sptrader wrote:
> 
> Larry- HOW do you set the time to GMT? (you set the COMPUTER to GMT ? or TS
> ?)
> Steve
> ----- Original Message -----
> From: "Larry" <lameyering@xxxxxxxxxxxxx>
> To: <omega-list@xxxxxxxxxx>
> Sent: Tuesday, April 04, 2006 8:14 PM
> Subject: Re: Forex referenceing prior days OHLC-code help needed.
> 
> > Hi,
> >
> > It looks like the function uses "date" and "date[x]" which is causing TS
> > to look at the computer date - so if you set your computer time to GMT
> > it should work right.
> >
> > However that may not be a good answer for you - you could try to re-code
> > the function to do what you want it to do.  To use "time" and "date"
> > rather then just "date".  You know the computer time and dates you want
> > the array to use - you would probably have to give up being able to go
> > back in time more then one day - that seems to rather involved if you
> > needed to do that.
> >
> > I do trade the Forex however I use a computer that does nothing else but
> > trade so I do set its time to GMT.
> >
> > Larry
> >
> > sptrader wrote:
> >>
> >> I need to reference the previous days OHLC  in the Forex
> >> market (Euro/USD) but the built in HIGHD(1) function, for example, refers
> >> to
> >> midnight
> >> local time for the day change. How can I use midnight GMT instead (6
> >> hours ahead)?   Is there a way to re-code HIGHD(1) for GMT time ?
> >> I'm sure other Forex traders using TS would have run into this problem,
> >> so I
> >> was hoping I wouldn't have to re-invent the wheel.
> >> Thanks in advance,
> >> Steve
> >