You are here: Custom Study Programming > Reference > Functions > Overview

Overview

Regular functions are predefined by ActiveTick's programming model, and are used to interact with ActiveTick's internal code from JavaScript files.

Function Table
addDataPlot(studyName) This method is used to add a new data plot to custom study.

addParameter(parameterName, initialValue)

This method is used for adding input parameters to custom study.
call(fileName, functionName, [param1], [param2],[...]) The call method is used for calling another function locating in a different JavaScript file.
getAttachedSymbol() This method returns the symbol to which current study is attached to.
getDataPlots() This method retrieves all previously added data plots.
getParameter(parameterName) This method returns a value for a given parameter name.
getSourceData(beginIndex, endIndex) This method returns the source of the data which it currently uses to calculate its values.
getStudyData(dataPlotName) This method returns the cached data for a previously added data plot.
include(fileName) This method is used for including another JavaScript file inside the script.
setAnyDataSource(usesAnyDataSource) This method sets a flag indicating weather the study uses single data source or relies on TimeSeries OHLCV data to calculate its values.
setMinRequiredDataValues(minNumber) This method sets the minimum number of needed values to perform a single calculation.
setName(name) This method sets the name for current study.

 


Copyright © 2006-2009 ActiveTick LLC