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

Re: [amibroker] Formula for determining a separate graphstyle to use per stock symbol name



PureBytes Links

Trading Reference Links

because the name is a scalar value you can use IF and set the style.
(Style does not work with arrays)

if(StrLeft(Name(),1)=="F" AND StrLen(Name())==5) style = 128;
else style = 8;
Plot(C,"",colorWhite,style);



-- 
Cheers
Graham Kav
AFL Writing Service
http://www.aflwriting.com

On 19/01/2008, gmorlosky <gmorlosky@xxxxxxxxx> wrote:
> I am wanting to use a different graphstyle for mutual funds vs. stocks.
> All my mutual funds start with "F" and are 5 characters. How can I use
> a graphstyle for all F???? symbols and a  graphstyle for all others ?
>
> I tried this code, but the Name() part isn't working.
>
> IIf (Name() <> F????, Graph3Style = 128, Graph3Style = 8);
> /* symbols are ^DJI, ^GSPC, GE, FBIOX, FBMPX, FBSOX */
>


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/