OPEN-SOURCE SCRIPT

Stocks Above 5-Day Average (FOMO)

Overview
Inspired by Matt Carusos's FOMO indicator, this breadth indicator is designed to provide a visual representation of the percentage of stocks within major indices that are trading above their 5-day moving average.

Functionality
The indicator plots the percentage of stocks trading above their 5-day moving average for the following indices:
  • S&P 500
  • Nasdaq
  • Russell 2000
  • Dow Jones
  • All Markets (MMFD)


The indicator includes two horizontal lines:
  • Upper Threshold: Default at 85%
  • Lower Threshold: Default at 15%

These lines are used to identify potential overbought (above upper threshold) or oversold (below lower threshold) conditions.

Plot Shapes:

Small circles are plotted at the points where the percentage of stocks crosses the upper or lower thresholds, with colors matching the respective index.

Table:

The current percentage of stocks above the 5-day average for each index.
A warning sign (⚠️) is shown in the table if the percentage crosses the upper or lower threshold, regardless of whether the index plot is enabled or not.
breadthBreadth IndicatorsCyclessentiment

Script open-source

In pieno spirito TradingView, l'autore di questo script lo ha pubblicato open-source, in modo che i trader possano comprenderlo e verificarlo. Un saluto all'autore! È possibile utilizzarlo gratuitamente, ma il riutilizzo di questo codice in una pubblicazione è regolato dal nostro Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.

Vuoi usare questo script sui tuoi grafici?

Declinazione di responsabilità