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

RE: [amibroker] Exploration Question



PureBytes Links

Trading Reference Links

Why don't you just run the explore for "n last quotations" = 1?

Your filter should work, but then it's doing way more work than
necessary.
--
Terry
-----Original Message-----
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On
Behalf Of wlandry01
Sent: Wednesday, April 12, 2006 09:50
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Exploration Question

Hi,

I've set up a simple exploration to determine the average change
per bar:

AvgChange=LastValue(Cum(abs(C-Ref(C,-1)))/BarCount);
AddColumn(AvgChange,"AvgChange");
Filter=1;

When I run the exploration I get an output for every bar in the
exploration range.  I'm only interested in one output per stock,
however.  To limit the output, therefore, I've used:

Filter=Status("lastbarinrange");

This seems to work very well, but I'm wondering if this is the correct
programming approach as I expect to encounter the same question for
several other studies.  

Thanks,


Wayne





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 other support material please check also:
http://www.amibroker.com/support.html

 
Yahoo! Groups Links



 




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 other support material please check also:
http://www.amibroker.com/support.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/