finallynitin

NSE Net New Highs

This indicator displays the net number of stocks on NSE (India) making 52-week highs or lows. The count is displayed as a fraction of the total number of stocks in the NSE universe.

Net New Highs (NNH) are calculated by taking the number of new 52-week highs on any given day and subtracting from it the number of new 52-week lows. A market is considered strong (bullish) when NNH are positive, or, in other words, when new highs exceed new lows.

⦿ Background highlight: We consider the bias as positive (bullish) when NNH stays positive for 3 consecutive days, & negative (bullish) when NNH stays negative for 3 consecutive days. Positive bias is highlighted with a green background. Negative bias is highlighted with a red background.

⦿ Moving Average: Another way to decrease whipsaws in analysing positive or negative NNH can be by smoothing them with a moving average. The script uses a 10-day SMA (user can modify this) of NNH. The bias is bullish when the smoothed NNH line is positive and bearish when negative.

⦿ Table: There is an option to display, in a table, the number of stocks making new 52-week highs and new 52-week lows separately. This helps in understanding which of the two metrics is responsible for the other overall net score.

Dependency:
  • The script uses the Pine Seeds service to import custom data hosted in a GitHub repository and accesses it via TradingView as the frontend. So, the number of bars appearing on charts is fully dependent on the amount of historical data available. Any error or omission, if there, is a reflection of the hosted data, & not that of Tradingview.

Limitations:
  • Such data has some limitations, like it can only be updated at EOD (End-of-Day), & only daily-based timeframes can be applied to such data. Irrespective of the intraday changes, only the last saved value on the chart is seen. So, it's best to use this script as EOD, rather than intraday.
  • At the time of publication of this script, historical data was available till the year 2004.

Credits:

نص برمجي محمي
تم نشر هذا النص البرمجي بمصدر غير مفتوح ويمكنك استخدامه بحرية. يمكنك جعله مفضلاً لاستخدامه على الرسم البياني. لا يمكنك مشاهدة أو تعديل كود المصدر الخاص به.
إخلاء المسؤولية

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.

هل تريد استخدام هذا النص البرمجي على الرسم البياني؟