Build · Indicators

Draw what you see on the chart.

An indicator works something out and draws it. In AlgoBarsX your indicator can also hand its values to your strategies and alerts, so you write a filter once and use it everywhere.

  • $0 a month
  • No card needed
  • Not a trial

A full indicator. Thirteen lines.

Two lines on the chart. The fast one turns green when it is above the slow one, and red when it is below.

  • export shares a value with other scripts
  • plot draws it, and the colour can follow a rule
  • Inputs become settings anyone can change
trend-ribbon.abx
1indicator "Trend Ribbon"
2pane: price
3
4input fast = 20
5input slow = 50
6
7fast_line = ema(close, fast)
8slow_line = ema(close, slow)
9
10export up = fast_line > slow_line
11export strength = (fast_line - slow_line) / atr(14)
12
13plot fast_line as fast, color: if up then green else red
14plot slow_line as slow, color: gray
What the compiler says this does

Trend Ribbon is an indicator drawn over the price chart.

You can change 2 inputs: fast (default 20) and slow (default 50).

It calculates fast_line as the EMA of the close over fast bars, slow_line as the EMA of the close over slow bars, up as whether fast_line is above slow_line and strength as (fast_line minus slow_line) divided by the 14-bar ATR. It shares up and strength with scripts that use it.

On the chart, it plots fast_line as fast and plots slow_line as slow.

Much more than lines.

There are 26 drawing commands.

Tables and dashboards

Put live numbers on the chart in a tidy panel. Show many bar sizes side by side.

See the example

Heatmaps

Colour the chart by volume, volatility or anything you can work out.

See the example

137 built-in functions

Moving averages, momentum, volatility, volume, statistics, market structure and smart money concepts.

Browse them

Write it once. Use it everywhere.

A strategy pulls in your indicator by name and version. It sets the inputs, then reads the values like any other number. If you update the indicator later, scripts that named the old version keep working.

You can also read other bar sizes and other markets. A value from a 4-hour bar only shows up once that candle has closed, so a 5-minute rule can never peek at it early.

Good questions.

Do I need to know how to code?

No. The code reads like plain words, it reads itself back in English, and you can type your idea in plain English and press Convert to AlgoBarsX.

Can I bring an indicator from another platform?

Yes. Paste it and AlgoBarsX rewrites it with a note on every line. Always read the result. See Convert.

Can I share an indicator without showing the code?

Yes. Save it as a sealed .abx file. People can run it but cannot read the code. It still states its name, its inputs and what it does in plain English.

Build your first indicator today.

Start from an example. Change one line. See it on your chart.

Create my free account

$0 a month · No card needed · Not a trial

Trading is risky. You can lose money. It is not right for everyone.