Open topic with navigation
Overview
ActiveTick custom studies comprise from callback functions, built-in functions, and various classes, all tied together with JavaScript.
- A callback function is a function which is overridden by custom study and provides its own custom implementation to handle received callbacks from ActiveTick.
- A regular function is a function which is predefined by ActiveTick's programming model, and is used to interact with ActiveTick's internal code.
- A class is a collection of methods and properties grouped together into a logical unit. ActiveTick provides several classes for use in custom studies.
Typically, a custom study goes through the following interaction:
- Study is added to a chart window.
- Study is initialized with various options and settings by implementing the init() callback function.
- ActiveTick displays study's parameters added through the addParameter() function, and gives the user an option to modify any of them.
- The chart gets populated with some data for a symbol, and calculate() callback function is called to calculate the study for the entire dataset.
- The chart gets updated periodically with new data, and calculate() callback function is called to calculate the study to process those updates.
The following topics provide more information about custom study programming.
Copyright © 2006-2009 ActiveTick LLC