PureBytes Links
Trading Reference Links
|
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
>
SPONSORED LINKS
YAHOO! GROUPS LINKS
|
|