PureBytes Links
Trading Reference Links
|
I
think there is a tab (\t) you can use, or you can pad the strings to colwidth
yourself if you use mono-spaced fonts:
function padStringL(
String, ColWidth )
{ SpaceFill =
" "; if(
String == "{EMPTY}" ) String =
"-"; SL = StrLen(String);
NS = StrLeft(SpaceFill,
ColWidth-SL);
return string+NS; }
herman
I'm trying to print to the window and
interpretation in way that the columns line up. For
instance,
Trade P/L Day
P/L -30
100
I find that the regular formatting e.g.
Writeval(TradePL,
4.0)
doesn't keep the numbers in exact columns.
Does something
like %g or %f do this?
I can't find documentation on
that.
thanks
----- Original Message ----- From: "Graham"
<kavemanperth@xxxxxxxxx> To:
<amibroker@xxxxxxxxxxxxxxx> Sent: Friday, January 06, 2006 3:02
AM Subject: Re: [amibroker] Help with code a cycle
indicator
> sin ? > > -- > Cheers >
Graham > AB-Write >< Professional AFL Writing Service > Yes,
I write AFL code to your requirements > http://e-wire.net.au/~eb_kavan/ab_write.htm > > >
On 1/6/06, Padhu <ccie8340@xxxxxxxxx> wrote: >> >>
Hello folks, >> >> I would like to code a cycle indicator
that basically starts with 1 on >> seeddate and then goes upto +20
and then starts counting down from >> +20 to 0 and then starts 0 to
-20 and then goes from -20 to 0. Basically >> like a sine wave. What
function can be used for this?. Appreciate any >> sample >>
if you can help me with. Thanks. >> >> Cycle
Indicator: >> Seeddate = ' 12/01/2005' >> Cycleperiod =
20 >> Plot the histogram or sine wave as green while going from 0 to
+20 >> Plot the histogram or sine wave as red while going from 0 to
-20 >> >> I would like to plot these on indices such as OEX
and DOW. >> >> Cheers,Padhu >> >> 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 >> >> Visit your group "amibroker" on the
web. >> >> To unsubscribe from this group, send an
email to: >>
amibroker-unsubscribe@xxxxxxxxxxxxxxx >> >> Your use
of Yahoo! Groups is subject to the Yahoo! Terms of Service. >>
To unsubscribe from this group, send an email to: >>
amibroker-unsubscribe@xxxxxxxxxxxxxxx >> >> Your use
of Yahoo! Groups is subject to the Yahoo! Terms of Service. >>
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 > > > > > >
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
|