Iván González

RSC Mansfield Screener

Category: Screeners By: Iván González Created: April 7, 2026, 8:23 AM
April 7, 2026, 8:23 AM
Screeners
3 Comments
RSC Mansfield Screener

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: 94
Iván González
Iván González Legend
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

argos26
4 months ago
#

Hola.

 

Gracias por tu trabajo y esfuerzo.

 

Tengo un problema con el screener.

 

En la linea 24 ponga lo qeu ponga (con parentesis, sin parentesis, con comillas sin comillas.... Me da error en la linea 24.

 

En el ultimo intento lo tengo puesto así: EQUITYFRAME (DAX).

 

Podrías ayudarme.

 

Gracias.

 

Saludos

Iván González
4 months ago
#

Buenas. A mí no me da error (estoy con la V13). Con la versión nueva se abre una ventana para que elijas el activo a comparar (ahora no recuerdo si con la V12 también aparecía...). Por ejemplo, para el DAX sería así: EQUITYFRAME("Índ. - Alemania","DAX") Tienes más informacion aquí: https://www.prorealcode.com/documentation/equityframe/

argos26
4 months ago
#

Hola. Gracias por la respuesta. Esperare a qeu la V13 sea obligatoria. Me da pereza meterme en jaleos ahora. REitero las gracias. Saludos

ProRealCode ProRealCode
Loading...