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

[amibroker] Re: Bolinger Bands, settings



PureBytes Links

Trading Reference Links


John

What took u so long to respond?..........just kidding!!!!...many 
thanks...how about %B..defined as 

%b =(close-lower bollinger band)/ (upper bollinger band-lower 
bollinger band)

GP





--- In amibroker@xxxxxxxxxxxxxxx, "John" <jea55129@xxxx> wrote:
> 
> GP,
> 
> Not sure if you can do that in Perferences. It looks like you can 
by 
> using the short term ma. But here is a quick and easy afl.
> 
> Length= 10;
> StdDevUp= 2;
> UpBand=BBandTop(Close,Length,StdDevUp);
> 
> StdDevDn= 2;
> DnBand=BBandBot(Close,Length,StdDevDn);
> Buy=C>UpBand;
> Sell=Close < MA(Close,Length);
> Short=Close < DnBand;
> Cover=Close > MA(Close,Length);
> Buy=ExRem(Buy,Sell);
> Sell=ExRem(Sell,Buy);
> Short=ExRem(Short,Cover);
> Cover=ExRem(Cover,Short);
> Plot(C,"",1,64);
> Plot(UpBand,"",2,1);
> Plot(DnBand,"",3,1); 
> PlotShapes(IIf(Buy,shapeUpArrow,shapeNone) ,colorBrightGreen,0);
> PlotShapes(IIf(Sell,shapeDownArrow,shapeNone),colorRed,0);
> PlotShapes(IIf(Short,shapeDownArrow,shapeNone),colorOrange,0);
> PlotShapes(IIf(Cover,shapeUpArrow,shapeNone) ,colorBlue,0);
> 
> Enjoy!
> 
> John
> - In amibroker@xxxxxxxxxxxxxxx, "George Poulos" <globalgreek@xxxx> 
> wrote:
> > 
> > I am wondering how to set the standard deviation value of the 
> > Bolinger Bands. For example 10 period moving average(value of 
the 
> > short term m/a in the preferences?) and standard deviation of 2??
> > 
> > TIA
> > GP





------------------------ Yahoo! Groups Sponsor --------------------~--> 
$4.98 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/Q7_YsB/neXJAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/