QuantStudio Financial Data Analysis and Trading Framework

R Class

Williams? %R (R)

For a list of all members of this type, see R Members.

System.Object
   RQuant.Indicator.TTimeArray
      RQuant.Indicator.TDoubleArray
         RQuant.Indicator.TIndicator
            RQuant.Indicator.R

[Visual Basic]
Public Class R
    Inherits TIndicator
[C#]
public class R : TIndicator

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

Williams? %R is a momentum indicator that measures overbought/oversold levels. Williams? %R was developed by Larry Williams.

The interpretation of Williams' %R is very similar to that of the Stochastic Oscillator except that %R is plotted upside-down and the Stochastic Oscillator has internal smoothing. To display the Williams? %R indicator on an upside-down scale, it is usually plotted using negative values (e.g., -20%). For the purpose of analysis and discussion, simply ignore the negative symbols. Readings in the range of 80 to 100% indicate that the security is oversold while readings in the 0 to 20% range suggest that it is overbought. As with all overbought/oversold indicators, it is best to wait for the security's price to change direction before placing your trades. For example, if an overbought/oversold indicator (such as the Stochastic Oscillator or Williams' %R) is showing an overbought condition, it is wise to wait for the security's price to turn down before selling the security.

This indicator is described in more details in the Steve Achelis' book "Technical Analysis from A to Z".

Formula:

Example

TDataManager.cd("Demo");

TDailyArray Daily1 = TDataManager.GetStock("YHOO").DailyArray;

DateTime Date1 = DateTime.Parse("1999/02/08"); 
DateTime Date2 = DateTime.Parse("2000/12/29"); 

TDailyArray Daily = Daily1.Clone(Date1, Date2);

TCanvas Canvas = new TCanvas("Canvas","R DEMO",600,400);
    
Canvas.Divide(1,2);

R R = new R(Daily, 14);

Canvas.cd(1);
Daily.Draw("c");

Canvas.cd(2);
R.Draw(Color.Red);

Requirements

Namespace: RQuant.Indicator

Assembly: RQuant.Indicator (in RQuant.Indicator.dll)

See Also

R Members | RQuant.Indicator Namespace