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

Re: [amibroker] Re: Modified symbol



PureBytes Links

Trading Reference Links

Tilde is fine. But... to add a symbol to watch list the symbol must exist.
 
If you create string that does not exist in the symbol list it won't be added.
 
The only way to actually RENAME symbols is to use OLE automation:
 
AB = CreateObject("Broker.Application");
stk = AB.Stocks( Name() );
 
stk.Ticker = "~" + Name();
 
However this is strongly DISCOURAGED as when you change ticker symbols
you won't be able to update them anymore (since Yahoo for example has no idea what tilde at the beginning means).
 
Generally speaking changing ticker names to non-existing ones is really BAD idea.
 
Why don't you just use watch lists and favourites. Put your symbols in Favourite group without changing symbols.

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
Sent: Tuesday, April 17, 2007 5:05 PM
Subject: Re: [amibroker] Re: Modified symbol

Tomasz,
 
I tried using the Tilde " ~ "....is that reserved windows character...
 
Here is the formula tried and failed...
 

Cond=C > Ref(C,-1);

if( LastValue( Cond==1) )

{

CategoryAddSymbol("~"+ Name(), categoryWatchlist, 13 );

}

Filter=Cond > 0;

AddColumn(Cond,"");

//Buy=0;

 

Anthony

 
----- Original Message -----
Sent: Tuesday, April 17, 2007 10:48 AM
Subject: Re: [amibroker] Re: Modified symbol

Hello,
 
Never use special characters like *, /, \ 
(asterisk, backslash and slash) in watch list names or composite names.
 
These characters are Windows file-system reserved characters and must not be used in anything that forms the file name.

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
Sent: Tuesday, April 17, 2007 3:46 PM
Subject: Re: [amibroker] Re: Modified symbol

This should be something that is very elementary....you should not have to create a composite ticker...
 
we just want to run an explore and put those tickers that meet certain criteria into a watchlist and mark those tickers that meet a 2nd  criteria with a ~ in front of the name...
 
Maybe Tomasz can look at it.
 
Anthony
----- Original Message -----
From: vlanschot
Sent: Tuesday, April 17, 2007 7:35 AM
Subject: [amibroker] Re: Modified symbol

Ooops,.... should of course be:

AddToComposite(C,"~"+Name()+" * ","C");

--- In amibroker@xxxxxxxxxps.com, "vlanschot" <vlanschot@x..> wrote:
>
> What if you created a new symbol with AddToComposite in Anthony's
> code below?
>
> So:
>
> . . . .
>
> if( LastValue( Cond==1) )
>
> {
> AddToComposite(Name(),"~"+Name()+" * ","C");// Scan first, or use
> settings to allow in explore, etc.
> CategoryAddSymbol(Foreign("~"+Name()+" * ","C"),categoryWatchlist,
> 13 );
>
> }
>
> PS
>
> --- In amibroker@xxxxxxxxxps.com, "Anthony Faragasso" <ajf1111@>
> wrote:
> >
> > Bill ,
> >
> > You were correct..I was thinking about AA window....
> >
> > I tried several versions of the following...using explore and
> Scan...but can not seem to get it to work...maybe someone can look
at
> it..or Tomasz...and see if it is possible..
> > Cond=C > Ref(C,-1);
> >
> > if( LastValue( Cond==1) )
> >
> > {
> >
> > CategoryAddSymbol("~"+ Name(), categoryWatchlist, 13 );
> >
> > }
> >
> > Filter=Cond > 0;
> >
> > AddColumn(Cond,"");
> >
> > //Buy=0;
> >
> > Anthony
> >
> > ----- Original Message -----
> > From: wavemechanic
> > To: amibroker@xxxxxxxxxps.com
> > Sent: Sunday, April 15, 2007 3:48 PM
> > Subject: Re: [amibroker] Modified symbol
> >
> >
> >
> > Anthony:
> >
> > Color could work but are you thinking of AA window cells as
> watchlists don't have cells? I don't know how the symbol in a
> watchlist can be colored. Did you have something in mind?
> >
> > Bill
> > ----- Original Message -----
> > From: Anthony Faragasso
> > To: amibroker@xxxxxxxxxps.com
> > Sent: Sunday, April 15, 2007 2:34 PM
> > Subject: Re: [amibroker] Modified symbol
> >
> >
> > Bill,
> >
> > How about coloring the cell that holds the name..
> >
> > Anthony
> >
> >
> > ----- Original Message -----
> > From: wavemechanic
> > To: AmiBroker, User
> > Sent: Sunday, April 15, 2007 1:27 PM
> > Subject: [amibroker] Modified symbol
> >
> >
> >
> > I place symbols in a watchlist that satisfying a certain
> condition with CategoryAddSymbol(Name(), watchlist, 1). However, I
> would like to "highlight" the symbol name by, for example, adding
an
> asterisk ( * ) to the name if a second (or more) condition is also
> met. So far, I have not found a way to get around using only Name
()
> for the symbol in CategoryAddSymbol(). Modifications such as Name
()
> + " * ", etc. don't work, producing " " (empty string) for the
> symbol. Any suggestions as to how to produce a modified symbol
> without reworking CategoryAddSymbol() or Name()?
> >
> > Bill
> >
> >
> >
> > ----------------------------------------------------------
--
> --------
> >
> >
> > No virus found in this incoming message.
> > Checked by AVG Free Edition.
> > Version: 7.5.446 / Virus Database: 269.0.0/754 - Release
Date:
> 4/9/2007 10:59 PM
> >
>




avast! Antivirus: Inbound message clean.

Virus Database (VPS): 000734-0, 04/16/2007
Tested on: 4/17/2007 7:39:14 AM
avast! - copyright (c) 1988-2007 ALWIL Software.





avast! Antivirus: Inbound message clean.

Virus Database (VPS): 000734-1, 04/17/2007
Tested on: 4/17/2007 10:50:22 AM
avast! - copyright (c) 1988-2007 ALWIL Software.


__._,_.___

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





SPONSORED LINKS
Investment management software Investment property software Investment software
Investment tracking software Return on investment software

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

__,_._,___