|
Hello,
Title string is provided to display chart TITLE (usually
single line), not any kind of spreadsheet-like output (columns and
rows),
that's why it was never supposed to handle tabbed output.
Title strings are supposed to get automatically wrapped and
should not use tabs because tabs just take screen real
estate.
For tabbed output there are other options like: exploration
(preferred), commentary, interpretation.
If you *must* do tabbed output in indicator better switch
to fixed width font and use StrFormat() to format your output padded with
specified number of spaces:
Title = "MSFT"+StrFormat("%20.2lf\n", Foreign("MSFT", "C" )
)+ "UTX "+StrFormat("%20.2lf\n", Foreign("UTX", "C") );
Or use PlotText() function that allows you to plot text in
arbitrary x,y position.
Best regards, Tomasz Janeczko amibroker.com
----- Original Message -----
Sent: Tuesday, October 10, 2006 11:06
PM
Subject: Re: [amibroker] Title=
question
This lack of "tab" function makes the output
screen messy for lots of rows/columns and limits how much can be put there
legibly. The only way I can follow multiple lines of entry is to use
encodecolor(colorblue) for column one and then encodecolor(colorwhite) for
column two and so on (so visually I can see down as the entries snake their
way through).
Thanks for the _N suggestion. That does
neaten up the commentary output window a lot, though.
I snooped around a bit on this group's archive
looking for a solution. The \\cc functions
don't cause a tab (these change color and Tomasz doesn't suggest using because
encodecolor(colorred) is better. I spent half an hour looking at escape
characters (in wikipedia) and ASCII character codes but i couldn't find a
combination that works to permit a TAB.
Given that the \n works to cause a newline, i
suspect a new release of amibroker could easily add \t to cause a tab.
I'll submit that suggestion.
Thanks very much for your help,
Terry.
----- Original Message -----
Sent: Tuesday, October 10, 2006 1:29
PM
Subject: RE: [amibroker] Title=
question
Chris,
I ran this little
test. The \t works in the
interpretation window, but it does not work in the chart Title. This code
prints both places since I did not surround the Title = statement with
_N(Title = "stuff"); However, the \n does work to create a
newline.
Plot(C,Name(),1);
Plot(m =
MA(C,20),"MA",2);
Title =
"Close:\t\t" + C + "\nMA\t\t" + m +
"\n{{VALUES}}\t{{DATE}}";
-----Original
Message----- From:
[EMAIL PROTECTED]ps.com [mailto:amibroker@yahoogroups.com]
On Behalf Of Chris
DePuy Sent: Monday, October
09, 2006 23:00 To:
[EMAIL PROTECTED]ps.com Subject: Re: [amibroker] Title=
question
Is it possible to place a TAB
format into a Title=?
Using interpretation, "\T" is a
tab, but in the Title (title = "\T") just gives you a box and doesn't push
the next text over neatly.
Terry, thanks for your help on
the title=title+"new stuff" below.
----- Original Message -----
Sent:
Monday, October 09, 2006 4:00 PM
Subject: RE:
[amibroker] Title= question
Title is just a
variable so,
Title = Title +
"new stuff";
-----Original
Message----- From: [EMAIL PROTECTED]ps.com
[mailto:amibroker@yahoogroups.com] On Behalf Of Chris DePuy Sent: Monday, October 09, 2006
16:24 To: [EMAIL PROTECTED]ps.com Subject: [amibroker] Title=
question
It seems like Herman used two
separate Title= commands
here, one for the text up on top and another inside the T=0 loop that
follows. How do you make so the second Title= command doesn't just
supersede the one before it?
I am blasting this question to
the normal amibroker list even though it was initially sent this to the AT
list because my question relates to non AT issues.
PS: Herman, thanks for the
ticker list idea, by the way.
----- Original Message -----
Sent:
Tuesday, August 29, 2006 2:25 AM
Subject: Re:
[AmiBroker-at] FW: Re: ONE SECOND REFRESH IS HERE! (was [OT] AT
State-Engines)
You
use a loop to test all the tickers in a watchlist, see example below. I
use such loops to calculate RT prices, to place orders, to create
display table, etc. I use includes when code is "finished" but somehow
my code is never finished :-) Except for debugging I don't usually
display chart & signals, a table with system status and trades in
progress is all I need - see
below.
TickersTraded =
StaticVarGetText("TickersTraded"); for( T=0; (Ticker =
StrExtract( TickersTraded, T ) ) != ""; T++ )
{ TickerLastPrice
=
GetRTDataForeign("Last",Ticker);
... etc ... }
A typical (off-line
now) trading screen:

best regards, herman
jppt0k wrote:
Hello Herman,
a couple of questions
because I'm not sure I have understood.
You have your chart
with the system loaded (the system written within or do you use
#include?) and then every trading signal that's generated by the
system is plotted onto it (plotshapes or else?).
But you don't
limit this way the trading signals to the current ticker? Or
there's a way to run a scan every tick this way?
Thanks in
advance for you inputs.
j
Herman wrote: > Hello
Angelo, > > Code in an Indicator window executes with
each new quote or each second > if you use the new function.
For me , in real-time trading I want my > system to trade as
soon as possible after it detects a price change that >
triggers a trade, not 5 seconds later. As far as i know the AA doesn't
> do that, also RT systems are hard to debug in the AA as you
can't > display debugging charts. > > I use the AA
for explorations, backtesting, etc. but not for RT trading. >
> best regards, > herman > > >
> Angelo wrote: >> >> --- In AmiBroker-at@yahoogroups.com
>> <mailto:AmiBroker-at%40yahoogroups.com>,
"Herman" <[EMAIL PROTECTED]>
wrote: >> > >> > I run my trading systems in
the Indicator window, this normally >> refreshes >>
> each time a quote comes in >> >> Hi
Herman, >> >> it seems that this is just what I'm
looking for (I maen, what I've >> been asking at >>
http://finance.groups.yahoo.com/group/amibroker/message/100305
>> <http://finance.groups.yahoo.com/group/amibroker/message/100305>)
. >> >> Could you please elaborate a bit more on
what exactly means "run a >> system from the indicator
window"? >> >> Many thanks, >> >>
Angelo. >>
__._,_.___
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
__,_._,___
|