533 / 736IND

Technical indicator

Calculated market indicator

A line on a chart can make price movements easier to follow. Here is what a technical indicator calculates, why its settings matter, and what its result cannot tell us.

A Technical indicator is a measure calculated from market data, such as prices or traded volume. It turns those inputs into a more readable line, set of bars or number. It helps answer a specific question about the market, but does not by itself tell you to buy bitcoin or reveal what its price will do next.

Jana opens a price chart and adds an indicator. A smoother line appears alongside the jumping price. This has not created a new source of information about buyers: the software has processed selected data in a different way. TradingView describes calculations using prices, volume and even other indicators' outputs. Before treating the line as advice, Jana needs to understand which question that calculation answers. [1]

Jana has chosen a Moving average. In TradingView, Source selects the input: Close is the candle's closing price, while High is its highest price. Length sets the period included in the calculation. The market and Timeframe, the interval covered by each candle, also matter. Averages can look similar while using different prices or different lengths of history. The line's colour does not explain these differences. [2]

The simplest version, SMA or simple moving average, adds the selected values and divides their sum by their count. TradingView and Fidelity both explain this calculation. Prices in USD/BTC produce another price in USD/BTC, meaning dollars per bitcoin; the result is neither a percentage return nor a quantity of bitcoin. The example below lets Jana check both the arithmetic and why changing the averaging period changes the answer. [2] [5]

When the price jumps sharply, a Moving average usually responds more gradually because it still includes older values. TradingView therefore describes it as a lagging indicator. Jana can more easily see the broader direction, but some of the recent movement is smoothed away. A longer period generally smooths more; different weights can emphasise newer data. None of these changes gives the calculation knowledge of the future. [2]

Jana notices the lines cross, then the crossing disappears before the candle closes. This need not be an error. Indicators in TradingView Pine Script recalculate on the open candle as data updates arrive; its Close is still a provisional price. If a rule requires a result at the close, that is when it must be evaluated. A crossing during the interval and one confirmed at its end are different events. [3]

Jana adds more lines and several point in a similar direction. That can help describe the market without automatically providing stronger evidence. TradingView also allows indicators based on other indicators. If they all process the same price series, they may simply display the same movement in different ways. The number of agreeing indicators does not by itself establish a trade's probability of success; their inputs need to be understood first. [1]

The indicator drew Jana's attention to a move. A trading strategy would also need to specify when to enter, when to exit and how large a position to take. TradingView uses a broker emulator to simulate orders. Its results depend on assumptions about fills and costs. A mark on the chart alone does not prove that a purchase was possible at that price, or that a profit would remain after fees. [4]

Jana tries different settings until she finds one that works beautifully on an old chart. This risks overfitting: fitting the accidents of a particular history instead of finding a usable rule. TradingView discusses this problem in strategy testing. Recording the variants tried and testing the finished rule on separate data without further tuning can help. Even that test does not promise the same outcome in future trading. [4]

Example · IND

Two correct answers from the same prices

Take these fictional closing prices from completed candles: 100000, 100020 and 100040 USD/BTC. The SMA of all of them is (100000 + 100020 + 100040) / 3 = 100020 USD/BTC. If Jana shortens the calculation to the latest closes, she gets (100020 + 100040) / 2 = 100030 USD/BTC. She has not corrected an error or obtained a better forecast. She has asked a different question: what is the average price over a shorter period? The higher result here reflects the exclusion of the older, lower price.

For the clearest picture, read this entry together with Technical analysis, Moving average, Simple moving average, Backtesting, Overfitting, Timeframe. The reverse links also lead from Moving average, Volume weighted average price, Relative Strength Index, MACD.

01Why does my indicator have different values from someone else’s?

Compare the market and data source first, then the candle interval, selected price, length and weighting method. Also check whether the candle has closed. Differences in these conditions can produce different but correct results.

02Does agreement between several indicators make a trade more certain?

The number of agreeing indicators alone does not establish that. They may use the same prices or derive from one another. Clearly defined and tested rules, including costs, are needed to assess a strategy; even a good historical test cannot guarantee future profit.

DOC · 001TradingView — IndicatorsDocumentation DOC · 002TradingView — Moving averagesDocumentation DOC · 003TradingView — Execution modelDocumentation DOC · 004TradingView — StrategiesDocumentation DOC · 005Fidelity — Simple moving averageDocumentation
Revised: Source-first · No investment advice