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

[amibroker] Re: Bolinger Bands, settings



PureBytes Links

Trading Reference Links


George,

I changed the formula around so you can adjust the parameters

Length= Param("Length",10,2,30,2);
StdDevUp= Param("Stdev",2,1,20,0.5);
UpBand=BBandTop(H,Length,StdDevUp);

//StdDevDn= 2;
DnBand=BBandBot(L,Length,StdDevUp);


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);


I don't do BB's. Not sure what you are asking about with the %b?

Happy Holidays!

John

--- In amibroker@xxxxxxxxxxxxxxx, "George Poulos" <globalgreek@xxxx> 
wrote:
> 
> Do I need to create a system to get a parameters? 
> 
> 
> --- In amibroker@xxxxxxxxxxxxxxx, sjaak haasnoot 
> <sjaakhaasnoot@xxxx> wrote:
> > How about right click on the pane and Parameters?
> >   ----- Original Message ----- 
> >   From: George Poulos 
> >   To: amibroker@xxxxxxxxxxxxxxx 
> >   Sent: Thursday, December 16, 2004 4:21 PM
> >   Subject: [amibroker] Re: Bolinger Bands, settings
> > 
> > 
> > 
> >   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
> > 
> > 
> > 
> > 
> > 
> >   Check AmiBroker web page at:
> >   http://www.amibroker.com/
> > 
> >   Check group FAQ at: 
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> > 
> > 
> >         Yahoo! Groups Sponsor 
> >               ADVERTISEMENT
> >              
> >        
> >        
> > 
> > 
> > ------------------------------------------------------------------
-
> -----------
> >   Yahoo! Groups Links
> > 
> >     a.. To visit your group on the web, go to:
> >     http://groups.yahoo.com/group/amibroker/
> >       
> >     b.. To unsubscribe from this group, send an email to:
> >     amibroker-unsubscribe@xxxxxxxxxxxxxxx
> >       
> >     c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms 
> of Service.





------------------------ 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/