|
Description |
Scale() modifies the scale of a quote. The SCALE() function enables you to display fractional units in decimals, and decimals in fractions. |
|
|
Syntax |
Scale(quote,instrument) |
|
|
Parameters |
quote Specifies the quote you want to scale. This can be a formula name, an instrument symbol, or a reference to a quote code group.
instrument Specifies the value from which the alternate notation will be derived. A value can be derived from any of three sources: an instrument symbol, a quote code group, or a number. |
|
|
Return Value |
A scaled value. |
|
|
Examples |
Scale($1,USM3)
Scale($7,$2)
Scale($1,1000) |
|
|
Comments |
Modifying quotes with the SCALE() function can cause rounding of decimal values.
If you have an instrument quoted in decimals, by default Aspen Graphics draws three decimal places in a quote window. Three decimal places are not always enough information for some technical analyses. Therefore, the SCALE() function lets you increase or decrease decimal precision.
The SCALE() function also lets you modify the way Aspen Graphics displays instruments quoted in fractions. If you want to compare an instrument quoted in 32s to an instrument quoted in half-32s, the SCALE() lets you make the comparison in a quote window. You can convert 32s to half-32s, or half-32s to 32s. You can also use the SCALE() function to compare instruments quoted in other fractional bases. |