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

Re: [Metastockusers] Data Array Question



PureBytes Links

Trading Reference Links

cieling/floor will do it :
just rescan your stocks with less than 500 points
using this function,



--- tobtrade2001 <tobtrade2001@xxxxxxxxx> wrote:
> Here's what I'd like to do...
> 
> If there are less than 500 data points in the array,
> I'd like to 
> find the highest high in the array, if there are
> more than 500 data 
> points, I'd like to find the highest high in the
> last 500...sounds 
> fairly simple but MetaStock keeps choking on symbols
> with less than 
> 500 data points...I've tried various coding
> including
> 
> x:=cum(1);
> if(x<=500,highest(h),hhv(h,500)
> 
> and
> 
> x:=isundefined(hhv(h,500));
> if(x,highest(h),hhv(h,500)
> 
> without joy...so...how do I avoid getting error
> messages for symbols 
> with less data then I'm calling in the formula?
> 
> Any suggestions?
> 
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Special Sale: 50% off ReplayTV
Easily record your favorite shows!
CNet Ranked #1 over Tivo!
http://us.click.yahoo.com/WUMW7B/85qGAA/ySSFAA/zMEolB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
Metastockusers-unsubscribe@xxxxxxxxxxx

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/