RSC Mansfield Screener

Category: Screeners By: Iván González Created: April 7, 2026, 8:23 AM
April 7, 2026, 8:23 AM
Screeners
0 Comments

This screener calculates the Mansfield Relative Strength Comparative, a classic indicator that measures how a stock performs compared to a benchmark index.

 

The RSC Mansfield compares the current price ratio (stock/index) against its own moving average. When the RSC is positive, the stock is outperforming the index. When negative, it is underperforming. The direction of the RSC matters more than the absolute value — a rising RSC means the stock is gaining relative strength.

 

Parameters:

  • mult — Scaling factor. Default is 10 (standard Mansfield scale). Increase for more sensitivity.
  • prd — Lookback period for the moving average. Use 52 on weekly charts or 252 on daily charts to get the standard 1-year comparison.

 

Benchmark:

Change the EQUITYFRAME line to match your reference index. Examples:

  • S&P 500: EQUITYFRAME("Índ. - S&P","SP500")
  • CAC 40: EQUITYFRAME("Índ. - CAC","PX1")
  • DAX: EQUITYFRAME("Índ. - DAX","DAX")

 

Note: The market and instrument names inside EQUITYFRAME depend on your platform language. Don’t worry about getting the exact names right — when you run the screener for the first time, a dialog window will open asking you to select the market and reference instrument. Once selected, the code will automatically rewrite itself with the correct names.

 

Tip: To find leaders, sort the screener results by RSC descending. Stocks at the top with a rising RSC are showing the strongest relative momentum.

 

//--------------------------------------------
// SCR_RSC Mansfield Screener
// version = 0
// 03.04.2026
// Iván González @ www.prorealcode.com
// Sharing ProRealTime knowledge
//--------------------------------------------
// Relative Strength Comparative (Mansfield)
// Compares any instrument against a benchmark index
//
// Parameters:
//   mult = scaling factor (default 10, standard Mansfield)
//   prd  = lookback period (52 for weekly, 252 for daily)
//
// Interpretation:
//   RSC > 0 → outperforming the index
//   RSC < 0 → underperforming the index
//   Rising RSC → improving relative strength
//--------------------------------------------
mult = 10
prd = 52

// Benchmark index (change to your reference)
EQUITYFRAME("Índ. - Top Euronext","PXI")
CloseInd = Close

EQUITYFRAME(default)
CloseVal = Close

// Relative Strength ratio
Ratio = CloseVal / CloseInd

// Moving average of the ratio over prd periods
SMA = average[prd](Ratio)

// Mansfield formula: ((Ratio / SMA) - 1) * mult
RSCMansfield = (Ratio / SMA - 1) * mult

SCREENER(RSCMansfield AS "RSC Mansfield")

Download
Filename: SCR_RSC-Mansfield-Screener.itf
Downloads: 28
Iván González Master
As an architect of digital worlds, my own description remains a mystery. Think of me as an undeclared variable, existing somewhere in the code.
Author’s Profile

Comments

Logo Logo
Loading...