PureBytes Links
Trading Reference Links
|
You could make appropriate adjustments to the following:
pd = Optimize("Pd",28,5,35,1);
up1 = BBandTop(C,Pd,2);
up2 = BBandTop(C,Pd,1.5);
dn2 = BBandBot(C,Pd,2);
dn1 = BBandBot(C,Pd,1.5);
Buy = C<dn1 AND C>dn2;
Sell = C>up2 AND C<up1;
Short = Sell;
Cover = Buy;
Keith
--- In amibroker@xxxxxxxxxxxxxxx, "Werner" <WKRAG@xxxx> wrote:
> Good day,
>
> one way to find candidates is the idea tu buy them NEAR the LOWER
> BOLLINGER BAND. You will not find many stocks if you say "equal
Lower
> Bollinger". Thus the idea of NEAR. I was trying to code this but
ran
> into trouble. In plain English:
>
> BUY if the current stock is NEAR the Lower Bollinger Band(20 days).
>
> I know I have to define NEAR. NEAR could be around 1%. Lower
> Bollinger and Close not further apart than 1% of the stock Price.
>
> Thanks for some help.
>
> Werner
------------------------ 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/GHeqlB/TM
---------------------------------------------------------------------~->
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
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/
|