PureBytes Links
Trading Reference Links
|
Thanks! ...trying to get my name in the Credits... 8 - )
BTW, it occurs to me that instead of looking for current values, maybe you
are using this in a backtest or something where you need correct values for
entire array. If that is the case, I think we will need to come up with
something different...
Steve
----- Original Message -----
From: "idaytrader" <idaytrader@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Wednesday, May 10, 2006 6:35 PM
Subject: [amibroker] Re: How do you get the bars since the nth occurance of
a condition
> That was bloody brilliant (no offense intended)!!!!
>
> Thank you. That solution just opened up a new level of understanding
> in AB for me. Thanks.
>
> Jerry L.
>
> --- In amibroker@xxxxxxxxxxxxxxx, "Steve Dugas" <sjdugas@xxx> wrote:
>>
>> Not tested, and assuming you meant Nth *most recent* occurance?
>>
>> TimeLine = LastValue( BarIndex() ) - BarIndex();
>> BarsPassed = ValueWhen( YourCond, TimeLine, n );
>>
>> Steve
>>
>> ----- Original Message -----
>> From: "idaytrader" <idaytrader@xxx>
>> To: <amibroker@xxxxxxxxxxxxxxx>
>> Sent: Wednesday, May 10, 2006 11:07 AM
>> Subject: [amibroker] How do you get the bars since the nth occurance
> of a
>> condition
>>
>>
>> > Hi all,
>> >
>> > I am drawing a blank. How can I get the number of bars that have
>> > passed since the nth occurance of a condition? Thanks for your help.
>> >
>> > Jerry L.
>> >
>> >
>> >
>> >
>> >
>> >
>> > 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 other support material please check also:
>> > http://www.amibroker.com/support.html
>> >
>> >
>> > Yahoo! Groups Links
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>>
>
>
>
>
>
>
>
>
> 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 other support material please check also:
> http://www.amibroker.com/support.html
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Everything you need is one click away. Make Yahoo! your home page now.
http://us.click.yahoo.com/AHchtC/4FxNAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~->
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 other support material please check also:
http://www.amibroker.com/support.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/
|