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

Re: [amibroker] Re: What's Wrong With This Line?



PureBytes Links

Trading Reference Links

StdErr will take an array for the "periods" arg, StDev will only take a 
constant. If it will meet your needs, you can make it work by putting 
Longcount inside LastValue() or SelectedValue(), i.e.

StDev(C, SelectedValue( Longcount ) );

Steve

----- Original Message ----- 
From: "Charles J. Dudek" <trader@xxxxxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Saturday, November 18, 2006 7:17 PM
Subject: [amibroker] Re: What's Wrong With This Line?


> OK, I figured out that if I store the starting and ending ranges in an
> array (longcount) and then access those ranges I can create lines
> automatically, but now I'm getting another error from this line:
>
> widthL = IIf( longcount>3, Ref (SD*StDev(C, Longcount),-shift ),Null
>  ) ;
>
> It's telling me that it expects another type argument here.  The funny
> thing is this will work fine with StdErr but not StDev, which is what
> I need.  Any ideas what's wrong now?
>
> Chuck
>
>
>
>
> 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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
>
> For other support material please check also:
> http://www.amibroker.com/support.html
>
> Yahoo! Groups Links
>
>
>
>
> 



Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.14.11/542 - Release Date: 11/20/2006