PureBytes Links
Trading Reference Links
|
You are right Dimitris, please forget my previous post
!
One solution might be:
graph1 = iif( dayofweek()>=ref(dayofweek(),1),
C, iif(
dayofweek()>=ref(dayofweek(),2), ref(C,1),
iif(
dayofweek()>=ref(dayofweek(),3), ref(C,2),
iif(
dayofweek()>=ref(dayofweek(),4), ref(C,3), ref(C,4) ))));
But, Like you say, it's looking into the
future and you shouldn't use the value for system test !
Also, I might be wrong again :) so jonhny double check to see
if it's what you want !
jon.
----- Original Message -----
<BLOCKQUOTE
>
<DIV
>From:
DIMITRIS
TSOKAKIS
To: <A title=amibroker@xxxxxxxxxx
href="">amibroker@xxxxxxxxxxxxxxx
Sent: Tuesday, September 11, 2001 12:28
PM
Subject: [amibroker] Re: Weekly Close On
Daily Chart
If you examine a weekly chart you will see thatthe
Close for a week is the close of Friday, (as theOpen is the open of
Monday)So, in a daily graph for this week, everyday, fromMonday till
next Friday, the value of C is the closeof next Friday, a value that is
unknown now.Isn´t it?Dimitris Tsokakis--- In <A
href="">amibroker@xxxx..., "jonf" <jonf_ca@xxxx>
wrote:> I think this will do:> > graph0 = C;>
graph1 = valuewhen(dayofweek() < ref(dayofweek(), -1), C); >
> Best > Jon.> ----- Original Message -----
> From: kailash pareek > To:
amibroker@xxxx > Sent: Tuesday, September 11, 2001 7:46
AM> Subject: [amibroker] Weekly Close On Daily
Chart> > > Hi,> > I
want to plot weekly closing on daily bar graph, any>
> help?> > johnny>
> >
__________________________________________________> DoYou
Yahoo!?> Get email alerts & NEW webcam video instant
messaging with Yahoo! Messenger> <A
href="">http://im.yahoo.com>
> Yahoo! Groups Sponsor
>
> >
> Your use of Yahoo! Groups is subject to the Yahoo! Terms
of Service.Your
use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
|