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

[amibroker] Re: Price Channels?



PureBytes Links

Trading Reference Links

I translated "verbatim" the code on the screen, [although it could be 
more elegant if written in AFL from the beginning]

DW=IIf(DayOfWeek()<=Ref(DayOfWeek(),-1),1,0);
Wt=IIf(Dw,(Ref(HighestSince(Dw,H),-1)+Ref(LowestSince(Dw,L),-1)+Ref
(C,-1))/3,0);
Wh=IIf(Dw,Ref(HighestSince(Dw,H),-1),0);
Wl=IIf(Dw,Ref(LowestSince(Dw,L),-1),0);
Wr=ValueWhen(Wh>0,Wh)-ValueWhen(Wl>0,Wl);
DwP=ValueWhen(Wt>0,Wt);
RR1=DwP+0.55*Wr;
RR2=DwP+0.89*Wr;
SR1=DwP-0.55*Wr;
SR2=DwP-0.89*Wr;
Plot(C,"C",1,64);
Plot(RR1,"RR1",colorRed,1);Plot(RR2,"RR2",colorRed,1);
Plot(SR1,"SR1",colorBlue,1);Plot(SR2,"SR2",colorBlue,1);
Buy=O>=SR2 AND O<=SR1;
Sell=O>RR1 AND O<=RR2;
PlotShapes(Buy*shapeUpArrow,colorBrightGreen);
PlotShapes(Sell*shapeDownArrow,colorRed);

Use it at your own risk, I didnīt like it at all.
Dimitris Tsokakis 
--- In amibroker@xxxxxxxxxxxxxxx, "epintoem" <epintoem@xxxx> wrote:
> Steve,
> 
> Thanks for the chart. I for the likes of me cannot figure out the 
> code. Could you please express the code in english or convert to 
> english.
> 
> TIA
> 
> 
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "CedarCreekTrading" 
<kernish@xxxx> 
> wrote:
> > Bill,
> > 
> > There are many different type of price channels.  Attached is a 
> chart with
> > very crude daytrading rules (roughly base on Krausz's work).  Of 
> all the
> > things that I have shared at seminars, this approach seems to be 
> the most
> > popular.  Maybe it's the simplicity.  Maybe it's because you are 
> not in
> > overnight.  It really puzzles me.  But, since you asked...I look 
at 
> this
> > picture everyday and post to a few groups when the signal is 
> generated.
> > 
> > Take care,
> > 
> > Steve
> > ----- Original Message ----- 
> > From: "BillPritJr" <billpritjr@xxxx>
> > To: <amibroker@xxxxxxxxxxxxxxx>
> > Sent: Wednesday, August 13, 2003 9:55 AM
> > Subject: [amibroker] Price Channels?
> > 
> > 
> > > Anyone using Price Channels for stock trading?  Success?
> > > Recommendations?
> > >
> > > I use a SMA crossover system, one reason is its idiot-proofing 
> (re:
> > > me)
> > >
> > > thanks
> > >
> > >
> > >
> > >
> > >
> > > Send BUG REPORTS to bugs@xxxx
> > > Send SUGGESTIONS to suggest@xxxx
> > > -----------------------------------------
> > > 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/