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

[amibroker] Re: Add addtocompiste generated ticker to a watchlist



PureBytes Links

Trading Reference Links

Close.  See changes and run the following as a SCAN on the CURRENT SYMBOL only -

TickerList      = CategoryGetSymbols( categoryGroup, 253);
for( i=0; (Ticker=StrExtract( TickerList, i)) != ""; i++)
{
  if (StrLeft(ticker, 2)=="~~")
  {
    CategoryAddSymbol(ticker, categoryWatchlist, 61);
    _TRACE( "Added - " + ticker );
  }
}
Buy=0;

-- BruceR

--- In amibroker@xxxxxxxxxxxxxxx, "ta" <tagroups@xxx> wrote:
>
> Since, I did not hear from anybody I assume that there is not a way. As a
> result I wrote the following code to read the addtocomposite created tickers
> from group 253 and add them to watchlist 61. However, it takes about 19
> minutes to do this. Does anybody see a way to improve the speed of my code?
> Perhaps Tomasz can comment on why this process is so slow? TIA
> 
>  
> 
> TickerList      = CategoryGetSymbols( categoryGroup, 253); 
> for( i=0; (Ticker=StrExtract( TickerList, i)) != ""; i++) 
>    { 
>    if ((StrLeft(Name(),1)=="~") AND (StrLeft(Name(),2)!="~~")) 
>    CategoryAddSymbol("", categoryWatchlist, 61); 
>    } 
> 
> Buy=0;
> 
>  
> 
> From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf
> Of ta
> Sent: Tuesday, September 29, 2009 9:56 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Add addtocompiste generated ticker to a watchlist
> 
>  
> 
>   
> 
> I did not see a flag that would add a ticker created by addtocomposite
> function to a watchlist. Is there a way of doing this as the new tickers are
> created? TA
>




------------------------------------

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

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/