Skip to content

IIndicatorsAccessor.DeMarker

method · IIndicatorsAccessor · cAlgo.API.Internals

DesktopCLICloud

The DeMarker (DeM) is an oscillator that compares the most recent maximum and minimum prices to the previous period's equivalent price.

Overloads

DeMarker(int periods)

The DeMarker (DeM) is an oscillator that compares the most recent maximum and minimum prices to the previous period's equivalent price.

DeMarker DeMarker(int periods)
api.Indicators.DeMarker(periods: int) -> DeMarker

Parameters

Name C# type Python type Description
periods int int Moving Average Period

Returns DeMarker — DeMarker

Examples

var deMarker = Indicators.DeMarker(14);
if (deMarker.Result.Last(1) < 0.3)
    Print("DeMarker is oversold: {0}", deMarker.Result.Last(1));
deMarker = api.Indicators.DeMarker(14)
if deMarker.Result.Last(1) < 0.3:
    api.Print(f"DeMarker is oversold: {deMarker.Result.Last(1)}")

DeMarker(Bars bars, int periods)

The DeMarker (DeM) is an oscillator that compares the most recent maximum and minimum prices to the previous period's equivalent price.

DeMarker DeMarker(Bars bars, int periods)
api.Indicators.DeMarker(bars: Bars, periods: int) -> DeMarker

Parameters

Name C# type Python type Description
bars Bars Bars The Bars that will be used by indicator, you can pass another timeframe/symbol bars
periods int int Moving Average Period

Returns DeMarker — DeMarker

Examples

var dailyBars = MarketData.GetBars(TimeFrame.Daily);
var dailyDeMarker = Indicators.DeMarker(dailyBars, 14);
Print("Daily DeMarker: {0}", dailyDeMarker.Result.Last(1));
dailyBars = api.MarketData.GetBars(TimeFrame.Daily)
dailyDeMarker = api.Indicators.DeMarker(dailyBars, 14)
api.Print(f"Daily DeMarker: {dailyDeMarker.Result.Last(1)}")