IIndicatorsAccessor.IchimokuKinkoHyo
method · IIndicatorsAccessor · cAlgo.API.Internals
DesktopCLICloud
Ichimoku Kinko Hyo Indicator is a moving average based trend identification system.
Overloads
| Signature |
|---|
IchimokuKinkoHyo(int tenkanSenPeriods, int kijunSenPeriods, int senkouSpanBPeriods) |
IchimokuKinkoHyo(Bars bars, int tenkanSenPeriods, int kijunSenPeriods, int senkouSpanBPeriods) |
IchimokuKinkoHyo(int tenkanSenPeriods, int kijunSenPeriods, int senkouSpanBPeriods)
Ichimoku Kinko Hyo Indicator is a moving average based trend identification system.
IchimokuKinkoHyo IchimokuKinkoHyo(int tenkanSenPeriods, int kijunSenPeriods, int senkouSpanBPeriods)
api.Indicators.IchimokuKinkoHyo(tenkanSenPeriods: int, kijunSenPeriods: int, senkouSpanBPeriods: int) -> IchimokuKinkoHyo
Parameters
| Name | C# type | Python type | Description |
|---|---|---|---|
tenkanSenPeriods | int | int | The period used for the Tenkan Sen |
kijunSenPeriods | int | int | The period used for the Kijun Sen |
senkouSpanBPeriods | int | int | The period used for the Senkou Span B |
Returns IchimokuKinkoHyo — Ichimoku Kinko Hyo Indicator instance
Examples
var ichimoku = Indicators.IchimokuKinkoHyo(9, 26, 52);
Print("Tenkan Sen: {0}, Kijun Sen: {1}", ichimoku.TenkanSen.LastValue, ichimoku.KijunSen.LastValue);
Print("Senkou Span A: {0}, Senkou Span B: {1}, Chikou Span: {2}", ichimoku.SenkouSpanA.LastValue, ichimoku.SenkouSpanB.LastValue, ichimoku.ChikouSpan.LastValue);
ichimoku = api.Indicators.IchimokuKinkoHyo(9, 26, 52)
api.Print(f"Tenkan Sen: {ichimoku.TenkanSen.LastValue}, Kijun Sen: {ichimoku.KijunSen.LastValue}")
api.Print(f"Senkou Span A: {ichimoku.SenkouSpanA.LastValue}, Senkou Span B: {ichimoku.SenkouSpanB.LastValue}, Chikou Span: {ichimoku.ChikouSpan.LastValue}")
IchimokuKinkoHyo(Bars bars, int tenkanSenPeriods, int kijunSenPeriods, int senkouSpanBPeriods)
Ichimoku Kinko Hyo Indicator is a moving average based trend identification system.
IchimokuKinkoHyo IchimokuKinkoHyo(Bars bars, int tenkanSenPeriods, int kijunSenPeriods, int senkouSpanBPeriods)
api.Indicators.IchimokuKinkoHyo(bars: Bars, tenkanSenPeriods: int, kijunSenPeriods: int, senkouSpanBPeriods: int) -> IchimokuKinkoHyo
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 |
tenkanSenPeriods | int | int | The period used for the Tenkan Sen |
kijunSenPeriods | int | int | The period used for the Kijun Sen |
senkouSpanBPeriods | int | int | The period used for the Senkou Span B |
Returns IchimokuKinkoHyo — Ichimoku Kinko Hyo Indicator instance
Examples
var dailyBars = MarketData.GetBars(TimeFrame.Daily);
var dailyIchimoku = Indicators.IchimokuKinkoHyo(dailyBars, 9, 26, 52);
if (dailyIchimoku.TenkanSen.LastValue > dailyIchimoku.KijunSen.LastValue)
Print("Daily Tenkan Sen is above Kijun Sen");
dailyBars = api.MarketData.GetBars(TimeFrame.Daily)
dailyIchimoku = api.Indicators.IchimokuKinkoHyo(dailyBars, 9, 26, 52)
if dailyIchimoku.TenkanSen.LastValue > dailyIchimoku.KijunSen.LastValue:
api.Print("Daily Tenkan Sen is above Kijun Sen")