Skip go di main content

How to use indicators and Pine Script for Deriv TradingView charts

7
min wey e go take to read
Dark code panel dey beside candlestick chart, wit red and blue indicator lines wey dey move across di market data.

TradingView chart tools dey let you apply technical indicators to Deriv instruments and use Pine Script® create custom chart calculations. Built-in indicators dey provide ready-made calculations wey you fit use analyse characteristics like trend and momentum, while Pine Script dey let you define, customise and reuse your own calculations.

For dis walkthrough, you go add and customise a moving average and Relative Strength Index (RSI), save your chart setup, and use Pine Script version 6 create a simple indicator wey get two moving averages.

Before we start, e important make you remember say indicators dey organise and show price data visually; dem no dey predict future market movements wit certainty. Understand wetin an indicator dey calculate and test your setup before you use di result make a trading decision.

Quick summary

  • TradingView built-in indicators dey let you apply ready-made calculations to Deriv chart data.
  • Moving averages fit help you see price trends, while RSI dey measure di speed and magnitude of recent price changes.
  • Pine Script dey let you create custom indicators and control dia calculations, inputs and chart plots.
  • If you change an indicator settings, e fit change di result significantly, so understand and test each configuration before you use am.

Why you go use indicators for Deriv charts?

Indicators dey organise price data into calculations wey fit help you examine characteristics like trend, momentum and volatility consistently.

For example, a moving average dey smooth price data across a specified number of bars. Di Relative Strength Index (RSI) na momentum indicator wey dey measure di speed and magnitude of recent price changes.

Pine Script dey add anoda level of customisation. Instead of relying only on built-in indicators, you fit define calculations and visual rules and display dia results for a TradingView chart.

Dis fit useful wen you want to:

  • apply consistent analysis rules across different Deriv instruments
  • adjust calculation inputs without drawing chart elements again
  • create visual outputs for conditions wey you define
  • examine how an idea dey behave for historical chart data before you consider using am live

Built-in indicators dey provide ready-made calculations. Pine Script dey let you create or adapt dose calculations wen you need a more customised chart tool.

How you fit add indicators to a Deriv chart?

Step 1: Open di Deriv instrument

Use symbol search open di Deriv instrument wey you want analyse. Check say you don select di instrument and data source wey you intend to use, den choose a chart type and timeframe wey suit di question wey you dey examine.

A TradingView market chart showing candlestick price data, controls, a symbol label, and a timeframe axis.
Di performance figures wey dem quote refer to di past, and past performance no be guarantee or reliable guide for future performance.

Step 2: Open di Indicators menu

Select Indicators for di top toolbar. Di indicator window get built-in tools and community scripts, alongside oda available categories.

TradingView indicators window with search bar, category navigation, and a list of technical indicators.

Step 3: Add a moving average and RSI

Search for an indicator by name. For dis walkthrough, add a Moving Average to di price chart and Relative Strength Index (RSI) for a separate pane.

Di moving average dey smooth price data across a chosen number of bars, wey dey make changes for di broader price direction easier to see. RSI dey measure momentum based on recent price movements.

Give each indicator a defined analytical purpose. If you add several indicators just because pipo dey commonly use dem, di chart fit become harder to interpret without necessarily improving di analysis.

TradingView search window showing RSI and a list of related technical and community scripts.

Step 4: Change di indicator inputs

Hover over di indicator name for di chart and select Settings. Under Inputs, adjust parameters only wen you understand wetin dem dey change.

For a moving average, di length dey determine how many chart bars contribute to di calculation. For example, a 10-period moving average dey calculate im value using 10 bars of price data at each point.

A shorter length generally dey react more quickly to price changes. A longer length generally dey produce a smoother line wey dey react more slowly. Neither setting na automatically better; di appropriate input depend on wetin you dey try examine.

A TradingView indicator style settings panel showing display controls, output-value options, and visibility settings.

Step 5: Adjust style and visibility

Use Style change characteristics like di plot colour, thickness or visibility. Use Visibility choose di timeframes wey di indicator go appear on, where dat option dey available.

Choose colours wey contrast well enough wit di chart background. Avoid adding so many indicators wey go make di underlying price movement difficult to read.

TradingView indicator settings showing Inputs, Style, and Visibility controls.

Step 6: Save di chart layout

Save di chart layout if you want make TradingView retain your indicators and chart settings. Use a descriptive layout name so dat you fit easily recognise wetin e be for later, like Deriv — trend and momentum practice.

‍

How you fit create a Pine Script indicator?

Pine Script na TradingView programming language for creating custom chart tools. For dis example, you go use Pine Script version 6 calculate and display two simple moving averages.

A Pine indicator dey calculate and display information for a chart. A Pine strategy different: e fit define trading rules wey TradingView fit simulate against historical data.

Dis walkthrough dey create an indicator, no be a trading strategy.

Step 1: Open Pine Editor

For TradingView web chart, click di Pine icon for di right toolbar to open Pine Editor.

TradingView chart interface with the Pine Editor control highlighted in the right-hand menu.

Step 2: Create a new Pine indicator

Open di editor menu and choose di option to create a new indicator. Replace di template code wit dis example:

//@version=6
indicator("Moving averages two — practice", overlay = true)

  ‍fastLength = input.int(10, "Fast length", minval = 1)
    slowLength = input.int(30, "Slow length", minval = 1)

      ‍fastMA = ta.sma(close, fastLength)
        slowMA = ta.sma(close, slowLength)

          ‍plot(fastMA, "Fast MA", color = color.orange, linewidth = 2)
            plot(slowMA, "Slow MA", color = color.blue, linewidth = 2)

Di script dey draw two simple moving averages ova di price chart.

input.int() dey create integer input wey you fit change later through di indicator settings. For dis example, di default lengths na 10 and 30.

ta.sma() dey calculate simple moving average. Di script dey apply am to closing prices using di fast and slow lengths wey we define above.

Di two plot() calls den dey display dose calculations as orange and blue lines for di chart.

A code panel displaying script statements that define two moving average inputs and plot them with distinct line colors.

Step 3: Save your Pine Script

Select Save, den give di script name wey describe am. Wen you save your work, you fit identify and reopen di script later.

Use names wey go help you tell different versions apart if you make significant changes to di calculation or its purpose.

Save controls for naming a custom indicator in TradingView Pine Editor.

Step 4: Add di indicator to di chart

TradingView Basic dey allow two indicators for each chart. If you don already add di moving average and RSI from di earlier steps, first remove di original moving average. Di custom script go replace am wit two moving-average lines.

Select Add to chart. Di two moving averages suppose appear ova di price chart.

If di editor report error, check di highlighted line and di error message. Look for differences between your script and di example, like characters wey dey missing or code wey you change by mistake.

Pine Editor screenshot displaying code and editor controls for a practice script.

Step 5: Change di custom indicator inputs

Open di custom indicator Settings and change di fast or slow length.

Because di script define dese values wit input.int(), you fit adjust dem through di settings interface without editing di source code.

Wen you change di fast length, e dey change di number of closing-price bars wey di orange moving average dey use. Wen you change di slow length, e dey do di same tin for di blue moving average.

Fast and slow length settings for a custom two-moving-average Pine indicator.

Step 6: Edit or remove di Pine indicator

To remove di indicator, use di remove control beside its chart label.

To change di script itself, go back to Pine Editor, edit di code, save di change, and add or update di saved version for di chart as appropriate.

Make di purpose of each saved version clear. Even small change to di calculation or inputs fit significantly change wetin di chart dey display.

How you go read di moving-average example?

Two moving averages on a BTCUSD Deriv TradingView chart
Di performance figures wey we quote refer to di past, and past performance no dey guarantee future performance or provide reliable guide to future performance.

By default, di orange line dey calculate simple moving average from di last 10 closing prices. Di blue line dey use di last 30.

Because di 10-period calculation dey use fewer bars, e generally dey respond faster as new prices enta di calculation. Di 30-period calculation dey include more bars, so e generally dey smoother and slower to respond.

If you change either input, you dey change di data window wey di calculation dey use and, as a result, di line wey dey display for di chart.

Di positions of di lines relative to each oda dey describe di output of di two calculations. Dem no dey prove wetin di price go do next or provide certainty about future market direction.

Wetin be di difference between Pine indicators and strategies?

Pine indicator dey perform calculations and display dia output for chart. Di two-moving-average script for dis walkthrough na indicator because e dey calculate and plot two lines.

Pine strategy dey define trading rules wey you fit simulate against historical chart data. TradingView fit den use dose rules to produce historical strategy-testing results.

Backtest results dey depend on factors including di strategy settings, available data, fees, slippage assumptions, and coding choices. Historical performance no dey guarantee future performance.

Wetin you suppose remember wen you dey use indicators?

  • Start wit specific analytical question and one or two relevant indicators.
  • Understand wetin indicator dey calculate before you interpret its output.
  • Review community scripts carefully because third parties dey create dem, and dem fit rely on assumptions wey no suit evri instrument.
  • Remember say Pine indicators dey display calculations, while Pine strategies fit simulate defined trading rules.
  • Save and label script versions wen you dey change calculations or code.
  • No treat indicator signals or historical tests as predictions of future performance.
  • Test your setup on demo account before you consider live trading.

FAQs

Analyse markets wit insights wey AI dey power

Explore TradersView
WhatsApp