IIndicatorsAccessor
interface cAlgo.API.Internals
DesktopCLICloud
Accessor to Indicators
Definition
public interface IIndicatorsAccessor
Namespace: cAlgo.API.Internals · Group: Indicators
Examples
public partial class IndicatorsSample : Robot
{
private RelativeStrengthIndex _rsi;
private SimpleMovingAverage _sma;
protected override void OnStart()
{
_rsi = Indicators.RelativeStrengthIndex(Bars.ClosePrices, 14);
_sma = Indicators.SimpleMovingAverage(Bars.ClosePrices, 50);
}
protected override void OnBar()
{
if (_rsi.Result.Last(1) < 30 && Bars.ClosePrices.Last(1) > _sma.Result.Last(1))
Print("RSI is oversold while the price is above the 50 period SMA");
}
}
class IndicatorsSample():
def on_start(self):
self.rsi = api.Indicators.RelativeStrengthIndex(api.Bars.ClosePrices, 14)
self.sma = api.Indicators.SimpleMovingAverage(api.Bars.ClosePrices, 50)
def on_bar(self):
if self.rsi.Result.Last(1) < 30 and api.Bars.ClosePrices.Last(1) > self.sma.Result.Last(1):
api.Print("RSI is oversold while the price is above the 50 period SMA")
{
"AccessRights": "None"
}
Methods
| Name | Description |
|---|---|
AcceleratorOscillator 2 overloadsDesktopCLICloudAcceleratorOscillator | Initializes the AcceleratorOscillator indicator instance |
AccumulationDistribution 2 overloadsDesktopCLICloudAccumulationDistribution | The Accumulation Distribution indicator shows bullish or bearish trends. |
AccumulativeSwingIndex 2 overloadsDesktopCLICloudAccumulativeSwingIndex | Initializes the Accumulative Swing Index indicator |
Alligator 2 overloadsDesktopCLICloudAlligator | Legendary trader Bill Williams, an early pioneer of market psychology, developed the trend-following Alligator indicator, which follows the premise that financial markets and individual securities trend just 15% to 30% of the time while grinding through sideways ranges the other 70% to 85% of the time. |
Aroon 2 overloadsDesktopCLICloudAroon | The Aroon indicator is used to identify trends and their reversals. |
AverageDirectionalMovementIndexRating 2 overloadsDesktopCLICloudAverageDirectionalMovementIndexRating | The Average Directional Movement Index Rating (ADXR) measures the strength of the Average Directional Movement Index (ADX). It's calculated by taking the average of the current ADX and the ADX from one time period before. |
AverageTrueRange 2 overloadsDesktopCLICloudAverageTrueRange | Average true range. An indicator providing the degree of price volatility. |
AwesomeOscillator 2 overloadsDesktopCLICloudAwesomeOscillator | Initializes the AwesomeOscillator indicator instance |
BearsPower 2 overloadsDesktopCLICloudBearsPower | Bears Power shows the maximum bearish strength during the time period. |
BollingerBandsDesktopCLICloudBollingerBands | The Bollinger Bands indicator shows volatility. |
BullsPower 2 overloadsDesktopCLICloudBullsPower | Bulls Power shows the maximum bullish strength during the time period. |
CenterOfGravityDesktopCLICloudCenterOfGravity | The Center of Gravity (COG) indicator is a technical indicator developed by John Ehlers in 2002, used to identify potential turning points in the price as early as possible. |
ChaikinMoneyFlow 2 overloadsDesktopCLICloudChaikinMoneyFlow | The Chaikin Money Flow indicator measures the money flow volume over a specific period. |
ChaikinOscillator 2 overloadsDesktopCLICloudChaikinOscillator | The Chaikin Oscillator indicator is the difference between two moving averages over the Chaikin Money Flow. |
ChaikinVolatility 2 overloadsDesktopCLICloudChaikinVolatility | The Chaikin Volatiliy indicator measures the trading range between the high and the low prices. |
ChandeMomentumOscillator 2 overloadsDesktopCLICloudChandeMomentumOscillator | The Chande Momentum Oscillator (CMO) is a technical indicator designed to measure the momentum of a financial instrument. |
CommodityChannelIndex 2 overloadsDesktopCLICloudCommodityChannelIndex | The Commodity Channel Index identifies overbought and oversold conditions, price reversals and trend strength. |
CyberCycleDesktopCLICloudCyberCycle | The Cyber Cycles Oscillator is an indicator designed by John Ehlers, it is used for isolating the cycle component of the market from its trend counterpart. |
DeMarker 2 overloadsDesktopCLICloudDeMarker | The DeMarker (DeM) is an oscillator that compares the most recent maximum and minimum prices to the previous period's equivalent price. |
DetrendedPriceOscillatorDesktopCLICloudDetrendedPriceOscillator | The Detrended Price Oscillator shows intermediate overbought and oversold levels. |
DirectionalMovementSystem 3 overloadsDesktopCLICloudDirectionalMovementSystem | The Directional Movement System is composed of three indicators that show if the market is trending and provide signals. |
DonchianChannel 2 overloadsDesktopCLICloudDonchianChannel | The Donchian channel is a volatility indicator forming a channel between the highest high and the lowest low of the chosen period. |
DoubleExponentialMovingAverageDesktopCLICloudDoubleExponentialMovingAverage | The Double Exponential Moving Average (DEMA) is a combination of smoothed exponential moving averages (EMA) and a basic EMA |
EaseOfMovement 2 overloadsDesktopCLICloudEaseOfMovement | The Ease Of Movement indicator relates the price change to the volume. |
ElderForceIndex 2 overloadsDesktopCLICloudElderForceIndex | Elder's Force Index measures the amount of power used to move the price of an asset. |
ElderRayIndex 2 overloadsDesktopCLICloudElderRayIndex | Elder Ray Index shows the maximum bullish and bearish strengths during the time period. |
Envelopes 2 overloadsDesktopCLICloudEnvelopes | The Envelopes indicator is used to visualize potential trading ranges and overbought/oversold conditions. |
ExponentialMovingAverageDesktopCLICloudExponentialMovingAverage | The Exponential Moving Average smoothes the price data producing a trend indicator. |
FractalAdaptiveMovingAverage 2 overloadsDesktopCLICloudFractalAdaptiveMovingAverage | The Fractal Adaptive Moving Average (FRAMA) indicator is a type of moving average that adjusts its sensitivity to price movements based on market volatility |
FractalChaosBands 2 overloadsDesktopCLICloudFractalChaosBands | The Fractal Chaos Bands indicator breaks down large trends into predictable patterns. |
Fractals 2 overloadsDesktopCLICloudFractals | The fractal indicator is a trading indicator used in technical analysis that is used to identify potential trend reversal points in a market. |
GatorOscillator 2 overloadsDesktopCLICloudGatorOscillator | Gator Oscillator (GO) supplements the Alligator indicator and is used together with it. |
GetIndicator 2 overloadsDesktopCLICloudTIndicator | Initializes the custom indicator |
HighMinusLow 2 overloadsDesktopCLICloudHighMinusLow | The High Minus Low indicator is used to compute the range of daily bars |
HistoricalVolatilityDesktopCLICloudHistoricalVolatility | The Historical Volatility indicator is derived from time series of past market prices. |
HullMovingAverageDesktopCLICloudHullMovingAverage | The Hull Moving Average is a more responsive moving average that nearly removes lag and improves smoothing at the same time. |
IchimokuKinkoHyo 2 overloadsDesktopCLICloudIchimokuKinkoHyo | Ichimoku Kinko Hyo Indicator is a moving average based trend identification system. |
KaufmanAdaptiveMovingAverage 2 overloadsDesktopCLICloudKaufmanAdaptiveMovingAverage | The Kaufman's Adaptive Moving Average (KAMA) indicator is a type of adaptive moving average designed to adjust its smoothing factor based on market volatility |
KeltnerChannels 2 overloadsDesktopCLICloudKeltnerChannels | Initializes the Keltner Channels indicator instance |
LinearRegressionForecastDesktopCLICloudLinearRegressionForecast | Linear Regression Forecast is a trend indicator used to forecast values using the Least Squares Fit method. |
LinearRegressionInterceptDesktopCLICloudLinearRegressionIntercept | The Linear Regression Intercept can be used together with the Linear Regression Slope indicator to plot the Linear Regression Line. |
LinearRegressionRSquaredDesktopCLICloudLinearRegressionRSquared | The R Squared or coefficient of determination indicator's main purpose is the confirm the strength of the market. |
LinearRegressionSlopeDesktopCLICloudLinearRegressionSlope | The Linear Regression Slope indicator is intended to measure the direction and strength of a trend. |
MacdCrossOver 2 overloadsDesktopCLICloudMacdCrossOver | The MACD Line with the Signal line and their difference as a histogram. |
MacdHistogram 2 overloadsDesktopCLICloudMacdHistogram | The MACD Histogram is a momentum indicator measured by typically subtracting a 26 period moving average from a 12 period moving average. |
MacdOscillatorMovingAverage 2 overloadsDesktopCLICloudMacdOscillatorMovingAverage | The Oscillator of a Moving Average (OsMA) over the MACD. |
MarketFacilitationIndex 2 overloadsDesktopCLICloudMarketFacilitationIndex | The indicator shows the effectiveness of price movement by computing the price movement per volume unit |
MassIndex 2 overloadsDesktopCLICloudMassIndex | The Mass Index indicator is used to predict trend reversals. |
MedianPrice 2 overloadsDesktopCLICloudMedianPrice | The Median indicator is the average of the high and the low. |
MomentumOscillatorDesktopCLICloudMomentumOscillator | The Momentum Oscillator measures the momentum of the price. |
MoneyFlowIndex 2 overloadsDesktopCLICloudMoneyFlowIndex | The Money Flow Index measures the strength of the money flow. |
MovingAverageDesktopCLICloudMovingAverage | Moving Average indicators are used to smooth data producing trend indicators. |
NegativeVolumeIndexDesktopCLICloudNegativeVolumeIndex | The Negative Volume Index is a calculation of the percentage change in price on days when trading volume declines. |
OnBalanceVolumeDesktopCLICloudOnBalanceVolume | The On Balance Volume indicator relates price and volume. |
OscillatorMovingAverageDesktopCLICloudOscillatorMovingAverage | The Oscillator of a Moving Average (OsMA) is a technical indicator that shows the difference between an oscillator and its moving average over a given period of time. |
ParabolicSAR 2 overloadsDesktopCLICloudParabolicSAR | The Parabolic SAR indicator identifies potential reversals in the market direction |
PolynomialRegressionChannelsDesktopCLICloudPolynomialRegressionChannels | Polynomial Regression Channel (PRC) is an RTX Extension indicator that draws a best fit n-degree polynomial regression line through a recent period of data. |
PositiveVolumeIndexDesktopCLICloudPositiveVolumeIndex | The Positive Volume Index is a calculation of the percentage change in price on days when trading volume increased. |
PriceOscillatorDesktopCLICloudPriceOscillator | The Price Oscillator calculates the difference between two moving averages. |
PriceROCDesktopCLICloudPriceROC | The Price Rate of Change indicator is the percentage change of the current price and the price N periods ago. |
PriceVolumeTrendDesktopCLICloudPriceVolumeTrend | The Price Volume Trend indicator shows the relationship between price and volume. |
RainbowOscillatorDesktopCLICloudRainbowOscillator | The Rainbow Oscillator is a process of repetitive smoothing of simple moving averages resulting in a full spectrum of trends. |
RelativeStrengthIndexDesktopCLICloudRelativeStrengthIndex | The Relative Strength Index indicator measures turns in price by measuring turns in momentum. |
RelativeVigorIndex 2 overloadsDesktopCLICloudRelativeVigorIndex | The Relative Vigor Index is a momentum oscillator, measuring the strength of a trend. |
SimpleMovingAverageDesktopCLICloudSimpleMovingAverage | The simple moving average smoothes the price data producing a trend indicator |
StandardDeviationDesktopCLICloudStandardDeviation | The Standard Deviation indicator shows volatility. |
StochasticOscillator 4 overloadsDesktopCLICloudStochasticOscillator | The Stochastic Oscillator is a momentum indicator that aims to show price reversals by comparing the closing price to the price range. |
SupertrendDesktopCLICloudSupertrend | Supertrend is one of the most popular trend trading indicators |
SwingIndex 2 overloadsDesktopCLICloudSwingIndex | Returns the Swing Index indicator instance. |
TickVolumeDesktopCLICloudTickVolume | Tick Volume gives you the number of ticks for each bar. |
TimeSeriesMovingAverageDesktopCLICloudTimeSeriesMovingAverage | The Time Series Moving Average is a moving average based on linear regression |
TradeVolumeIndexDesktopCLICloudTradeVolumeIndex | Trade Volume Index indicator measures the amount of money flowing in and out of an asset. |
TriangularMovingAverageDesktopCLICloudTriangularMovingAverage | The Triangular Moving Average is averaged twice to produce a double smoothed trend indicator |
TripleExponentialMovingAverageDesktopCLICloudTripleExponentialMovingAverage | The Triple Exponential Moving Average (TEMA) is a technical indicator that provides a smoothed representation of price data by applying three levels of exponential smoothing |
TrixDesktopCLICloudTrix | The Trix indicator shows the slope of a triple-smoothed exponential moving average. |
TrueRange 2 overloadsDesktopCLICloudTrueRange | Initializes the True Range indicator. |
TypicalPrice 2 overloadsDesktopCLICloudTypicalPrice | The Typical Price indicator is the average of the high, low, and closing prices. |
UltimateOscillator 2 overloadsDesktopCLICloudUltimateOscillator | Returns the Ultimate Oscillator indicator instance. |
VariableIndexDynamicAverage 2 overloadsDesktopCLICloudVariableIndexDynamicAverage | The Variable Index Dynamic Average (VIDYA) indicator is a type of moving average that dynamically adjusts its smoothing period based on market volatility. |
VerticalHorizontalFilterDesktopCLICloudVerticalHorizontalFilter | The Vertical Horizontal Filter indicator measures the level of trend activity. |
VolumeOscillator 2 overloadsDesktopCLICloudVolumeOscillator | The Volume Oscillator indicator is the difference between two moving averages. |
VolumeROC 2 overloadsDesktopCLICloudVolumeROC | Volume Rate of Change Indicator measures the rate of change of the tick volume. |
WeightedClose 2 overloadsDesktopCLICloudWeightedClose | The WeightedClose indicator is an average of each day's price with extra weight given to the closing price. |
WeightedMovingAverageDesktopCLICloudWeightedMovingAverage | The Weighted Moving Average smoothes the price data producing a trend indicator. |
WellesWilderSmoothingDesktopCLICloudWellesWilderSmoothing | Welles Wilder Smoothing eliminates noise to identify the trend. |
WilliamsAccumulationDistribution 2 overloadsDesktopCLICloudWilliamsAccumulationDistribution | The Williams Accumulation Distribution indicator shows bullish or bearish trends. |
WilliamsPctR 2 overloadsDesktopCLICloudWilliamsPctR | The Williams Percent R indicator is a momentum indicator measuring overbought and oversold levels. |
Deprecated members (35)
CommodityChannelIndex CommodityChannelIndex(Bars bars, int periods)— Use overload with DataSeries parameter.TIndicator GetIndicator(MarketSeries marketSeries, object[] parameterValues)— Use overload with Bars instead.HighMinusLow HighMinusLow(MarketSeries marketSeries)— Use overload with Bars instead.TrueRange TrueRange(MarketSeries marketSeries)— Use overload with Bars instead.SwingIndex SwingIndex(MarketSeries marketSeries, int limitMoveValue)— Use overload with Bars instead.AccumulativeSwingIndex AccumulativeSwingIndex(MarketSeries marketSeries, int limitMoveValue)— Use overload with Bars instead.Aroon Aroon(MarketSeries marketSeries, int periods)— Use overload with Bars instead.UltimateOscillator UltimateOscillator(MarketSeries marketSeries, int cycle1, int cycle2, int cycle3)— Use overload with Bars instead.DirectionalMovementSystem DirectionalMovementSystem(MarketSeries marketSeries, int periods)— Use overload with Bars instead.ParabolicSAR ParabolicSAR(MarketSeries marketSeries, double minAf, double maxAf)— Use overload with Bars instead.StochasticOscillator StochasticOscillator(MarketSeries marketSeries, int kPeriods, int kSlowing, int dPeriods, MovingAverageType maType)— Use overload with Bars instead.MedianPrice MedianPrice(MarketSeries marketSeries)— Use overload with Bars instead.WilliamsAccumulationDistribution WilliamsAccumulationDistribution(MarketSeries marketSeries)— Use overload with Bars instead.FractalChaosBands FractalChaosBands(int periods)— Periods parameter is not used. Use FractalChaosBands() instead.FractalChaosBands FractalChaosBands(MarketSeries marketSeries, int periods)— Periods parameter is not used. Use FractalChaosBands(Bars) instead.FractalChaosBands FractalChaosBands(MarketSeries marketSeries)— Use overload with Bars instead.TypicalPrice TypicalPrice(MarketSeries marketSeries)— Use overload with Bars instead.CommodityChannelIndex CommodityChannelIndex(MarketSeries marketSeries, int periods)— Use overload with Bars instead.MassIndex MassIndex(MarketSeries marketSeries, int periods)— Use overload with Bars instead.ChaikinVolatility ChaikinVolatility(MarketSeries marketSeries, int periods, int rateOfChange, MovingAverageType maType)— Use overload with Bars instead.WilliamsPctR WilliamsPctR(MarketSeries marketSeries, int periods)— Use overload with Bars instead.WeightedClose WeightedClose(MarketSeries marketSeries)— Use overload with Bars instead.ChaikinMoneyFlow ChaikinMoneyFlow(MarketSeries marketSeries, int periods)— Use overload with Bars instead.EaseOfMovement EaseOfMovement(MarketSeries marketSeries, int periods, MovingAverageType maType)— Use overload with Bars instead.MoneyFlowIndex MoneyFlowIndex(MarketSeries marketSeries, int periods)— Use overload with Bars instead.VolumeOscillator VolumeOscillator(MarketSeries marketSeries, int shortTerm, int longTerm)— Use overload with Bars instead.VolumeROC VolumeROC(MarketSeries marketSeries, int periods)— Use overload with Bars instead.AverageTrueRange AverageTrueRange(MarketSeries marketSeries, int periods, MovingAverageType maType)— Use overload with Bars instead.DonchianChannel DonchianChannel(MarketSeries marketSeries, int periods)— Use overload with Bars instead.IchimokuKinkoHyo IchimokuKinkoHyo(MarketSeries marketSeries, int tenkanSenPeriods, int kijunSenPeriods, int senkouSpanBPeriods)— Use overload with Bars instead.AwesomeOscillator AwesomeOscillator(MarketSeries marketSeries)— Use overload with Bars instead.AcceleratorOscillator AcceleratorOscillator(MarketSeries marketSeries)— Use overload with Bars instead.KeltnerChannels KeltnerChannels(MarketSeries marketSeries, int maPeriod, MovingAverageType maType, int atrPeriod, MovingAverageType atrMaType, double bandDistance)— Use overload with Bars instead.Alligator Alligator(int jawsPeriods, int jawsShift, int teethPeriods, int teethShift, int lipsPeriods, int lipsShift)— Specify moving average type (Simple or Smoothed)Vidya Vidya(DataSeries source, int periods, double r2Scale)— Use VariableIndexDynamicAverage instead