AsDollars ( double value , double value );
Description
Converts a number into a string expressing a dollar amount:
- Symbol "$" is added before the number;
- Two digits after the decimal point are always used;
- Thousand separators (comma) are used.
Input parameters
Parameter | Default value | Description |
---|---|---|
value | - | Defines number to be converted into a string. |
Example
AddLabel(yes, "Current True Range is " + AsDollars(TrueRange(high, close, low)));
This script adds a chart label showing current True Range as amount in dollars.