PureBytes Links
Trading Reference Links
|
Well kind Sir:
It did work especially after I saved the database. I swear, oops I
mean that I posit - that I tried that syntax also but didn't work
when I tried it the first time. Had other stuff (trendlines) on the
chart, hadn't saved the database, and had previously tried other
expressions so that may have affected the chart somehow. But at any
rate your solution worked, so many thanks.
Best regards to you -
respectfully yours,
aequalsz
--- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <amibroker@xxxx>
wrote:
> Dear aequalsz,
>
> Please take a look at the code I have provided. It works with
vertical lines.
> Here is a copy:
>
> vertline = Study("VT",GetChartID() ) ;
> vertlinebarindex = LastValue( ValueWhen( IsNull( vertline ),
BarIndex() ) );
>
>
> Best regards,
> Tomasz Janeczko
> amibroker.com
> ----- Original Message -----
> From: "aequalsz" <aequalsz@xxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Wednesday, October 22, 2003 12:53 AM
> Subject: [amibroker] Re: Study - Vertical line - How to determine
BarIndex of - using AFL
>
>
> > Thanks Graham,
> >
> > didn't seem to work. Actually the following works with trendline
> > studies,
> >
> > Wstart = Study("BB",1065);
> > startline = LastValue(ValueWhen( Cross(Close,Wstart),BarIndex()
), 1);
> >
> > But I was hoping to use Vertical Line studies to delineate
starting
> > and ending locations for a pattern dll I've already developed.
Also
> > for the quadratic least squares curve fit dll I mentioned a while
back.
> >
> > a
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > --- In amibroker@xxxxxxxxxxxxxxx, "Graham" <gkavanagh@xxxx> wrote:
> > > Try this
> > >
> > > xBar = ValueWhen( Cross(BarIndex(),Study("UP")), BarIndex() );
> > >
> > > Cheers,
> > > Graham
> > > http://groups.msn.com/ASXShareTrading
> > > http://groups.msn.com/FMSAustralia
> > >
> > > -----Original Message-----
> > > From: aequalsz [mailto:aequalsz@x...]
> > > Sent: Tuesday, 21 October 2003 11:45 PM
> > > To: amibroker@xxxxxxxxxxxxxxx
> > > Subject: [amibroker] Study - Vertical line - How to determine
> > BarIndex of -
> > > using AFL
> > >
> > >
> > > A study ID of BB has been assigned to a VERTICAL LINE study
drawn
> > on a
> > > chart. Is there a way to determine the BarIndex at which this
> > vertical line
> > > has been drawn?
> > >
> > > So far I have only been able to reference the BarIndex of
TRENDLINE
> > studies
> > > using the cross function. Would prefer to use vertical line if
> > possible.
> > >
> > > a
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Send BUG REPORTS to bugs@xxxx
> > > Send SUGGESTIONS to suggest@xxxx
> > > -----------------------------------------
> > > Post AmiQuote-related messages ONLY to: amiq
uote@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/
> >
> >
> >
> > 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/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/
|