Skip to main content
A custom indicator is a Pine Script that Darvas runs on your chart. You can write the script yourself, paste one from TradingView, or describe what you want and let the Darvas assistant write it. Darvas runs Pine v5 and v6 as written and rewrites older versions to v5. Pine Script is the only indicator language Darvas runs.
This script is the template a new indicator starts with. It draws a 14-bar RSI in its own pane with lines at 70 and 30.

What you can do

Write or paste Pine Script

Add a script to the chart, change it and save it.

Describe it to Darvas

The assistant writes the script, tests it on your chart and fixes its own errors.

Share it

Publish an indicator for every Darvas user, or only for people who know a password.

Get alerts

Get a notification when the indicator draws a new buy or sell mark.

Where a script runs

  • A script you have not saved runs in your browser, in a sandboxed frame that has no network access.
  • A saved indicator runs on Darvas servers. That is how an alert can check it while Darvas is closed, and how a shared indicator can hide its code.
  • Every run reads the newest 1,000 candles of the chart.

Reference

Pine Script support

Versions, outputs, strategies and inputs that Darvas runs.

Other symbols and data

request.security(), timeframes, company financials and US economic data.

Limits

Run time, bar count, output caps and request limits.

The indicator editor

Tabs, logs, inputs, versions and drafts.