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

Re: Recognising a new month starting



PureBytes Links

Trading Reference Links

if you are looking to know as of the end of yesterday's bar but as of today
in real time that today is new month how about...

if lastbaronchart and  month(currentdate) <> month(d)

Chris

----- Original Message ----- 
From: "Adrian Pitt" <apitt@xxxxxxxxxxxxx>
To: "'Bob Fulks'" <bfulks@xxxxxxxxxxxx>; <omega-list@xxxxxxxxxx>
Sent: Thursday, January 06, 2005 5:22 AM
Subject: RE: Recognising a new month starting


> Hi Bob,
>
> Thanks for the reply, but I think you mean if DOM < DOM[1] don't you?
> This might work for backtesting but it won't lead for example to being
> able to highlight in a Paintbar study that there is a trade today (being
> the first trading day of the month). The problem is that the DOM is
> referencing the last bar on the chart isn't it, rather than looking at
> the date you are running the study. And you can't see to reference a
> forward date.
>
> Adrian
>