[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

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/