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

[amibroker] Whats wrong with this formula for Average Price Composite



PureBytes Links

Trading Reference Links

Hello,
 
Im  building the average price composite of  whole US stocks  Yahoo database.
Currently I have 5355  symbols in it.
In Apply to filter I have excluded indexes and composites from scan.
 
After running  Average composite Scan, the average price result is 9599958 $ and clearly this  cannot be true.
 
The formula I m using is:
 
//  ****************************
AddToComposite(Close, "~MyIndex", "X" );

AddToComposite( 1, "~MyIndex", "I" );
buy = 0; // required by scan mode

graph0 = Foreign( "~MyIndex", "C" )/Foreign( "~MyIndex", "I" );

//   ****************************
 
 
 
Any help would be appreciated.
 
Drazen


__._,_.___


**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/





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

__,_._,___