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

Re: [amibroker] ATC and "clearing" group 253



PureBytes Links

Trading Reference Links

visit the UKB, this may help: http://www.amibroker.org/userkb/2008/01/05/deleting-tickers-and-composites/


best regards,

herman


For tips on developing Real-Time Auto-Trading systems visit:

http://www.amibroker.org/userkb/


Saturday, January 5, 2008, 2:09:17 PM, you wrote:


> Herman has a solution - if he doesn't respond send him a private msg. He'll

> be posting that to the UKB in the near future.


> d 


>> -----Original Message-----

>> From: amibroker@xxxxxxxxxxxxxxx 

>> [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of matrix10014

>> Sent: Saturday, January 05, 2008 1:51 PM

>> To: amibroker@xxxxxxxxxxxxxxx

>> Subject: [amibroker] ATC and "clearing" group 253


>> Hi all,


>> I have been attemting to create "chartable" sectors and industries 

>> using Quotes Plus data and AFL code that was kindly supplied by a 

>> poster on this board.The code is posted below.The code initially 

>> worked as hoped and the sector and industry composites were created 

>> in group 253.Unfortunately the second day I ran SCAN it somehow 

>> created a whole new set of industries and sectors.So now I have 2 

>> sets of composites in Group 253 with differing dates.At this point i 

>> would like to delete everything in Group 253 and start fresh,but I 

>> dont know how.I am also concerned that if I delete group 253,I may 

>> lose all the data in it.I really like Amibroker,but some tasks could 

>> be a heck of alot simpler.


>> With all this said,how do I clean up this mess??Also,when i run scan 

>> each night,am i correct that I run it on all symbols,even though I 

>> would prefer not to have preferred stocks?Last but not least,how many 

>> days do I select to run the scan for.My initial selection was to 

>> create composites going back 5 years.Do I rescan 5 years(n last 

>> period) each night,do I simply scan just for the latest day..


>> Code posted below..Thank you


>> _SECTION_BEGIN("Sector and Industry Composites");


>> Buy=Sell=Short=Cover=0;


>> Scan = Status("Action")==3;


>> if(Scan) {


>> inc = 1;


>> sym1 = "~Industry - " + IndustryID(1);


>> AddToComposite( inc * L, sym1,"L",1+2+4+8+16+128);


>> AddToComposite( inc * O, sym1,"O",1+2+4+8+16+128);


>> AddToComposite( inc * H, sym1,"H",1+2+4+8+16+128);


>> AddToComposite( inc * C, sym1,"C",1+2+4+8+16+128);


>> AddToComposite( inc * V, sym1,"V",1+2+4+8+16+128);


>> sym1 = "~Sector - " + SectorID(1);


>> AddToComposite( inc * L, sym1,"L",1+2+4+8+16+128);


>> AddToComposite( inc * O, sym1,"O",1+2+4+8+16+128);


>> AddToComposite( inc * H, sym1,"H",1+2+4+8+16+128);


>> AddToComposite( inc * C, sym1,"C",1+2+4+8+16+128);


>> AddToComposite( inc * V, sym1,"V",1+2+4+8+16+128);


>> }


>> _SECTION_END();









>> 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

>>  

>> 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 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

>  

> Yahoo! Groups Links


> <*> To visit your group on the web, go to:

>     http://groups.yahoo.com/group/amibroker/


> <*> Your email settings:

>     Individual Email | Traditional


> <*> To change settings online go to:

>     http://groups.yahoo.com/group/amibroker/join

>     (Yahoo! ID required)


> <*> To change settings via email:

>     mailto:amibroker-digest@xxxxxxxxxxxxxxx 

>     mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx


> <*> 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/

>  

__._,_.___

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

__,_._,___