03-03-2018, 08:00 PM
Thank you Fizcko, this will be very helpful!
Correct me if I'm wrong, but I believe as far as the indicator portion goes, Lagging Span (Chikou Span) is just the candle close value. It would be up to the strategy to check if it is above or below price action 26 periods back. For the sake of completeness, I went ahead and made the following change to the generator function of the the npm Ichimoku script.
Correct me if I'm wrong, but I believe as far as the indicator portion goes, Lagging Span (Chikou Span) is just the candle close value. It would be up to the strategy to check if it is above or below price action 26 periods back. For the sake of completeness, I went ahead and made the following change to the generator function of the the npm Ichimoku script.
Code:
//Lagging Span is current candle close
let lagging = tick.close;
result = {
conversion : parseFloat(conversionLine.toFixed(5)),
base : parseFloat(baseLine.toFixed(5)),
spanA : parseFloat(spanA.toFixed(5)),
spanB : parseFloat(spanB.toFixed(5)),
lagging : parseFloat(lagging.toFixed(5))
}