Navigation: Study Formulas > Data Streams

Data Streams

Top  Previous  Next

The study formulas included in the Data Streams section are:

 

 

date()

 

Returns the bar date as a TDateTime value. In scripts generated by the Wizard the date value is converted to a string for display purposes using the DateToStr() function.

 

Parameters

 

none

takes no parameters

 

 

 

time()

 

Returns the bar timestamp as a TDateTime value. In scripts generated by the Wizard the date value is converted to a string for display purposes using the TimeToStr() function.

 

Parameters

 

none

takes no parameters

 

 

 

open()

 

Returns the bar open price as a floating point value.

 

Parameters

 

none

takes no parameters

 

 

 

high()

 

Returns the bar high price as a floating point value.

 

Parameters

 

none

takes no parameters

 

 

 

low()

 

Returns the bar low price as a floating point value.

 

Parameters

 

none

takes no parameters

 

 

 

close()

 

Returns the bar close price as a floating point value. In realtime this is also the current price.

 

Parameters

 

none

takes no parameters

 

 

 

hl2()

 

Returns the midpoint price as a floating point value. Midpoint is calculated as (high+low)/2.

 

Parameters

 

none

takes no parameters

 

 

 

hlc3()

 

Returns the midpoint price as a floating point value. Midpoint is calculated as (high+low+close)/3.

 

Parameters

 

none

takes no parameters

 

 

 

ohlc4()

 

Returns the midpoint price as a floating point value. Midpoint is calculated as (open+high+low+close)/4.

 

Parameters

 

none

takes no parameters

 

 

 

volume()

 

Returns the bar volume as a floating point value.

 

Parameters

 

none

takes no parameters