Ichimoku Indicator
#13
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.
  Reply


Messages In This Thread
Ichimoku Indicator - by PatTrends - 02-28-2018, 10:18 PM
RE: Ichimoku Indicator - by PatTrends - 03-01-2018, 02:12 PM
RE: Ichimoku Indicator - by Fizcko - 03-01-2018, 05:01 PM
RE: Ichimoku Indicator - by muditgrover - 03-09-2018, 09:20 AM
RE: Ichimoku Indicator - by edoe - 03-10-2018, 06:09 AM
RE: Ichimoku Indicator - by PatTrends - 03-03-2018, 08:00 PM
RE: Ichimoku Indicator - by riesgo.rafael - 03-13-2018, 01:51 AM
RE: Ichimoku Indicator - by Kris191 - 03-14-2018, 05:15 AM
RE: Ichimoku Indicator - by PatTrends - 03-20-2018, 09:36 PM
RE: Ichimoku Indicator - by palofug87 - 05-27-2018, 04:19 PM
RE: Ichimoku Indicator - by PatTrends - 05-29-2018, 02:42 AM
RE: Ichimoku Indicator - by palofug87 - 05-29-2018, 09:19 PM
RE: Ichimoku Indicator - by PatTrends - 05-31-2018, 06:44 PM
RE: Ichimoku Indicator - by ardialamwijaya - 11-07-2019, 04:16 AM

Forum Jump:


Users browsing this thread: