Did you write this indicator?
I would install the npm version Fizcko mentioned. Then just add the following line to the beginning of your strat near the "var log" line.
Code:
var Ichimoku = require("ichimoku");
then add this to your strat.init().
Code:
this.ichimoku = new Ichimoku({
conversionPeriod : this.settings.conversionPeriod,
basePeriod : this.settings.basePeriod,
spanPeriod : this.settings.spanPeriod,
displacement : this.settings.displacement,
values : []
});
where 'this.settings.XXX' refers to XXX setting in your toml file.
I have my version set up slightly different now, but that should get you going.