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

Re: [amibroker] Write and read data to files



PureBytes Links

Trading Reference Links

Johan,
I certainly agree with you but I tried to avoid the very first bar. 
The reason was the Martins definition for pivothigh/pivotlow.
If you see, for example the
pivotlow = Ref(L,-1)>L AND L<Ref(L,1);
has two parts : The first  Ref(L,-1)>L is well defined from the 
second bar [because of the ref function, but, the second part  L<Ref
(L,1) looks into the future and it is well defined from the very 
first bar. So, what would be the meaning of an {EMPTY} AND TRUE 
relation ?
IMO, it should be {EMPTY}. AFL behaves like  {EMPTY} AND TRUE =FALSE 
which is out of my understanding.
Try the very first bar of
f=Cum(1); 
pivotlow = Ref(f,-1)>f AND f<Ref(f,1);
Plot(Ref(f,-1)>f,"first part",2,1);
Plot((f<Ref(f,1)),"second part",4,2);
Plot(pivotlow,"AND",5,1);
GraphXSpace=5;
Dimitris Tsokakis

--- In amibroker@xxxxxxxxxxxxxxx, "johsun" <johanskatt@xxxx> wrote:
> A pivotlow/high can only be identified if the previous days 
low/high 
> is known so the very first bar will never be a pivotbar (or more 
> correctly we won't know if it is).
> 
> Johan
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "DIMITRIS TSOKAKIS" 
> <TSOKAKIS@xxxx> wrote:
> > Yes, I saw it, but, if the very first candle is indeed a 
pivothigh 
> > [or a pivotlow] ??
> > Dimitris Tsokakis
> > --- In amibroker@xxxxxxxxxxxxxxx, "marmal417" <marmal@xxxx> wrote:
> > > Thank you for your reply, Dimitris.
> > > 
> > > Have you seen message 58922 by Johan? This is getting 
> complicated 
> > for 
> > > my uneducated brain, but it seems that his code also does the 
> job? 
> > or 
> > > is there a difference I'm missing?  
> > > 
> > > //Martin



------------------------ 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 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
     amibroker-unsubscribe@xxxxxxxxxxxxxxx

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