PureBytes Links
Trading Reference Links
|
Eric, this code is even more versatile & useful:
=================
Nth event display
=================
---8<------------
nth:=Input("Nth event",0,100,2);
plot:=Input("plot: [1] Event, [2] Bar count",1,2,2);
event:=BigWhite();
eventCount:=LastValue(Cum(event))-Cum(event)+1;
nthEvent:=event AND Int(eventCount/nth)=eventCount/nth;
eventBars:=BarsSince(nthEvent);
If(plot=1,nthEvent,eventBars)
---8<------------
jose '-)
--- In equismetastock@xxxxxxxxxxxxxxx, "Jose" <josesilva22@xxxx>
wrote:
>
> ---8<-----------------
>
> bck:=Input("count bars back to Nth BigWhite",
> 0,100,1);
> BigWhitePrev:=BigWhite() AND
> Cum(BigWhite())=LastValue(Cum(BigWhite()))-bck;
> BarsSince(BigWhitePrev)
>
> ---8<-----------------
>
> jose '-)
>
>
> --- In equismetastock@xxxxxxxxxxxxxxx, chichungchoi <no_reply@xxxx>
> wrote:
> > Does anyone know how to solve the following problem?
> > please helppppp
> >
> > I found difficult on determine the number of periods for the
> > second BigWhite.
> >
> > Such as
> > BigWhite BigWhite Today
> > 5 Apr, 2004 10 Apr, 2004 15 Apr, 2004
> >
> > Determining the number of periods for the first BigWhite:
> > 5 = BarsSince(BigWhite())
> >
> > Determining the number of periods for the second past BigWhite:
> >
> > 10=BarsSince(???)
> >
> > Does anyone have any idea? Please help
> > Thank you
> > Eric
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/BefplB/TM
---------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/equismetastock/
<*> To unsubscribe from this group, send an email to:
equismetastock-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|