Navigation: Realtest Script Language > Syntax Element Details >

DataType

 

 

 

 

Category

General-Purpose Functions

Description

Causes a value to be treated as a specific type of data

Syntax

DataType(expression, type)

Parameters

expression - any formula or value

type - what type to assign to the result: 0 = none, 1 = price, 2 = volume

Notes

This function is rarely needed because RealTest automatically determines the type of most calculated values correctly.

The data type of a value is only important when the value is used in multi-bar formulas or indicators that cross a split date.

Only use this function if you have observed incorrect split handling in, for example, a complex Data Section formula.

 

 

 

Copyright © 2020-2024 Systematic Solutions, LLC