March 4, 2006
How to change the title line in my custom indicator ?
To have custom title in the indicator window, you can define Title variable within the indicator’s code, e.g:Title = "This is my title: " + Name() + " - Close: " + WriteVal( Close )
AmiBroker versions 4.60.2 and higher allow you also to you use special tokens in Title variable that are replaced by appropriate values at run-time.
Title = "{{NAME}} - {{INTERVAL}} {{DATE}} - MyChart : {{VALUES}}"
Filed by Tomasz Janeczko at 8:34 pm under Indicators
2 Comments
Is there a way to format the {{VALUES}} numbers. On my charts prices that are whole dollar amounts show no decimal places.
No, these values are automatically formatted with minimum number of digits required to display the value accurrately (whole numbers do not need decimals). If you need your own formatting, use WriveVal() function that allows to specify number of decimal places, or StrFormat() that allows complete control over number formatting.