Hello,
Sum() is a polymorphic function it accepts both CONSTANT (scalar) and VARIABLE
(array) period, while StDev()
accepts only CONSTANT (scalar) period.
You are getting error because you attempt to feed StDev with array when it
accepts constant.
The error message tells exactly that.
Best regards,
Tomasz Janeczko
amibroker.com
On 2010-07-12 21:41, aaryan111 wrote:
> 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
>
>
>
>