Sounds like valuewhen(cross(rsi(15), x), barindex(), 2) would work, returning barindex() or whatever you want for the cross() prior to current.
Bill ----- Original Message ----- From: "bernardedmond01" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Saturday, June 09, 2007 7:10 AM Subject: [amibroker] Previous/last occurrence > Hi > If I were buying on an upward cross of RSI(15) but I wanted to use as a > reference point the previous cross, how would I refer to this previous > cross? I don't want to use the "Barssince" function because there could > be either zero or multiple crosses in my chosen timeframe - I just > simply want to know when the last one occurred. > Thanks > > > > Please note that this group is for discussion between users only. > > To get support from AmiBroker please send an e-mail directly to > SUPPORT {at} amibroker.com > > For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: > http://www.amibroker.com/devlog/ > > For other support material please check also: > http://www.amibroker.com/support.html > > Yahoo! Groups Links > > > > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.472 / Virus Database: 269.8.11/838 - Release Date: 6/7/2007 2:21 > PM > >
