PureBytes Links
Trading Reference Links
|
Check out the attached code, by setting the ( Pds = ) you can display
the highest high and lowest low of the period. It also displays in the
tilte bar, the close, the high and the low.
Does this help.
Anthony
Geo Singleman wrote:
>
> --- Anthony Faragasso <ajf1111@xxxx> wrote:
> > Hi, Geo,
> >
> > Do you have a sample of the code you have started, then we as a
> group
> > can help expand on it, so the results desired can be achieved.
> >
>
> I am basically trying to develop a trend study based on previous week
> hi/lo. I am still in data gathering phase so I don't have any clues on
>
> end results or how the study will develop. I am just writing code
> snippets (1) to understand the AFL constructs, usage etc. and (2) to
> plot interim results of the research. Steph's code does precisely what
>
> I wanted although I still have not fully understood how it works. I
> wanted to plot the previous week's H & L aligned with this week's
> daily
> bars in a stair step style.
>
> When I get far along with this and it makes some sense, I will post it
>
> here for further help/development/ideas etc. Thanks for the
> suggestion.
>
> Geo
>
>
> __________________________________________________
> Do You Yahoo!?
> Send your FREE holiday greetings online!
> http://greetings.yahoo.com
>
> Yahoo! Groups Sponsor
ADVERTISEMENT
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
/* New High or New Low exploration */
/* Coded by Anthony Faragasso*/
/***************************/
pds=5;
/***************************/
Cond1= HHV(H,pds)==H ;
Cond2= LLV(L,pds)==L ;
Cond3= IIf(Cond1 > 0,H,0);
Cond4= IIf(Cond2 > 0,L,0);
Cond5= HHV(H,pds);
Cond6= LLV(L,pds);
Plot(C,"Close",4,64);
Plot(Cond5,"High",5,512);
Plot(Cond6,"Low",6,512);
|