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

RE: Re: Recognising a new month starting



PureBytes Links

Trading Reference Links

Hi Riccardo,
 
Same problem as I mentioned to Bob....ok for backtesting, but doesn't
work for a Paintbar showing in advance that the nxt bar wil be a new
trading month.  
 
Adrian

-----Original Message-----
From: riccardo@xxxxxxxxxxxxxxxxxxxxxx
[mailto:riccardo@xxxxxxxxxxxxxxxxxxxxxx] 
Sent: Thursday, 6 January 2005 3:13 AM
To: Bob Fulks; Adrian Pitt; omega-list@xxxxxxxxxx
Subject: Re: Re: Recognising a new month starting



I believe this code will see the change of month on the second trading
day (because 1 is not greater than 31) so I would rather look at the
month per se
NM = month(date);
if NM <> NM[1] then begin...

Take care
Riccardo Ronco - FBR London

 
> 
> Var: DOM(0);
> 
> DOM = DayOfMonth(Date);
> 
> if DOM > DOM[1] then begin
> ...
> end;
> 
> 
> Bob Fulks 
> 
> 



========================================================================
=========================== 
This e-mail may contain confidential and/or privileged information. If
you are not the intended recipient (or have received this e-mail in
error) please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden. 





Whatever you Wanadoo

This email has been checked for most known viruses - find out more here