IIndicatorsAccessor.HighMinusLow
method · IIndicatorsAccessor · cAlgo.API.Internals
DesktopCLICloud
The High Minus Low indicator is used to compute the range of daily bars
Overloads
| Signature |
|---|
HighMinusLow() |
HighMinusLow(Bars bars) |
HighMinusLow()
The High Minus Low indicator is used to compute the range of daily bars
HighMinusLow HighMinusLow()
api.Indicators.HighMinusLow() -> HighMinusLow
Returns HighMinusLow — High Minus Low indicator instance
Examples
var highMinusLow = Indicators.HighMinusLow();
Print("Range of the last closed bar: {0}", highMinusLow.Result.Last(1));
highMinusLow = api.Indicators.HighMinusLow()
api.Print(f"Range of the last closed bar: {highMinusLow.Result.Last(1)}")
HighMinusLow(Bars bars)
The High Minus Low indicator is used to compute the range of daily bars
HighMinusLow HighMinusLow(Bars bars)
api.Indicators.HighMinusLow(bars: Bars) -> HighMinusLow
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 |
Returns HighMinusLow — High Minus Low indicator instance
Examples
var dailyBars = MarketData.GetBars(TimeFrame.Daily);
var dailyRange = Indicators.HighMinusLow(dailyBars);
Print("Range of the last closed daily bar: {0}", dailyRange.Result.Last(1));
dailyBars = api.MarketData.GetBars(TimeFrame.Daily)
dailyRange = api.Indicators.HighMinusLow(dailyBars)
api.Print(f"Range of the last closed daily bar: {dailyRange.Result.Last(1)}")