The Price data-type holds price information internally as a floating point variable.

 

Data-Type:

Description:

Price

Price variables are printed according the current instrument's formatting and show in the debugger using that format.

 

Price variables are also unadjusted for any negative value adjustment that may be present because of a negative price series in the instrument's data..

 

Example:

'  Price TYPE example
VARIABLES: NumberIs TYPE: Price
 
'  Calculate two numbers
NumberIs = 3.364 * 1.108
 
'  Send number results to Log Window
PRINT "NumberIs = ", NumberIs

Returns:

'  Log window shows
NumberIs =  3.727312000

 

Links:

PRINT

See Also:

Data Group and Types

 


Edit Time: 4/14/2018 3:53:00 PM


Topic ID#: 472

 

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