Pluto supports out of the box and custom indicators. If you would like an optimized implementation from a ta-lib indicator please request the indicator through the "Give Feedback" button in the app.

Simple Example

If you access an indicator conditionally (ie behind an if statement) you will encounter an error. There are no performance gains to find by conditionally accessing indicators.
def handle_new_bar(data, emit, atoms):
l_ma = data.SMA(ln=200) # no additional configuration is needed
s_ma = data.EMA(ln=20, previous=True)
open_ma = data.SMA(ln=50, data_type="open")
# you can also access specific bands or lines on indicators that support them
upper_bband = data.BBANDS(band="upper", ln=20, stds=3)

How Do Indicators Work?

  1. 1.
    Indicators are precomputed when you click "Run Test"
  2. 2.
    All indicators, both platform and custom, are displayed on the test results chart.
  3. 3.
    Using an indicator is simple — just access the data through the data argument as shown above.

Get Started