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

Re: [amibroker] Re: Back up



PureBytes Links

Trading Reference Links

there is a section in help screens about using script


On Mon, 14 Mar 2005 14:49:50 -0000, moztrader <das300@xxxxxxxxxxx> wrote:
> 
> 
> where can i learn about script as it applies to AB??
> 
> regards.
> 
> Moz
> 
> 
> --- In amibroker@xxxxxxxxxxxxxxx, Graham <kavemanperth@xxxx> wrote:
> > here is the script, but it is slow.
> >
> >
> > /*
> > **              Sample Only
> > ** File:        ExportTickers.js
> > ** Purpose:     Export all tickers to a text file
> > ** Language:    JScript (Windows Scripting Host)
> > */
> > var  True = 1;
> > var False = 0;
> > var ExcludeComposites = False;
> > var Filename = "C:\\ASX GICS\\AB ticker list.csv";
> > var oAB = WScript.CreateObject("Broker.Application");
> > var fso = new ActiveXObject("Scripting.FileSystemObject");
> > var oStocks = oAB.Stocks;
> > var Qty = oStocks.Count;
> > var Code;
> >
> > /* WScript.Echo("Export of ticker list started." ); */
> > f = fso.OpenTextFile( Filename, 2,  True );
> >
> > for( i = 0; i < Qty; i++ )
> > {
> >        Code = oStocks(i).Ticker;
> >        if ( Code.substr( 0, 1 ) == "~" & ExcludeComposites == False )
> >        {
> >                /* Do nothing*/
> >        }
> >        else
> >        {
> >                f.WriteLine( Code );
> >        }
> >
> > }
> >
> > f.Close();
> > WScript.Echo("Ticker Export finished" );
> >
> >
> > On Sun, 13 Mar 2005 21:48:51 -0000, Lesmond V <ebsn247@xxxx> wrote:
> > >
> > >
> > > > "Or also recently a script file was posted to do this as well."
> > >
> > > Graham,
> > >
> > > Is this the script you are talking about:
> > >
> > > http://www.amibroker.com/library/formula.php?id=327
> > >
> > > It would require some modifications to export just tickers. Would the
> > > script work faster than my AFL code?
> > >
> > > Tnx
> > >
> > > Lesmond
> > >
> > >
> > > > On Sun, 13 Mar 2005 10:27:12 -0000, Lesmond V <ebsn247@xxxx> wrote:
> > > > >
> > > > >
> > > > > Here is the code:
> > > > >
> > > > > Filter = 1;
> > > > > AddTextColumn( Name(), "Symbol" );
> > > > >
> > > > > /*Filter=1 - all symbols and quotes are accepted*/
> > > > >
> > > > > Then run exploration set to:
> > > > >
> > > > > - All Symols
> > > > > - n Last Quotations = 1
> > > > >
> > > > > Lesmond
> > >
> > > > > > Is there a way to back up a Ticker list of symbols for an entire
> > > > > database?
> > > > > >
> > > > > > Thomas
> > >
> > >
> > > 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
> > >
> > >
> > >
> > >
> > >
> >
> >
> > --
> > Cheers
> > Graham
> > http://e-wire.net.au/~eb_kavan/
> 
> 
> 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
> 
> 
> 
> 
> 


-- 
Cheers
Graham
http://e-wire.net.au/~eb_kavan/


------------------------ Yahoo! Groups Sponsor --------------------~--> 
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/cosFAA/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/