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

[amibroker] Re: Exploration Question



PureBytes Links

Trading Reference Links

Terry,

Thanks for the input.  You're absolutely right.

I was operating with a misunderstanding of how the "n last quotations"
applied to this situation.  I'm still trying to get oriented to the
array processing approach to things!

I was able to delete the "LastValue" function and simply set the "n
last quotations" to pull the latest value from the average monthly
change array.  As you noted, this greatly speeds things up.

Again, thanks for the help.


Wayne


--- In amibroker@xxxxxxxxxxxxxxx, "Terry" <MagicTH@xxx> wrote:
>
> 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
>






------------------------ Yahoo! Groups Sponsor --------------------~--> 
GFT Forex Trading Accounts As low as $250 with up to 400:1 Leverage. Free Demo.
http://us.click.yahoo.com/lpv1TA/jlQNAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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/