Are you sure that it is not just taking the last value of the array, as opposed 
to the corresponding value. All documented usage shows it taking a scaler. You 
might want to pay very close attention to what you're getting there.

Mike

--- In [email protected], "aaryan111" <aaryan...@...> wrote:
>
> Hi , thanx for the feedback wave.
> its Syntax is basically to put Period as 2nd argument.
> When u put an array in SUM() as 2nd argument, it will take the corresponding 
> scalar frm that array and apply it as a filter.
> 
> i have successfully executed this 
> 
> Sum(Close,BarsSince(TimeNum()>092400));
> 
> regards
> 
> 
> --- In [email protected], "wavemechanic" <olesmithy@> wrote:
> >
> > Neither takes array as 2nd.  See syntax in Users Guide.
> >   ----- Original Message ----- 
> >   From: aaryan111 
> >   To: [email protected] 
> >   Sent: July 12, 2010 3:41 PM
> >   Subject: [amibroker] Sum and Stdev , wierd behaviour of stdev
> > 
> > 
> >   Hi Everybody, 
> > 
> >   Both Sum() and Stdev() Functions Have same Arguments Structure.but when i 
> > put 
> >   Sum(Close,BarsSince(TimeNum()>092400))
> >   it executes successfully,while 
> >   Stdev(Close,BarsSince(TimeNum()>092400))
> >   gives a warning " Function Expects Different type of argument here " . 
> > 
> >   as far as i understand , both can take array as 2nd argument and 
> > amibroker will automatically fetch the current running index value of that 
> > array as the 2nd argument, same as it does with other functions. 
> > 
> >   one can put any other function returning array like barindex() in 2nd 
> > argument , result will be same. 
> > 
> >   Any suggestions??
> > 
> >   Regards,
> > 
> > 
> > 
> >   ------------------------------------
> > 
> >   **** IMPORTANT PLEASE READ ****
> >   This group is for the discussion between users only.
> >   This is *NOT* technical support channel.
> > 
> >   TO GET TECHNICAL SUPPORT send an e-mail directly to 
> >   SUPPORT {at} amibroker.com
> > 
> >   TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
> >   http://www.amibroker.com/feedback/
> >   (submissions sent via other channels won't be considered)
> > 
> >   For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> >   http://www.amibroker.com/devlog/
> > 
> >   Yahoo! Groups Links
> >
>


Reply via email to