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

Re: [amibroker] using %b and Bollinger's Method II



PureBytes Links

Trading Reference Links

John,

Here is an update version, also the baseline is for confirming current
move...example would be if the indicator moves outside the bottom band and
then crosses back up...this could be a long signal....waiting for the
indicator to cross the baseline confirms the movement...the same applies at
the upper band....This is a simplified example...other indicators are
recommended for confirmation....
/* %B of Bollinger Bands With Adaptive Zones */

/* Gives Percentage of where the close is in relation to the bands.*/

/* High reading ( Upper band ) , Low reading (Lower band )

/* AFL code by Anthony Faragasso*/

//Inputs

Lookback=60;

PerCent=95;

Pds =14;



b=( ( C+2 * StDev( C,20 ) - MA( C,20 ) ) / ( 4 * StDev( C,20 ) ) ) * 100;

/*Input */

Osc=b;

/*Value of Osc*/

Value1 = Osc;

/*Highest AND Lowest Values of Osc during Lookback Period*/

Value2 = HHV(Value1,Lookback);

Value3 = LLV(Value1,Lookback);

/*Range of Osc during Lookback Period*/

Value4 = Value2 - Value3;

/*Define PerCent of Range to determine OB AND OS levels*/

Value5 = Value4 * (PerCent / 100);

/*Calculate OB AND OS levels*/

Value6 = Value3 + Value5;

Value7 = Value2 - Value5;

baseline=(value2+value3)/2;//IIf( Osc < 100 OR Osc > 100 ,50 ,IIf( Osc < 0
,0,0));

Plot(Baseline," Baseline",7,1+4); /* yellow*/

Plot(Value1,"(%B Adaptive Zones OSC )",6,1+4); /*BLUE*/

Plot(Value6,"O/B",4,1+4); /*RED -TOP(SELL)*/

Plot(Value7,"O/S",5,1+4); /*GREEN-BOT(BUY)*/

//Plot(b,"( % B )" ,4,1);



----- Original Message ----- 
From: "john gibb" <jgibb1@xxxxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Thursday, September 18, 2003 3:48 PM
Subject: [amibroker] using %b and Bollinger's Method II


Hi,

I am using 'regular' %b with Money Flow Index in order to replicate, with
EOD data, Bollinger's Method II (trend following) system from his book
Bollinger on Bollinger Bands. (Both %b and MFI have to be above 80 for a buy
and below 20 for a sell.)

I ran across Anthony's '% B of Bollinger Bands With Adaptive Zones' at
http://www.amibroker.com/library/detail.php?id=140.

I would like to compare the results of using his %B with the regular
one--except I don't understand the purpose of his baseline (see attached).

Can anyone explain how to use his baseline?

Also, has anyone else used Bollinger's Method II? So far, my results are
mediocre at best.

thanks

-john


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.518 / Virus Database: 316 - Release Date: 9/11/2003


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Remanufactured Ink Cartridges & Refill Kits at MyInks.com for: HP $8-20. Epson $3-9, Canon $5-15, Lexmark $4-17. Free s/h over $50 (US & Canada).
http://www.c1tracking.com/l.asp?cid=6351
http://us.click.yahoo.com/0zJuRD/6CvGAA/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 

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