PureBytes Links
Trading Reference Links
|
Dear aequalsz,
Assuming that your vertical line has study id of "VT"
the code that gives bar index of it looks like this:
vertline = Study("VT",GetChartID() ) ;
vertlinebarindex = LastValue( ValueWhen( IsNull( vertline ), BarIndex() ) );
Hope this helps.
Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: "aequalsz" <aequalsz@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Tuesday, October 21, 2003 5:45 PM
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@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/
>
>
>
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Rent DVDs from home.
Over 14,500 titles. Free Shipping
& No Late Fees. Try Netflix for FREE!
http://us.click.yahoo.com/mk9osC/hP.FAA/3jkFAA/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/
|