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

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明