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

Re: [amibroker] Anyone using Amibroker with 6-8 realtime charts? - CPU staying at 100% all the time



PureBytes Links

Trading Reference Links

Hi Werner,

Your question makes me think of %b, which is a band-derived measure of how
near the Close is to the bottom (or, for that matter, the top) band. 0%
means at the bottom band; 100% means at the top band.

Here is some code to get you started using this approach.

<clip>
//percent b using Close
b= ((C - BBandBot( C, 20, 2 )) /
(BBandTop( C, 20, 2 ) -
BBandBot(C, 20, 2 ))) * 100;
Buy= C<=1.01*b AND C>=.99*b;
Plot(C,"C",1,styleLine);
Plot(b,"",colorRed,styleDots|styleOwnScale);
top=BBandTop(C,20,2);
bottom=BBandBot(C,20,2);
Plot(Top,"",colorBlue,1);
Plot(bottom,"",colorBlue,1);
PlotShapes(Buy*shapeUpArrow,colorGreen,0,L,-10);
GraphXSpace=12;
Title="BBTop: "+WriteVal(top,1)+"\nBBBot: "+WriteVal(bottom,1)+"\n%b:
"+WriteVal(b,1.2);

<clip>

I would love to hear back on your backtest results. I did a bit of
backtesting with the Bollinger Method II(Trend-Following, Using %b)
mentioned in his book, but my results were nothing to write home about.

-john
----- Original Message ----- 
From: "Werner" <WKRAG@xxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Tuesday, April 06, 2004 4:37 AM
Subject: [amibroker] How do you express "N E A R"


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





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








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