suneetk/tradingview_indicators huggingface dataset:
# Rob Booker Missed Pivot Points

#### Definition

Missed Pivot Points is an indicator used to look for profit targets when an upward trend begins to lose its momentum. In other words, it attempts to find the inevitable correction just before it happens. Missed Pivot Points can be used for the long-term or short-term. Levels are daily, weekly, and monthly, which can be customized according to the user’s preference.

#### History 

The Missed Pivot Points indicator is a key tool for analyzing and determining price targets, particularly for long-term trends. The indicator is promoted by Rob Booker, an experienced entrepreneur and currency trader.

#### Takeaways

During customization, a user can decide which period to focus on (i.e. daily, weekly or monthly), as well as determine the size and boldness of each line, defining the lines for optimal visualization on the chart.

To use the Missed Pivot Points indicator, start by choosing your preferred financial instrument that you enjoy following. Missed Pivot Points will be the ideal target, especially for long-term reversal trades.

#### What to look for

Look for a consolidation of many Missed Pivots, which will present themselves as horizontal lines, one on top of another. According to Rob Booker, these Missed Pivot levels will also line up quite well with the user’s preferred Fibonacci Retracement levels.

When looking for targets on a long-term reversal trade, keep a look out for Missed Pivot Points. Booker believes there are no better targets for this scenario.

#### Summary

Missed Pivot Points are used to set price targets, regardless of the longevity of a trend, although they are more distinct when utilized for long-term reversal trends. Missed Pivot Points are represented as levels on the chart that can be customized to ensure their visibility and importance depending on a trader’s wants or needs.
# Rob Booker Ziv Ghost Pivots

#### Definition

Ziv Ghost Pivots is a dynamic indicator used to get a pivot target level for a specific trade. Within the indicator settings, there’s a variety of options that include period pivots: 4 hour, next day (8 hour), next week, and next month. These settings allow the user to see the pivot target levels for the specific period(s) chosen in the indicator settings.

#### Takeaways

Rob Booker, an experienced entrepreneur and currency trader, suggests using the Ziv Ghost Pivots indicator and choosing solely “next week pivot” for pivot target level projection. This specific method shows the user where the pivot would be that corresponds to the end of the week. Booker claims this strategy to be a terrific “profit target.”

The Ghost Pivot is referred to as such because the target does not technically exist... yet. If you adjust the settings to next week, it is still the current week, and therefore the pivots are a prediction. A ghost pivot displays where the target would exist if today were the first day of next week.

#### What to look for

To get a high probability target, Booker mentions for traders to keep a close eye on Thursdays and Fridays.

#### Summary

The Ziv Ghost Pivot indicator is great for traders who seek out high probability targets. Although the Ghost Pivots don’t exist at the time they are being used, they show what the future levels will look like in order for traders to act on profitable targets. By going to the indicator settings, users can play around with the pivot periods and see which setting works best for them.
# Rob Booker Reversal

#### Definition

The Rob Booker Reversal is based on MACD and Stochastic indicators. A red triangle will appear if the MACD line has crossed 0 from above and the stochastic %K value is greater than the overbought level. A green triangle appears if the MACD line has crossed 0 from below and the stochastic %K value is lower than the oversold level.

#### History 

This indicator was created by Rob Booker, experienced entrepreneur and currency trader.

#### Takeaways

The Rob Booker Reversal is constructed using a combination of MACD and Stochastic indicators. It should be used by those who understand both MACD and Stochastics. When the indicator has been added to your chart, specific inputs can be changed to fit your criteria. In the indicator settings the following items can be changed:

*   Fast MA Period
*   Slow MA Period
*   KPeriod
*   Slowing
*   Stochastic Upper
*   Stochastic Lower

#### Summary

When the Rob Book Reversal is added to your chart, you will notice that either a red triangle or green triangle will appear. Understanding the reasoning behind these triangles is essential. Red triangles appear when the MACD line has crossed 0 from above and the stochastic %K value is greater than the overbought level. Green triangles appear if the MACD line has crossed 0 from below and the stochastic %K value is lower than the oversold level.
# Simple Moving Average

#### Definition

[Moving Average (MA)](https://www.tradingview.com/scripts/movingaverage/) is a price based, lagging (or reactive) indicator that displays the average price of a security over a set period of time. A Moving Average is a good way to gauge momentum as well as to confirm trends, and define areas of support and resistance. Essentially, Moving Averages smooth out the “noise” when trying to interpret charts. Noise is made up of fluctuations of both price and volume. Because a Moving Average is a lagging indicator and reacts to events that have already happened, it is not used as a predictive indicator but rather an interpretive one, used for confirmations and analysis.

Simple Moving Average is an unweighted Moving Average. This means that each day in the data set has equal importance and is weighted equally. As each new day ends, the oldest data point is dropped and the newest one is added to the beginning.

It must be taken into account that, while SMA helps filter out the noise and see the general direction in which the symbol has been moving, it is also slow to react to newer changes. The higher the SMA length is, the longer it will take for a major price change to be notably reflected in it.

#### CALCULATION

A Simple Moving Average with the length of X is a sum of last X values divided by X. Here is an example calculation of an SMA with the length of 3:

Sum of Period Values / Number of Periods  
  
Closing Prices to be used: 5, 6, 7, 8, 9  
  
First Day of 3 Period SMA: (5 + 6 + 7) / 3 = 6  
Second Day of 3 Period SMA: (6 + 7 + 8) / 3 = 7  
Third Day of 3 Period SMA: (7 + 8 + 9) /3 = 8

#### Inputs

![](https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/43560958475/original/4zMEWQ4JLTuXjZHCB7aAmPnF4RHGJ00Jlg.png?1748608676)

##### Length

The time period to be used in calculating the Simple Moving Average. 9 days is the default.

##### Source

Determines what data from each bar will be used in calculations. Close is the default.

##### Offset

Changing this number will move the Simple Moving Average either Forwards or Backwards relative to the current market. 0 is the default.

##### Smoothing section

You can learn more about the inputs in the "Smoothing" section in [this Help Center article](https://www.tradingview.com/support/solutions/43000742042/).

##### Calculation section

You can learn more about the inputs in the "Calculation" section in [this Help Center article](https://www.tradingview.com/support/solutions/43000591555/).
# SMI Ergodic Indicator

#### Definition

The Stochastic Momentum Index (SMI) Ergodic indicator works much like the True Strength Index, except it uses a signal line in its market analysis. By providing double moving averages of price minus the price of the previous price over two timeframes to traders, the SMI Ergodic indicator is able to trigger helpful trading signals. The signal line that aids this effort is an Exponential Moving Average (EMA) of the SMI indicator itself.

#### Calculations

The following is a condensed code for the SMI Ergodic indicator.

//price (user defined, default is closing price)

//method = moving average (user defined, default is EMA)

//prevP = previousPrice

//abs = absolute value

//ma = moving average, index = current bar number

//MT = moreThan

//LT = lessThan

prevP = price\[index-1\];

change = price - prevP;

absChange = abs(price - prevP);

tempChange = ma(method, index, fastPeriod, change);

tempAbsC = ma(method, index, fastPeriod, absChange);

tempChange = ma(method, index, slowPeriod, tempChange);

tempAbsC = ma(method, index, slowPeriod, tempAbsC);

Plot1: SMI = tempChange / tempAbsC;

Plot2: SIGNAL = ma(method, index, sigPeriod, SMI);

//Signals

highSell = smi for last sell signal, reset to max\_negative at each  buy signal;

lowBuy = smi for last buy signal, reset to max\_positive at each sell signal;

sell=crossedBelow(SMI, SIGNAL) AND smi MT topGuide  AND smi MT highSell;

buy=crossedAbove(SMI, SIGNAL) AND smi LT bottomGuide AND smi LT lowBuy;

#### Takeaways and what to look for

In order to control both the quality and quantity of trading associated with this indicator, the trader should look into adjusting the top and bottom guides of the Stochastic Momentum Index. If the signal line is crossed by the SMI, this points to a change in trend. A sell signal is sent to the trader if the SMI is above the top guide and then crosses below the SMI signal line. Inversely, a buy signal is sent to the trader if the SMI is below the bottom guide and then crosses the signal line.

While using this indicator, the 0 that can be seen on the chart divides the bulls from the bears. The bulls are shown above and the bears reference below the signal line.

#### Summary

The SMI Ergodic indicator uses a signal line in its market analysis and shows double moving averages of price minus the price of the previous price over two timeframes. These timeframes can be adjusted and reset by the trader based on preference and trade needs. The indicator triggers helpful trading signals to the trader to aid them in their market analysis.
# SMI Ergodic Oscillator

#### Definition

The Stochastic Momentum Index (SMI) Ergodic Oscillator, often referred to as SMIEO, uses and manipulates the SMI Ergodic indicator’s double moving averages of price minus previous price over two time frames. The indicator uses a signal line, consisting of the Exponential Moving Average (EMA) of the SMI indicator, and subtracts this from the SMI. The oscillator is displayed on the chart as a histogram, and can be altered in its settings by the trader (i.e. input, method (EMA), and period length settings). 

#### Calculations

The following is a condensed code for the SMI Ergodic Oscillator indicator.

//price (user defined, default is closing price)

//method = moving average (user defined, default is EMA)

//prevP = previousPrice, index = current bar number

//abs = absolute value

//ma = moving average

prevP = price\[index-1\];

change = price - prevP;

absChange = abs(price - prevP);

tempChange = ma(method, index, fastPeriod, change);

tempAbsC = ma(method, index, fastPeriod, absChange);

tempChange = ma(method, index, slowPeriod, tempChange);

tempAbsC = ma(method, index, slowPeriod, tempAbsC);

SMI = tempChange / tempAbsC;

SIGNAL = ma(method, index, sigPeriod, SMI);

Plot: SMIEO = SMI - SIGNAL;

#### Takeaways and what to look for

The SMI Ergodic Oscillator is best used with other indicators and tools for technical analysis.

#### Summary

The SMIEO uses and manipulates the SMI Ergodic indicator’s double moving averages of price minus previous price over two timeframes. This aids the trader by giving them helpful trigger signals. The indicator uses a signal line and then subtracts this from the SMI. The trader can change indicator settings, such as input, method (EMA), and period length, depending on their trade needs or preferences.
# Time Weighted Average Price

The Time Weighted Average Price (TWAP) is a trading indicator used to help traders manage their positions in the market. It is calculated by dividing the total value of a security traded over a specific period of time by the total number of shares traded during that period. The resulting value provides a simple and effective way to measure the average price at which a security is traded over a given timeframe.

TWAP is most commonly used to facilitate execution of bigger orders without excessive impact on the market price. The order is split into separate smaller orders which are executed with a delay between them to ensure that the size of the orders does not affect the market negatively. The TWAP value represents the average price for the specified period and can be used to automatically specify a proper price for the order.

#### Inputs

![](https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/43586581518/original/BFtEcRwJKs_wY8Rlq1jXxJBWbtHHgx2J_g.png?1760625608)

##### Anchor Period

Indicator calculation period. This setting specifies the Anchor, i.e. how frequently the TWAP calculation will be reset. For TWAP to work properly, each TWAP period should include several bars inside of it, so e.g. setting both and timeframe to '1D' is not useful because the indicator will be reset on every bar. 

Adding a new custom timeframe through the Interval menu above the chart will also add said timeframe to the Anchor Period dropdown in the indicator settings.

##### Source

The source for the TWAP calculation. Traditionally, the bar's average value is used as the source. By default, the source is ohlc4.

##### Offset

Changing this number will move the TWAP either Forwards or Backwards, relative to the current market. Zero is the default.
# Trend Strength Index

  

The Trend Strength Index indicator measures the tendency of a symbol to either trend steadily or to revert to its mean. The core idea behind TSI is that the more momentum a symbol has relative to its volatility, the more likely it is to follow a trend and less likely to revert to its mean.

![](https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/43494575683/original/ehZUVGLsSQupAodUs2-wwLlIaRJmxC_xYg.png?1719478877)

This indicator analyzes price momentum using the Pearson correlation coefficient, a normalized measure of the linear relationship between time series. Its output shows the correlation between the chart's closing prices and bar index values over a defined number of bars.

A chart's bar index starts at 0 and increases by one for each successive bar. In other words, the bar index represents points on a straight line with a slope of 1. The correlation between this index and price data is a measure of momentum, as it reflects how steadily price moved compared to a consistent linear trend. Traders can use this indicator to gauge the strength and consistency of price activity over time:

*   A value near 1 shows that prices experienced relatively steady increases across successive bars, indicating high upward trend strength.
*   A value near -1 shows that prices experienced relatively steady decreases across successive bars, indicating high downward trend strength. 
*   A value near 0 suggests a lack of trend strength, because prices did not demonstrate a steady positive or negative relationship with the bar index.

#### Inputs

![](https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/43582895562/original/cNuzMtzUleNIwaa4p7d2nNOzNCSJeck3qQ.png?1758892802)

#### Length

The number of bars used to calculate the Trend Strength Index. 

#### Bullish/Bearish Color

The colors that represent a positive trend and a negative trend, respectively.

Changing the transparency of the color affects the gradient that colors the space between the main TSI plot and zero: the gradient starts fully transparent at zero and reaches the transparency specified in the input at 1 for the Bullish Color and -1 for the Bearish Color.
# TRIX

#### Definition

The [TRIX](https://www.tradingview.com/scripts/trix/) indicator is used in technical analysis as a momentum oscillator. It is comprised of the rate of change of a triple exponentially smoothed moving average. The key signals generated by TRIX are divergences and signal line crossovers.

#### History

TRIX was introduced in the early 1980's by Jack Hutson who was an editor for _Technical Analysis of Stocks and Commodities_ magazine.

#### Calculation

There are four components to the TRIX calculation:

1\. Single Smoothed EMA = 18 Period EMA of Closing Price.

2\. Double Smoothed EMA = 18 Period EMA of the Single Smoothed EMA.

3\. Triple Smoothed EMA = 18 Period EMA of the Double Smoothed EMA.

4\. TRIX = 1 Period Percent Change of Triple Smoothed EMA.

There is also typically a signal line which is an EMA of the TRIX line.

#### The basics

TRIX can typically be interpreted that when the value is positive, momentum is up and when the value is negative, momentum is down. Something to keep in mind however, is that as with any indicator comprised of moving averages, there is lag inherently built into the indicator. It may also be noticed that TRIX is very similar to another technical analysis tool, the MACD, however the TRIX has a line that is much smoother.

#### What to look for

##### Divergence

Divergence occurs when price action or movements is not confirmed by the indicator's readings. This can be a sign that the current, underlying momentum does not support price and a reversal is potentially at hand.

*   Bullish TRIX Divergence is when prices is falling but KST is rising.
*   Bearish TRIX Divergence is when price is rising but KST is falling.

#### Crossovers

There are two different type of crossovers when analyzing the TRIX. There are Zero Line crossovers as well as signal line crossovers. Zero Line crossovers typically have a lot of lag and are not always reliable. Signal line crossovers on the other hand, can signify an underlying change in momentum.

*   When the TRIX line is negative yet crosses above the signal line, upside momentum is increasing.
*   When the TRIX line is positive yet crosses below the signal line, downside momentum is increasing.

#### Summary

TRIX is a versatile technical analysis tool that combines trend and momentum into one indicator. Shorter timeframes or more sensitive, and longer time frames reduce sensitivity. Keep in mind though that the longer the period for TRIX, the more lag is apparent in the indicator. This is true of any indicator which employs moving averages.
# Up/Down Volume

#### Definition

The Up/Down Volume indicator reflects the direction in which the trades were moving within each particular bar. To do this, it splits the volume values on the current bar into two: Up Volume (volume calculated when the price went up) and Down Volume (volume calculated when the price went down). If the Up Volume is greater than the Down Volume, then the main trading volume within the current candle occurred at the purchase price.

The resulting values are plotted as a histogram: Up Volume values are plotted above zero, Down Volume values below zero. The difference between the two values are indicated by Delta, displayed as a notch in the color of the prevailing volume.

#### Calculation

To calculate the Up and Down Volume values, the indicator scans the volume from the candles of a smaller timeframe that are included in the current candle and analyzes in which direction the price moved when these candles formed.

To do this, it first determines the timeframe from which the volume values will be taken. A higher timeframe will provide more historical data, but the calculations will be less accurate.

Different lower timeframes can be used to calculate the Up/Down Volume. By default, the timeframe for the calculation is selected automatically, based on the timeframe of the main chart:

Chart timeframe

Timeframe used for the calculation

Seconds

1S

Minutes or Hours

1

Daily

5

Others

60

After the timeframe is selected, each bar of a smaller timeframe is analyzed for the direction in which the price moved.

If the opening price is not equal to the closing price:

*   If the closing price of the current bar is higher than its opening price, it is considered that the price was moving up.
*   If the closing price of the current bar is less than its opening price, the price is considered to have moved down.

If the closing price of the current bar is equal to the opening price:

*   If the closing price of the current bar is greater than or equal to the closing price of the previous one, it is considered that the price was moving up.
*   If the closing price of the current bar is less than the closing price of the previous one, it is considered that the price was moving down.

After that, the volume values on all bars where the price moved in the same direction are summed up. Thus, Up Volume shows how much volume was traded when the price was moving up, and Down Volume indicates for trades while movement down.

#### Inputs

![](https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/43582920193/original/939HV45rdQKOjmj1Syb3ll3HABT8ZQ4b0A.png?1758897699)

##### Use custom timeframe

Determines whether the lower timeframe used for the calculation is selected automatically (by default) or manually. If checked, the timeframe will be chosen based on the Timeframe input instead.

##### Timeframe

Allows you to specify a specific timeframe that the indicator will check to look for bars to use while calculating the sum of volumes. Higher timeframes provide more historical data, but the calculation becomes less precise. This field is only used when the Use custom timeframe option is enabled.
# Visible Average Price

#### Definition

The Visible Average Price indicator displays the average stock price based on the bars currently visible on the chart. If the chart is scaled or moved and the visible bars have changed (new bars have appeared in the visible area of the chart, others have disappeared), the indicator will be recalculated.

#### Inputs

![](https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/43586600987/original/3Iehx3goxTzjpCXcoovpoh15C086H4AHqQ.png?1760630112)

##### Source

Specifies the source used to calculate the average price.

#### Style

![](https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/43586601043/original/qNyNnWz1nmTrFGlXouOgKaRrBqHVSQ9bbQ.png?1760630125)

#### Avg Price

Can toggle the visibility of the Avg Price as well as the visibility of a price line showing the actual current price of the Avg Price. Can also select the Avg Price's color and line thickness.