PureBytes Links
Trading Reference Links
|
I think you want StartClose = ref(Close, -21);
Bob
-----Original Message-----
From: Rik Rasmussen [mailto:hrasmussen@xxxxxxxxx]
Sent: Friday, July 02, 2004 7:52 PM
To: Amibroker
Subject: [amibroker] code help
This is such a short and simple piece of code I hate to ask this, but...
The following code run in AA should create a Close column which it does.
Filter=1;
Filter = Ref(C,-1) != C;
NumColumns = 2;
Column0 = C;
Column0Name = "Close";
StartClose = (Close, 21);
Column1 = StartClose;
Column1Name = "StartClose";
It should also create a "StartClose" column and fill it with Close prices
from 21 days ago.
When I run an Explore with the filter set for a watchlist I get:
Line 12, Column 20:
NumColumns = 2; Column0 = C;
Column0Name = "Close";
StartClose = (Close,
-------------------^
Error 23.
Syntax error
Rik Rasmussen
stockanalyzer Yahoo Group Moderator
http://groups.yahoo.com/group/stockanalyzer/
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
------------------------ Yahoo! Groups Sponsor --------------------~-->
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/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/
|