PureBytes Links
Trading Reference Links
|
Rik,
The AddColumn() function supercedes the other method of adding columns
but the error was with a missing Ref() function.
Filter = Ref( C,-1 ) != C;
StartClose = Ref( Close, -21 );
AddColumn( C, "Close" );
AddColumn( StartClose, "StartClose" );
Regards,
William Peters
www.amitools.com
Friday, July 2, 2004, 10:51:48 PM, you wrote:
RR> This is such a short and simple piece of code I hate to ask this, but...
RR> The following code run in AA should create a Close column which it does.
RR> Filter=1;
RR> Filter = Ref(C,-1) != C;
RR> NumColumns = 2;
RR> Column0 = C;
RR> Column0Name = "Close";
RR> StartClose = (Close, 21);
RR> Column1 = StartClose;
RR> Column1Name = "StartClose";
RR> It should also create a "StartClose" column and fill it with Close prices
RR> from 21 days ago.
RR> When I run an Explore with the filter set for a watchlist I get:
RR> Line 12, Column 20:
RR> NumColumns = 2; Column0 = C;
RR> Column0Name = "Close";
RR> StartClose = (Close,
RR> -------------------^
RR> Error 23.
RR> Syntax error
RR> Rik Rasmussen
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|