Library · TradingView & Chart Tools
Indicator Settings
Indicator settings control how an indicator is calculated and how it looks. Changing an input such as the length changes its sensitivity, and tuning inputs to fit past prices is overfitting.
Why it matters
Every indicator comes with a settings panel, and sooner or later every chart reader opens it and wonders whether different numbers would work better.
Settings matter because they change what an indicator shows. They are also the place where a chart can be bent to say almost anything. This page assumes the basics from Adding Indicators.
About the platform named here
TradingView is used as the familiar example. edgeTR Academy is not affiliated with TradingView, and the same ideas apply to other charting tools.
What it looks like
How it works: inputs and style
INPUTS
Change the calculation.
- Length or period: how many candles are used
- Source: which price is used, usually the close
- Multipliers and smoothing values
- A different input gives different numbers
STYLE
Change the appearance only.
- Colours and line thickness
- Which lines and labels are visible
- Fixed reference lines, such as 30 and 70 on RSI
- The numbers stay the same
Length (or period) is the most common input. It is the number of candles the formula uses. Because it counts candles, its meaning depends on the timeframe: 20 on a daily chart covers 20 days, and 20 on a 1-hour chart covers 20 hours.
Source is the price fed into the formula. The close is the usual default. Alternatives include the open, the high, the low, or an average of several.
Other inputs depend on the indicator: the number of standard deviations in Bollinger Bands, the three lengths in MACD, a smoothing type.
Style settings change none of the values.
How to read it: sensitivity
| Shorter length | Longer length | |
|---|---|---|
| Reaction to new prices | Fast | Slow |
| Smoothness | Jagged | Smooth |
| Turns and crossings | Many, including brief ones | Few, and later |
| Typical weakness | Reacts to noise | Reports changes late |
This trade-off cannot be removed by choosing well. Making an indicator faster makes it respond to more random movement. Making it smoother makes it later. See Lagging vs Leading Indicators.
In plain words
A bathroom scale that shows every tiny shift in weight flickers as you breathe. One that averages over ten seconds is steady and takes ten seconds to settle. Both weigh the same person. The setting chooses between twitchy and slow.
Where defaults come from
| Indicator | Conventional default |
|---|---|
| RSI | 14 |
| MACD | 12, 26, 9 |
| Bollinger Bands | 20 periods, 2 standard deviations |
| ATR | 14 |
| Stochastic | 14, 3, 3 |
| ADX | 14 |
Most defaults are the values proposed by the indicator’s original author, or values that became customary afterwards. They are conventions. Their main practical advantage is that they are shared: a reading from a default setting means the same thing to everyone who uses it.
Going deeper: overfitting
Any indicator can be adjusted until it matches a stretch of past price closely. Change the length a few times and a moving average will appear to have caught every turn on the chart in view. This is overfitting, also called curve fitting.
The problem is in the method. Past prices contain a real pattern, if any exists, mixed with a large amount of random movement. A setting chosen because it fits best has been fitted to both. The random part does not repeat, so a setting tuned to one period commonly looks ordinary on the next.
The number of options makes this worse. An indicator with three inputs and ten plausible values for each has 1,000 combinations. Among 1,000 attempts on the same history, some will look excellent by chance alone.
Changing a setting for a stated reason is a different thing. Using a longer length to describe a longer horizon is a choice made before looking at the outcome.
Two hypothetical lengths and one jumpHypothetical illustration
A made-up asset closes at 100 for many candles, then at 110 for each candle after that. Two simple moving averages are on the chart.
Five candles after the jump:
- 10-period average: (5 x 100 + 5 x 110) / 10 = 1,050 / 10 = 105
- 50-period average: (45 x 100 + 5 x 110) / 50 = 5,050 / 50 = 101
The short average needs ten candles to catch up fully. The long one needs fifty. If the jump had reversed after three candles, the short average would have moved up and back down, and the long one would hardly have moved. Whether that counts as the short average being responsive or being fooled depends entirely on what happened next, which no setting knows.
What it does NOT mean
- A default is not the best setting. It is the customary one, and its value lies in being shared.
- A setting that fits the past is not a setting that fits the future. A close fit to history is what overfitting produces.
- A faster setting is not an earlier warning. It reacts sooner to everything, including noise.
- There is no secret setting. Every length is a point on the same trade-off between speed and smoothness.
Common mistakes
- Tuning inputs until the chart looks right. The result describes that chart and little else.
- Copying a setting without its timeframe. The same length means a different span of time on another chart.
- Comparing readings made with different inputs. An RSI of 70 with length 7 and with length 14 are different statements.
- Confusing style with substance. Redrawing the 70 line at 80 does not change a single RSI value.
Risks and limitations
- Every setting embodies a trade-off, so none removes late or false readings.
- Settings tuned on past data tend to perform worse on new data than they appeared to.
- Frequent adjustment makes it hard to learn how an indicator normally behaves.
Key takeaway
Inputs change what an indicator calculates and style changes only how it looks. Shorter lengths react faster and to more noise, longer ones are smoother and later, and a setting chosen because it fits past prices has been fitted partly to chance.
Sources and further reading
- How to adjust the indicator settings (opens in a new tab), TradingView. How to open an indicator's settings with the Settings button next to its title
- First steps (Pine Script documentation) (opens in a new tab), TradingView. Describes the Inputs tab (editable settings) and the Style tab (visuals) of an indicator's settings dialog
- Technical Analysis of the Financial Markets, John J. Murphy (1999). Choice of moving average lengths and oscillator periods, and the trade-off between sensitivity and false readings
- New Concepts in Technical Trading Systems, J. Welles Wilder Jr. (1978). Original source of RSI, ATR and ADX and of their 14-period convention