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

[amibroker] Coding an indicator of two dynamic symbols



PureBytes Links

Trading Reference Links

Hello all,

I am trying to code a simple indicator in theory, but being new to 
AFL I'm stuck.

I am importing an ASCII file of Commitments of Traders (COT) Data 
into AmiBroker.  As COT data has six components, I have "placed" them 
as follows:

                        O:	Large Non-Commercial LONGS
			H:	Large Non-Commercial SHORTS
			L:	Commercial LONGS
		  	C:	Commerical SHORTS
			V:	Other LONGS
			OI:	Other SHORTS

I'd like to have a indicator that would plot the C of the underlying 
futures contract, and the six other plots of the O,H,L,C,V,OI fields 
of the COT data.  

In Tradestation Easylanguage code this would be Data1 and Data2 which 
would be generic.  The Foreign function is the closest I can find, 
but it is symbol specific which means I would need to create 19 
separate COT indicators to plot each contract I follow.  Is there a 
way to make Foreign generic so that it reads Data1 and Data2?

Thanks,
Gary


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges & Refill Kits for Your Epson at Myinks.com
Free shipping on orders $50 or more to the US and Canada.
http://www.c1tracking.com/l.asp?cid=5705&lp=home/epson.asp
http://us.click.yahoo.com/brYXfA/_xWGAA/ySSFAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/