Search the web
Sign In
New User? Sign Up
amibroker · AmiBroker User's List
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
How to find out when a new 52 week Low was set in the past 90 days?   Message List  
Reply | Forward Message #116897 of 143811 |
Re: How to find out when a new 52 week Low was set in the past 90 days?

Try something like this:

lv = L < LLV(Ref(L,-1), 251);
lvb = IIf(lv, Cum(1), BarCount+1);
lbars = LLVBars(lvb, 90);

Array "lv" has a one at every new 252 bar low. "lvb" sets every such
indication to its bar number (starting from 1) and BarCount+1 for
every other bar (so that they're higher than every other value).
"lbars" will return the number of bars since the lowest bar number in
the last 90 bars, which will match the first 252 bar low during that
period.

Note that I haven't tried this though, so can't guarantee it works.

Regards,
GP


--- In amibroker@yahoogroups.com, "Padhu" <ccie8340@...> wrote:
>
> Folks:
>
> How to find out when a new 52 week Low was set in the past 90 days?.
I'd like to find the date or the barssince this occured.
>
>
>
> FiftyTwoWeek_Low=L <=LLV(low,252);
>
> FiftyTwoWeek_Low_New=FiftyTwoWeek_Low and Ref(FiftyTwoWeek_Low,-1)==0;
>
>
>
> But once a new 52 week low is cut below, new 52 week low emerges and
if trend continues, we will have new 52 week lows everyday.
>
> What I am looking for is the VERY FIRST occurance of the
"FiftyTwoWeek_Low_New" in the past 90 days.
>
>
>
> Any thoughts on this?.
>
>
>
> Thanks,Padhu
>





Mon Nov 12, 2007 12:25 pm

gp_sydney
Offline Offline
Send Email Send Email

Forward
Message #116897 of 143811 |
Expand Messages Author Sort by Date

Folks: How to find out when a new 52 week Low was set in the past 90 days?. I'd like to find the date or the barssince this occured. FiftyTwoWeek_Low=L...
Padhu
ccie8340
Offline Send Email
Nov 12, 2007
5:39 am

Try something like this: lv = L < LLV(Ref(L,-1), 251); lvb = IIf(lv, Cum(1), BarCount+1); lbars = LLVBars(lvb, 90); Array "lv" has a one at every new 252 bar...
gp_sydney
Offline Send Email
Nov 12, 2007
12:26 pm

... days?. I'd like to find the date or the barssince this occured. ... ==0; ... and if trend continues, we will have new 52 week lows everyday. ... the...
brian_z111
Offline Send Email
Nov 12, 2007
1:43 pm

... days?. I'd like to find the date or the barssince this occured. ... ==0; ... and if trend continues, we will have new 52 week lows everyday. ... the...
brian_z111
Offline Send Email
Nov 12, 2007
3:12 pm

Hi Gp and Brian, Thanks so much for your response. I will give your suggestions a try . Thanks again. Cheers,Padhu ... From: gp_sydney To:...
Padhu
ccie8340
Offline Send Email
Nov 13, 2007
1:11 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help