AsPrice

AsPrice ( double value , double value );

Description

Converts a number into string according to price notation used by the instrument. This function only applies the notation characteristic of the instrument and does not round values down to the tick size.

Input parameters

Parameter Default value Description
value - Defines value to be converted.

Example

AddLabel(yes, AsPrice(Average(close, 10)));

If applied to /ZF chart, this script adds a chart label showing a 10 period SMA of Close price using 1/32nds price notation (XXX'YYZ).