ichimoku icon indicating copy to clipboard operation
ichimoku copied to clipboard

REQUEST !!!! Can you please add laggingspan ?

Open droidmanspace opened this issue 8 years ago • 7 comments

Hi, Lagging span values are not available in this code. Can you add that to fulfill the Ichimoku Cloud?

droidmanspace avatar Jan 25 '18 22:01 droidmanspace

+1 It will be great for your project to add the lagginspan information.

Fizcko avatar Feb 13 '18 14:02 Fizcko

Should the lagging span not just be the current price moved a period behind? E.g. 26 periods behind?

wisaninona avatar Feb 19 '18 15:02 wisaninona

@wisaninona Yes, it is the closing price moved to a period behind

Fizcko avatar Feb 21 '18 08:02 Fizcko

I'll do this at some point if I figure out the right approach. I can't do it in the current generator function as this calculates up until the current candle based on the previous x number of periods. The only way I can see to do this is pass the candle used for the lagging span in the nextValue params, something like:

for( let [index, candle] of candles ) {
	let ichimokuValue = ichimoku.nextValue({
		high  : candle.high,
		low   : candle.low,
		close : candle.close,
		laggingSpan : candles[index+26].close
	})
}

rd13 avatar Mar 07 '18 14:03 rd13

Please can somebody explain me result of TA ichi? If i get it right, it is like this: conversion, base - are in actual time [ T ]. spanA, spanB - are in future time [ T + 26 ]. laggingSpan - is missing, but is price in history [ T - 26 ]. Do i get it right?

Belsi avatar Feb 03 '19 23:02 Belsi

Has anyone successfully been able to get lagging span in there?

booboothefool avatar Apr 01 '19 16:04 booboothefool

The lagging span is the current closing price.

In order to see if it is above the lagging price action, just compare the current closing price with the highest price of the 26th last candle.

buffermet avatar Mar 14 '21 15:03 buffermet