Indicators in Python
Write your own indicators in Python, see them on the chart in seconds and share them with the community.

How it works
- You write in Python, with everything you need to calculate: functions, loops, lists, dictionaries and simple classes. The libraries are ours:
tafor series,mathfor numbers,formatfor text anddrawfor drawings. - The indicator function receives all the candles at once and returns one series per plot: one value per candle. If it asks for them, it also receives the economic calendar news.
- Short name, inputs and plots are declared in the code: settings, legend and scale come from there, with no extra work.
- The code runs in your browser, isolated: it can’t see your account, your data or the network.
- The built-in indicators are written in the same language: you can read their code and start from a copy.
Where to start
- Your first indicatorFrom an empty editor to a moving average on the chart, in five steps.
- The editorSaving, testing, reading errors and suggestions as you type.
- How a script is builtImport, declarations, the function that calculates and what it returns.
- PlotsLines, columns, areas, shapes, candles and fills.
- ExamplesComplete scripts to open in the editor and edit.
- The ta functionsAverages, oscillators, volatility, volume and candlestick patterns.