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

Re: [amibroker] Sideways Channels Exploration



PureBytes Links

Trading Reference Links

//Sideways Channels Exploration

//Periodicity- Daily

//Formulas

CondTop= MA(Peak(H,1,1),45)-Ref(MA(Peak(H,1,1),45),-45);


CondBot= MA(Trough(L,1,1),45)-Ref(MA(Trough(L,1,1),45),-45);


Filter=CondTop < 1 AND CondTop > -1 AND CondBot < 1 AND CondBot > -1;

AddColumn(CondTop, " Top");

AddColumn(CondBot, " Bot");

----- Original Message ----- 
From: "palsanand" <palsanand@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Sunday, September 21, 2003 1:14 AM
Subject: [amibroker] Sideways Channels Exploration


> Hi All,
>
> I coded this 1-Year high/low and 50% retracement formula:
>
> Baseline = IIf(HHV(High,252)>Ref(HHV(High,252),-1),1,IIf(LLV(Low,252)
> <Ref(LLV(Low,252),-1),-1,0));
> Value = ((HHV(High,252)-LLV(Low,252))/2)+LLV(Low,252);
> Plot(Value," 50% Retracement ",5,1+4);/*GREEN*/
> Plot(Baseline," Baseline",7,1+4); /* yellow*/
>
> Now, I want to code this Sideways Channels Exploration of Ken Roberts
> in AB.  I have no idea how to do this.
>
> Periodicity: Daily
>
> FORMULAE:
>
> ColumnA: Top
> Mov(Peak(1,H,1),45,S)-Ref(Mov(Peak(1,H,1),45,S),-45)
>
> ColumnB: Bottom
> Mov(Trough(1,L,1),45,S)-Ref(Mov(Trough(1,L,1),45,S),-45)
>
> Filter:
> ColA < 1 AND ColA > -1 AND ColB < 1 AND ColB > -1
>
> Any AFL Gurus please help.
>
> Pal
>
>
>
> 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/
>
>
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.521 / Virus Database: 319 - Release Date: 9/23/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/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 

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