OPEN-SOURCE SCRIPT

7 Week Rule

已更新
The 7 week rule was shared by Gil Morales in his book “Trade Like an O’Neil Disciple”. The rule is described as: Stocks that have shown a tendency to “obey” or “respect” the 10-day moving average for at least 7 weeks in an uptrend should often be sold once the stock violates the 10-day line. A “violation” is defined as a close below the 10-day moving average followed by a move on the next day below the intraday low of the first day.

This indicator makes using the 7 week rule easy. Once a stock has closed above its selected moving average (10SMA by default) for 35 days the 7 week rule is triggered. Once the stock then “violates” the moving average, a sell signal is printed on the chart.

Indicator Customizations
  • Moving Average Length & Type
  • Show or Hide Moving Average
  • Show Running Count of Days Above Selected MA
  • Highlight When 7 Week Rule Triggers
  • Option to Show First Day Above MA


Indicator is dynamic and will continue the count if no violation occurs.
快照
版本注释
Small change to day 1 label placement
gilmogilmoralesibdMoving AveragesPortfolio managementTrend Analysis

开源脚本

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

想在图表上使用此脚本?


Trusted Pine programmer. Send me a message for script development.
更多:

免责声明