Data Functions

Top  Previous  Next

The following functions can be used to round or format price data and to load external data:


 

 

RoundTickUp

 

returns the price rounded up to the next tick

RoundTickDown

 

returns the price rounded down to the next tick

FormatPrice

 

returns the price formatted for printing. For example, a price for Soybeans of 6.25 will return "6 1/4"

RealPrice


returns the real price, converted back from being negative adjusted.

GetDayIndex


returns the day index for a date

AddCommission


adds the specified amount to the commission to the specified unit of the current position for the instrument.