Sections in this article
Basics mechanics of the script: you write a data analysis, define name and interval (milliseconds). So if you set the interval e.g to 2000, it runs every 2 seconds.
Description of each data structure is not part of this manual. To study TC data, open browser console (F12) and output desired data to console, e.g. console.log(trades)
|last 20min of trades feed
|last 24h of large trades
|trades heatmaps, orderbook heatmaps, candles, volume bars,…
|chart data of current range(domain)
|your current counters
Each script has its own scope accessible by “self.” prefix. You can store there script’s state variables for the next script run.
Functions and libraries
TensorCharts provides you few functions and libraries which allow you to enhance capabilities of data analysis scripts and also to interact with TC itself, like charting price lines/annotations or creating your own voice assistant.
|your own voice assistant
|sound alarm (type 1==positive, 2==negative), type can be omitted == default sound
|browserNotification(title string, message string)
|sit creates browser’s push notification so you don’t have to watch TC all the time
simple-statistics library as “statistics” object https://simplestatistics.org/docs/
technical analysis library as “TA” object candlesticks and price patterns detection or 25+ indicators https://github.com/anandanand84/technicalindicators#user-content-available-indicators