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

Re: [amibroker] Re: Encoding colors in complex Titles



PureBytes Links

Trading Reference Links

Hello,
 
Don't worry. They will stay. I just want to say don't post example codes using escape sequences because
they are unreadable for beginners.  The same applies to posting codes in AFL formula library.
Please post only readable code samples and avoid cryptic code.
If everyone follows this advice the library will become more useful.

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: Corey Saxe
Sent: Sunday, January 08, 2006 9:46 PM
Subject: Re: [amibroker] Re: Encoding colors in complex Titles

Me too. I would have to change a few thousand formulas, and I use them in more than just titles.
 
-CS
----- Original Message -----
From: Lesmond V
Sent: Sunday, January 08, 2006 7:14 AM
Subject: [amibroker] Re: Encoding colors in complex Titles

I think this statement from TJ about the intention to discontinue support for colour escape sequences (in Title code) is quite important. I personally use them extensively because they are much shorter than EncodeColor().

Lesmond

--- In amibroker@xxxxxxxxxxxxxxx, "Herman van den Bergen" <psytek@x...> wrote:
>
> fwiw, to simplify color-encoding in complex Titles you can predefine
> color-strings like so:
> GRN = EncodeColor(colorBrightGreen);
> RED = EncodeColor(colorRed);
> BLK = EncodeColor(colorBlack);
> BLU = EncodeColor(colorBlue);
> etc.
>
> Herman
>
>
>
>   -----Original Message-----
>   From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx]On
> Behalf Of Tomasz Janeczko
>   Sent: Sunday, January 08, 2006 8:47 AM
>   To: amibroker@xxxxxxxxxxxxxxx
>   Subject: Re: [amibroker] Re: How to get rid of (Full)Name in AB-Window?
>
>
>   Hello,
>
>   BTW: please do use EncodeColor function instead of hard coding escape
> sequences.
>   EncodeColor results in clearer code and will always work. Escape sequences
> may change
>   and stop working in future releases.
>
>   Best regards,
>   Tomasz Janeczko
>   amibroker.com
>     ----- Original Message -----
>     From: Dave's Laptop
>     To: amibroker@xxxxxxxxxxxxxxx
>     Sent: Sunday, January 08, 2006 3:46 AM
>     Subject: RE: [amibroker] Re: How to get rid of (Full)Name in AB-Window?
>
>
>     Got it now, thanks.   I am finally starting to understand AFL code a
> little more each day.  Little snippets and fixes that get posted give clues
> and helpful suggestions and reveal the power behind AFL.  It's great.
>
>
>
>
> ----------------------------------------------------------------------------
>
>     From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On
> Behalf Of NW Trader
>     Sent: Friday, January 06, 2006 11:14 PM
>     To: amibroker@xxxxxxxxxxxxxxx
>     Subject: Re: [amibroker] Re: How to get rid of (Full)Name in AB-Window?
>
>
>
>     Hi Dave,
>
>
>
>     That title code Les posted is for setting the title line in a chart
> window -- it doesn't answer the original question asked.
>
>
>
>     The \n command is a forced carridge return which will set the following
> code in a title to the next line.
>
>
>
>     The \\c command is for defining colors -- e.g. \\c01 will print in
> black.  See some of the code I've sent you earlier for examples of using
> these
>
>
>
>     I do not know of a way to do what the original questioner asked -- I
> believe one would have to edit AB code itself.
>
>
>
>     Peace and Justice   ---   Patrick
>
>       ----- Original Message -----
>
>       From: Dave's Laptop
>
>       To: amibroker@xxxxxxxxxxxxxxx
>
>       Sent: Friday, January 06, 2006 10:24 PM
>
>       Subject: RE: [amibroker] Re: How to get rid of (Full)Name in
> AB-Window?
>
>
>
>       Hi Lesmond,
>
>       As a newbie I am grabbing all "snippets" of code and saving them in a
>       subdirectory.  This didn't verify as I suspect that the first two
> lines were
>       meant to be comments.  Also what do you mean by the second line "code
> that
>       moves the text to the new row below"?
>
>       Dave
>
>       -----Original Message-----
>       From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On
> Behalf
>       Of Lesmond V
>       Sent: Friday, January 06, 2006 10:11 PM
>       To: amibroker@xxxxxxxxxxxxxxx
>       Subject: [amibroker] Re: How to get rid of (Full)Name in AB-Window?
>
>       You have to create your own code for the reserved variable "Title".
> Here is
>       an example how to customize Title and ToolTips (the square box that
> appears
>       next to the mouse pointer when you point the mouse to a bar or a
> candle).
>       You would need to save this as AFL file, let's say MyPrice.afl and use
> it
>       instead of default "Price.afl" (left pane - charts tab - basic
> charts -
>       price).
>
>       \\c - colour code
>       \n  - code that moves the text to the new row below
>
>
>       /*******/
>
>       Title = "\\c11"+Interval(format=2)+"  "+Date()+"\\c-1  O="+O+"
> H="+H+"
>       L="+L+"  C="+C;
>
>       Plot(C, ToolTip="C = "+C+"\n" +ToolTip="V = "+NumToStr(V,1.0)+"\n"
>       +ToolTip="OI = "+NumToStr(OI,1.0), colorDarkYellow, styleCandle);
>
>       /*******/
>
>
>       --- In amibroker@xxxxxxxxxxxxxxx, "vlanschot" <ecbu@xxxx> wrote:
>       >
>       > Does anybody know how to get rid of the Name and Full name at the
> upper
>       > left corner in the AB-window itself (as in Amibroker - [S&P500 - S&P
>       > 500 Index]?
>       >
>       > Thanks,
>       >
>       > PS
>       >
>
>
>
>
>
>
>
>       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
>
>
>
>
>
>
>
>
>
>
>
>
>   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
>
>
>
>
>
>   SPONSORED LINKS Investment management software  Real estate investment
> software  Investment property software
>         Software support  Real estate investment analysis software
> Investment software
>
>
> ----------------------------------------------------------------------------
> --
>   YAHOO! GROUPS LINKS
>
>     a..  Visit your group "amibroker" on the web.
>
>     b..  To unsubscribe from this group, send an email to:
>      amibroker-unsubscribe@xxxxxxxxxxxxxxx
>
>     c..  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service.
>
>
> ----------------------------------------------------------------------------
> --
>






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