This function returns a string value, and cannot then assigned to a floating point variable or used in any computations.

 

Note:

This function does not change the value of the price, and if a tick value is required RoundTickUp and/or RoundTickDown can be used to adjust the price prior to using this function.

 

The return value should only be used for Printing or Reporting purposes.  Returns the price formatted for printing. For example, a price for Soybeans of 6.25 will return "6 1/4".

 

Syntax:

roundedValue = PriceFormat( price )

 

Parameter:

Description:

price

The price to be formatted.

 

Example:

' Print the price.
PRINT "Price = ", instrument.PriceFormat( entryPrice )

Returns:

Returns a STRING type variable.

 

Links:

Data Functions

See Also:

 

 


Edit Time: 9/25/2017 09:09:54 AM


Topic ID#: 473

 

Created with Help & Manual 7 and styled with Premium Pack Version 2.80 © by EC Software