You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to report some issues with Ichimoku Cloud
Issue 1: No Displacement parameter
If you look at some implementations (https://www.tradingview.com/chart/) of Ichimoku cloud - it is NOT always calculating leading and lagging lines using the medium period length. In most of the cases a new parameter is introduced, which is called Displacement .
It defines - by which period should the leading and the lagging span be shifted.
I would appreciate if you added a new optional parameter, like this:
public IchimokuCloud(IEnumerable<TInput> inputs, Func<TInput, (decimal High, decimal Low, decimal Close)> inputMapper, int shortPeriodCount, int middlePeriodCount, int longPeriodCount, int displacement = null) : base(inputs, inputMapper)
{
displacement = displacement ?? middlePeriodCount;
// ..
}
This makes sense in fickle markets, such as crypto markets.
Issue 2/feature!: not clear when the Ichimoku cloud parameters are synchronized with candlesticks.
Ichimoku is using a concept of lagging and leading lines.
Therefore, we can not take the fist DateTimeOffset of Candle 1 and expect to get the Ichimoku values on the same index.
I don't know how this issue could be solved using existing framework which you are maintaining, but it would be nice if, for example, after computation, we would get an output parameter that would say that "Ichimoku values starting at Index 55 correspond to candles from index 0".
Issue 3: DateTime values are wrong for leading and lagging lines.
After you compute the indicator - in a list of values you will get following results:
This issue can actually be solved by finding the first result with present DateTime and then setting -1 period for each next result entity. For last entities - it is almost the same. But instead of subtracting 1 period - we add it.
This is not really a big issue at the moment. I can always fix it with something like this (not tested):
Description
I would like to report some issues with Ichimoku Cloud
Issue 1: No
Displacement
parameterIf you look at some implementations (https://www.tradingview.com/chart/) of Ichimoku cloud - it is NOT always calculating leading and lagging lines using the medium period length. In most of the cases a new parameter is introduced, which is called
Displacement
.It defines - by which period should the leading and the lagging span be shifted.
I would appreciate if you added a new optional parameter, like this:
This makes sense in fickle markets, such as crypto markets.
Issue 2/feature!: not clear when the Ichimoku cloud parameters are synchronized with candlesticks.
Ichimoku is using a concept of lagging and leading lines.
Therefore, we can not take the fist
DateTimeOffset
of Candle 1 and expect to get the Ichimoku values on the same index.I don't know how this issue could be solved using existing framework which you are maintaining, but it would be nice if, for example, after computation, we would get an output parameter that would say that "Ichimoku values starting at Index 55 correspond to candles from index 0".
Issue 3:
DateTime
values are wrong for leading and lagging lines.After you compute the indicator - in a list of values you will get following results:
For first X results and for last Y results:
This issue can actually be solved by finding the first result with present
DateTime
and then setting -1 period for each next result entity. For last entities - it is almost the same. But instead of subtracting 1 period - we add it.This is not really a big issue at the moment. I can always fix it with something like this (not tested):
But it would be nice if the issue was fixed on a lower level during data generation.
The text was updated successfully, but these errors were encountered: