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

Re: [amibroker] how to delete .ob ticker?


  • Date: Sat, 30 Jan 2010 20:39:21 +0100
  • From: Aron <aron.groups@xxxxxxxxx>
  • Subject: Re: [amibroker] how to delete .ob ticker?

PureBytes Links

Trading Reference Links



try this one:

execute = ParamTrigger( "remove tickers" , "press to execute");

if ( execute )
{
    AB =
CreateObject( "Broker.Application" );
    sts = AB.Stocks();
    Qty = sts.Count;
    Currency =
"";


    
for ( i = Qty - 1; i >= 0; i = i - 1 )
    {
        st = sts.Item( i );
        Ticker = st.Ticker;

        
if ( StrFind( ticker , ".ob" ) )
        {
            sts.Remove( ticker );
        }

    }

    AB.REFRESHALL();
}




On 1/30/2010 8:06 PM, Ding wrote:
I did, all symbols, 1 last day and scan, still got some .ob tickers in the list. I don't know why.


From: Aron <aron.groups@xxxxxxxxx>
To: amibroker@xxxxxxxxxxxxxxx
Sent: Sat, January 30, 2010 3:21:20 AM
Subject: Re: [amibroker] how to delete .ob ticker?

 

Make sure that you "apply to all symbols" .

Buy =1;
oAB =
CreateObject( "Broker.Application " );
oStocks = oAB.Stocks() ;
Symbol =
Name();
if ( StrFind(symbol, "EURGBP"))
oStocks.Remove( symbol );
oAB.RefreshAll( );


On 1/30/2010 2:37 AM, Ding wrote:

It seems some .ob tickers are deleted, but not all. Any reason?


From: Aron <aron.groups@ gmail.com>
To: amibroker@xxxxxxxxx ps..com
Sent: Fri, January 29, 2010 1:45:58 AM
Subject: Re: [amibroker] how to delete .ob ticker?

 

Run this scan:

Buy =1;
oAB =
CreateObject( "Broker.Application " );
oStocks= oAB.stocks() ;
Symbol =
Name();
if ( StrFind(symbol, ".ob"))
oStocks.Remove( symbol );





On 1/29/2010 5:22 AM, Ding Li wrote:

Hi, all,

I have a lot of xxx.ob tickers (OTC stocks) in my list. Is there a way to delete all of them? Thanks

D.








__._,_.___


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

__,_._,___