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

[amibroker] Re: Study - Vertical line - How to determine BarIndex of - using AFL



PureBytes Links

Trading Reference Links

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: 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 Online - Over 14,500 titles.
No Late Fees & Free Shipping.
Try Netflix for FREE!
http://us.click.yahoo.com/Tq9otC/XP.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/