Mansfield Relative Strength (Original Version) by stageanalysis

Stage_Analysis Pro+ 已更新   
The Mansfield Relative Strength (Mansfield RS) is one of the core components of the Stan Weinstein's Stage Analysis method as discussed in his classic book Stan Weinstein's Secrets for Profiting in Bull and Bear Markets.

The Mansfield RS measures the relative performance of the stock compared to an index such as the S&P 500 , or to another stock etc.

However, this should not to be confused with the popular RSI ( Relative Strength Index developed J. Welles Wilder), which is a momentum oscillator that measures the speed and change of price movements on a single stock.

The Mansfield RS indicator consists of the Relative Strength comparison line versus the S&P 500 (default universal setting, but can be edited), and the "Zero Line" – which is the 52 week MA of the Relative Strength line, that's been flattened to create the oscillator style.

How to use the Indicator:

Outperforming – Above the Zero Line
When the Relative Strength line crosses above the Zero Line (it's flattened 52 week RS MA), it is outperforming the index or stock that it's comparing against, and so it is showing stronger relative strength .

Underperforming – Below the Zero Line
When the Relative Strength line crosses below the Zero Line (it's flattened 52 week RS MA), it is underperforming the index or stock that it's comparing against, and so it is showing weaker relative strength .

  • When you first add the indicator is has a coloured background, with a green tint for a postive RS score, and a red tint for a negative RS score. However, this can be turned off, or edited in the indicator settings, in the Style tab. So you can change the colors or remove it and just have the RS line and zero line showing. Both of which can also be edited in the settings.
  • Change the symbol that it compares against. The default is the S&P 500 . But for crypto you might want to use Bitcoin for example. Or you might want to compare against competing stocks in the same peer group, or against the industry group or sector. The choice is yours. But the S&P 500 is a universal measure for the Mansfield RS . So I would recommend leaving it on that unless you have a particular reason to change it as mentioned.
  • MA Length is also an editable setting. This creates the Zero Line. So it will affect the values of the Mansfield RS if you change it. 52 is the default setting, and is set as such for the weekly chart. So I'd recommend not editing it on the weekly chart, but for other timeframes, different settings can be used.

Learn more:
You can learn more about the Mansfield Relative Strength indicator on the Stage Analysis website:
Updated visual
Updated visual to show two different usage options. Background colours off / on
Updated the title that appears on the chart
Added an option to switch to the unflattened version of the indicator, which shows the Zero Line instead as the moving average that it's calculated from. i.e. the 52 week RS MA on the weekly chart.

Displaying the zero line unflattened as the moving average that it's created from, gives an additional piece of information based on the slope of the MA. i.e. is the slope of the moving average:
  • Rising,
  • Flattening
  • Declining
As Stage 2 breakouts that occur below a still declining 52 week RS MA, have a higher probability of failure. So, look for Stage 2 breakouts that have a rising 52 week RS MA.

How to use the Unflattened Version:
  • Go to the indicator settings and untick the "Original Style" checkbox.
  • Then go to the Style tab and untick the Zero Line

Additional Neutral Color parameter to the Background Colors,

  • If the RS line is below the MA, but the Relative Strength Moving Average is still rising. Then the Neutral Color option is shown
  • If the RS line is above the MA, but the Relative Strength Moving Average is still falling. Then the Neutral Color option is shown
Added: Option to edit neutral colour based on whether the Zero Line (Relative Strength Moving Average) is still rising or still falling when the RS line moves above or below the MA.


本著真正的TradingView精神,該腳本的作者將其開源發布,以便交易者可以理解和驗證它。為作者喝彩吧!您可以免費使用它,但在出版物中重複使用此代碼受網站規則的約束。 您可以收藏它以在圖表上使用。