Oscillator (OSC)


Namespace: OpenQuant.API.Indicators
Assembly: OpenQuant.API (in OpenQuant.API.dll)

Syntax

Visual Basic (Declaration)
Public Class OSC
    Inherits Indicator
C#
public class OSC : Indicator
C++
ref class OSC : Indicator
J#
public class OSC extends Indicator
JScript
public class OSC extends Indicator

Remarks

An oscillator is the simple difference between two Moving Averages.
One trading rule is similar to the crossover system used in Moving Averages. In fact, the oscillator is another method of using two Moving Averages. Sell when the oscillator crosses the zero line from above to below. Buy when the oscillator crosses from below to above. Some traders buy the valleys and sell the peaks of the oscillator.

Formula:

Inheritance Hierarchy

System.Object
   OpenQuant.API.Indicator
      OpenQuant.API.Indicators.OSC

Thread Safety

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

See Also