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

Re: [amibroker] Staticvarset...setting last price in a loop



PureBytes Links

Trading Reference Links

Hugh
Check out the AFL function  LastValue(array,code);
Hope this helps
JOE  L.
 
----- Original Message -----
From: huandy631
Sent: Wednesday, February 20, 2008 10:09 AM
Subject: [amibroker] Staticvarset...setting last price in a loop

hello

I am trying to find the last price in an array and set it as a static
variable. Problem is that staticvarset(...) will only take a value,
and not an array.

More specifically
1 loop through 100 bars
2 loop through 40 stocks
3 for first bar find daily rtn (close/open-1) and set it to
staticvariable for each stock
4 rank stocks based on daily rtn using a bubble sort loop
5 write the rank to a composite
6 loop through next 99 bars and repeat steps 3 to 5

if anyone know how i can do this using valuewhen etc pse let me know
before i go crazy...

rgds

Hugh

__._,_.___

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




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___