PureBytes Links
Trading Reference Links
|
Paste in both AA and IB the
Lookback=100;x1=LastValue(Cum(1));
H1=LastValue(Ref(HHV(H,Lookback),-1));
L1=LastValue(Ref(LLV(L,Lookback),-1));
H1=IIf(Cum(1)>x1-Lookback,H1,-1e10);
L1=IIf(Cum(1)>x1-Lookback,L1,-1e10);
UpBreakout=Cross(H,H1);
DownBreakout=Cross(L1,L);
Plot(H1,"H1",colorYellow);
Plot(L1,"L1",colorYellow);
Plot(C,"Close",IIf(upbreakout OR
downbreakout,colorRed,colorBlack),64);
Filter=Upbreakout OR DownBreakout;//EXPLORE THE DATABASE FOR THE N=1
LAST QUOTATIONS
AddColumn(Upbreakout,"UP",1.0);
AddColumn(H,"H");
AddColumn(H1,"H1");
AddColumn(downbreakout,"DOWN",1.0);
AddColumn(L,"L");
AddColumn(L1,"L1");
It will give you the last day breakouts.
For any arrangements, just let me know.
Dimitris Tsokakis
--- In amibroker@xxxxxxxxxxxxxxx, "gillesdeprez" <gillesdeprez@xxxx>
wrote:
> Yes,a 100 bars would be perfect, can we use it as max in "param"? I
> would use 60 as default, what do you think?
> Btw,2 points can define parallel lines (and an infinity as well),
how
> do you express the horizontality?
>
>
>
>
> --- In amibroker@xxxxxxxxxxxxxxx, "DIMITRIS TSOKAKIS"
<TSOKAKIS@xxxx>
> wrote:
> > I need two points to define an horizontal channel, one high and
one
> > low.
> > What would you prefer for the definition ?
> > It could be, for example the highest and the lowest of the last
100
> > bars.
> > Describe your requirement with some more details and we shall
give
> it
> > a try.
> > Mitsos
> > --- In amibroker@xxxxxxxxxxxxxxx, "gillesdeprez"
> <gillesdeprez@xxxx>
> > wrote:
> > > Good afternoon, Dimitri!
> > > Back in Belgium,and believe me the weather here is awful!!
> > > Say, based on the formulas you've recently presented here,
would
> it
> > > be possible to set up an horizontal channel breakout
detection ,
> > with
> > > the looback and amplitude of the channel adjustable via the
param
> > > function? I didn't found anything like that in the library...
> > > Have a nice day,
> > > Friendly,
> > > Gilles
------------------------ 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/
|