Appendix B. Using Profiles

The TPO, Volume, and Monkey Bars profiles can be created in thinkScript® using corresponding Profile functions. You can find the detailed description of these functions in the Profiles section.

In order to demonstrate the use of the functions, let's create a TPO profile study (colored blue) that aggregates all chart data on the right expansion.

Here is the code:


def allchart = 0;
profile tpo = timeProfile("startnewprofile" = allchart);"color" = Color.BLUE);