| 
 PureBytes Links 
Trading Reference Links 
 | 
Those are printf formatting instructions. Details here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore9
8/HTML/_crt_format_specification_fields_.2d_.printf_and_wprintf_function
s.asp
Basically I use %1.0f where the 1.0 specifies the number of decimal
places before.after the decimal point. So the code below specifies one
decimal precision. The %% is required to get the percent sign (%) to
actually print.
I found in reading the docs for the beta release that there is now a
command you can put in the title string too {{OHLCX}}
--
Terry
-----Original Message-----
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On
Behalf Of bchris888au
Sent: Saturday, December 03, 2005 13:13
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Re: Cannot display charts
Thanks Terry,
I actually found this:
if( ParamToggle("Tooltip shows", "All Values|Only Prices" ) )
{
 ToolTip=StrFormat("Open: %g\nHigh:  %g\nLow:   %g\nClose:  %g
(%.1f%%)\nVolume: "+NumToStr( V, 1 ), O, H, L, C, SelectedValue( ROC(
C, 1 )));
}
Just trying to work out what '%g\n' and '(%.if%%)' means.
regards.
--- In amibroker@xxxxxxxxxxxxxxx, "Terry" <MagicTH@xxxx> wrote:
>
> Chris,
> 
>  
> 
> Right click the chart, choose Edit Formula and add this line after the
> Plot statement and click Apply.
> 
>  
> 
> ToolTip = "OHLC: " + O + " : " + H + " : " + L + " : " + C;
> 
> --
> 
> Terry
> 
>  
> 
> -----Original Message-----
> From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On
> Behalf Of bchris888au
> Sent: Friday, December 02, 2005 23:04
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Re: Cannot display charts
> 
>  
> 
> Thanks for that, now the only thing is that its not displaying OHL in
> 
> the popup only close??
> 
>  
> 
> regards,
> 
>  
> 
> chris
>
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
 
------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~-> 
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
<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/
<*> 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/
 
 |