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

Re: [amibroker] Re: Multiple time frames



PureBytes Links

Trading Reference Links

Hi, Steph,

after looking at your code, where or how does Hw and Lw come into the
formula, You seem to be ploting the close and the value of Cw ( which
seems to be the value of the( close , -1) , when B < ref (b,-1).

Thank you
Anthony

nenapacwanfr wrote:

> HI,
> Do you think this could do the job
>
> steph
>
> /***Weekly Bars***/
> B=DayOfWeek();
> G=BarsSince(B<Ref(B,-1));
>
> Hw=ValueWhen(B<Ref(B,-1),HHV(Ref(H,-1) ,Ref(G,-1)+1));
> Lw=ValueWhen(B<Ref(B,-1),LLV(Ref(L,-1) ,Ref(G,-1)+1));
> Cw=ValueWhen(B<Ref(B,-1),Ref(Close,-1));
>
> Graph0=Close;
> Graph0Color=1 ;
> Graph0Style=64;
>
> Graph1=CW;
> Graph1Color= 5 ;
> Graph1Style=1;
>
>
> I am currently working with some code with the WEEKDAY function to
> > determine the previous week start and end and proceed from there.
> > Thanks for the code though. Will come in handy for sure.
> >
>
>
>
> Yahoo! Groups Sponsor
ADVERTISEMENT


>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.