PureBytes Links
Trading Reference Links
|
Hey Chris,
I think you might have it. It only highlights the last bar but that's
ok, as I can add what I had previously for historical bars, and what I
had previsouly was fine for backtesting. Its amazing how such a simple
solution can be a quandry to think of. I'm sure many of the other
helpers would have picked your suggestion as well, but they were
probably trying to mark every prior instance on the chart as I was.
Your input and solution is very much appreciated. I do have one
question though. Without 'lastbaronchart' it doesn't work properly. Why
does putting the True/False function in the formula resolve the issue?
Isn't the lastbaronchart always going to be true?
Cheers,
Adrian
> -----Original Message-----
> From: Chris Cheatham [mailto:chris@xxxxxxxxxxxxxxxxxx]
> Sent: Saturday, 8 January 2005 12:38 AM
> To: Adrian Pitt; omega-list@xxxxxxxxxx
> Subject: Re: Recognising a new month starting
>
>
> 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
> >
>
|