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

RE: [amibroker] Re: channel width, in dr. elder's sense



PureBytes Links

Trading Reference Links

The same percent of the high prices will be greater in dollars than the % of
lows. I suggest use % of average price (H+L)/2 to get the bandwidth.

Cheers,
Graham
http://groups.msn.com/ASXShareTrading
http://groups.msn.com/FMSAustralia


-----Original Message-----
From: indiana0352 [mailto:cs_winn@xxxxxxxxxxx] 
Sent: Monday, 15 September 2003 12:55 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Re: channel width, in dr. elder's sense


Hmm this seems like a good start but the formula below seems to base 
the channels on closing proces rather than high and low prices, so 
the lines would be:

Value2 = HHV(High,Lookback);

Value3 = LLV(Low,Lookback);

This corrects part of the problem but the bottom channel line is 
still not the same distance from the EMA as the top as it should be.

I'll work on this tomorrow but for now I need to go to bed...

Chris


--- In amibroker@xxxxxxxxxxxxxxx, "Anthony Faragasso" <ajf1111@xxxx> 
wrote:
> Lookback=45;
> 
> PerCent=95;
> 
> x=C;
> 
> Osc=x; /*insert variable by Identifier*/
> 
> /****************************************/
> 
> /*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;
> 
> Plot(C,"",colorBlack,styleCandle);
> 
> Plot(Value6,"",colorRed,styleLine);
> 
> Plot(Value7,"",colorRed,styleLine);
> 
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.516 / Virus Database: 313 - Release Date: 9/1/2003


------------------------ 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/l.m7sD/LIdGAA/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/ 


------------------------ 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/l.m7sD/LIdGAA/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/