PureBytes Links
Trading Reference Links
|
How about this:
a1:=BBandTop( CLOSE, 10, S, 2 )-BBandBot( CLOSE, 10, S, 2 );
roc(a1,6,%)
or
topa1:=BBandTop( CLOSE, 10, S, 2 );
roc(topa1,6,%);
or
bota1:=BBandBot( CLOSE, 10, S, 2 );
roc(bota1,6,%);
Hope this helps,
Preston
--- In equismetastock@xxxxxxxxxxxxxxx, Manset <manset01@xxxx> wrote:
>
>
> Hi Preston,
>
> The upper and lower bands.
>
> I realize that sometimes mathematics are too "precise". That's why
it is
> difficult to calculate bands flatness (for instance, over 6
periods).
> So far, I have not succeed in doing it... :-[
>
> Thanks again for your valuable help,
> Regards,
> S4
>
>
>
> pumrysh a écrit :
>
> > S4,
> >
> > Sounds like you want the ROC of the bands. Problem is which band
> > would you like to use...upper...lower...or midband?
> >
> > Preston
> >
> >
> > --- In equismetastock@xxxxxxxxxxxxxxx, Manset <manset01@xxxx>
wrote:
> > >
> > > Hi Pumrysh,
> > >
> > > Thanks again for your help but this code deals with bands
squeeze
> > which
> > > a bit different of what I am looking for.
> > > I would like to detect bands flatness, no matter they are
tight or
> > > widened and I can assure you it is not that easy to find !
> > >
> > > Regards,
> > > S4
> > >
> > >
> > > pumrysh a écrit :
> > >
> > > > S4,
> > > >
> > > > Try this:
> > > >
> > > > a1:=BBandTop( CLOSE, 10, S, 2 )-BBandBot( CLOSE, 10, S, 2 );
> > > > (a1/mov(CLOSE,10,S))*100
> > > >
> > > > If this doesn't do what you want you may need to get off of
> > messenger
> > > > and go to the internet. Then go to the files section of the
> > group and
> > > > look for formula sites. There are a number of them listed.
Look
> > for
> > > > Bollinger Band Width% at the sites.
> > > >
> > > > Sorry, I don't see this as difficult or tricky.
> > > >
> > > > Preston
> > > >
> > > >
> > > > --- In equismetastock@xxxxxxxxxxxxxxx, Ghibbli <ghibbli@xxxx>
> > wrote:
> > > > >
> > > > > Hi Pumrysh,
> > > > >
> > > > > A really useful code, thanks.
> > > > >
> > > > > But actually, I would like to write an indicator that
detects
> > the
> > > > > flatness of the Bollinger Bands and it is quite tricky to
> > do !!!
> > > > >
> > > > > Any suggestion would be greatly appreciated,
> > > > > Tia
> > > > > S4
> > > > >
> > > > >
> > > > > pumrysh a écrit :
> > > > >
> > > > > > --- In equismetastock@xxxxxxxxxxxxxxx, "safdar_keb"
> > > > <safdar19@xxxx>
> > > > > > wrote:
> > > > > > >
> > > > > > > Hello to everyone
> > > > > > >
> > > > > > > Few days ago there was a discussion about how to find
out
> > > > > > securities
> > > > > > > who's Bollinger bands have come really close
> > > > > > > I have managed to write a formula which can find
exactly
> > this.
> > > > > > > The formula is very basic, but it works.
> > > > > > > =======================================================
> > > > > > >
> > > > > > > cola
> > > > > > > a1:=BBandTop( CLOSE, 10, S, 2 )-BBandBot( CLOSE, 10, S,
> > 2 );
> > > > > > > (a1/BBandTop( CLOSE, 10, S, 2 ))*100
> > > > > > > {finds the % difference between the two bands, the less
> > > > difference
> > > > > > > the better the probebility of a breakout}
> > > > > > >
> > > > > > > colb
> > > > > > > b2:=BBandTop( CLOSE, 10, S, 2 )-BBandBot( CLOSE, 10, S,
> > 2 );
> > > > > > > c2:=(b2/BBandTop( CLOSE, 10, S, 2 ))*100;
> > > > > > > BarsSince(c2>10)
> > > > > > > { Finds the no of days the security is moving the tight
> > band }
> > > > > > >
> > > > > > > filter
> > > > > > > cola<10
> > > > > > >
> > > > > > >
> > ==============================================================
> > > > > > > I have taken the bands to be "tight" if the difference
> > between
> > > > the
> > > > > > > upper band and lower band is 10% (value in cola)
> > > > > > > Filter can be reduced to anyone's liking.
> > > > > > > Like wise in colb "BarsSince(c2>10)" 10 can be reduced
to
> > any
> > > > lower
> > > > > > > number
> > > > > > >
> > > > > > > Safdar
> > > > > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > -------------------------------------------------------------
----
> > -------
> > > > YAHOO! GROUPS LINKS
> > > >
> > > > * Visit your group "equismetastock
> > > > <http://groups.yahoo.com/group/equismetastock>" on the
web.
> > > >
> > > > * To unsubscribe from this group, send an email to:
> > > > equismetastock-unsubscribe@xxxxxxxxxxxxxxx
> > > > <mailto:equismetastock-unsubscribe@xxxxxxxxxxxxxxx?
> > subject=Unsubscribe>
> > > >
> > > > * Your use of Yahoo! Groups is subject to the Yahoo!
Terms
> > of
> > > > Service <http://docs.yahoo.com/info/terms/>.
> > > >
> > > >
> > > > -------------------------------------------------------------
----
> > -------
> > > >
> > >
> >
> >
> >
> >
> >
> > -----------------------------------------------------------------
-------
> > YAHOO! GROUPS LINKS
> >
> > * Visit your group "equismetastock
> > <http://groups.yahoo.com/group/equismetastock>" on the web.
> >
> > * To unsubscribe from this group, send an email to:
> > equismetastock-unsubscribe@xxxxxxxxxxxxxxx
> > <mailto:equismetastock-unsubscribe@xxxxxxxxxxxxxxx?
subject=Unsubscribe>
> >
> > * Your use of Yahoo! Groups is subject to the Yahoo! Terms
of
> > Service <http://docs.yahoo.com/info/terms/>.
> >
> >
> > -----------------------------------------------------------------
-------
> >
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Try Online Currency Trading with GFT. Free 50K Demo. Trade
24 Hours. Commission-Free.
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/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/
|