EMA tradingview to Gekko - Printable Version +- Gekko Forum (https://forum.gekko.wizb.it) +-- Forum: Gekko (https://forum.gekko.wizb.it/forum-13.html) +--- Forum: Technical Discussion (https://forum.gekko.wizb.it/forum-23.html) +--- Thread: EMA tradingview to Gekko (/thread-57718.html) |
EMA tradingview to Gekko - mikealkeal - 10-14-2018 Hello, How to translate tradingview Pinscript : Code: a = ema(b, c) To Js for Gekko in a strategy I found this in documentation : Code: method.init = function() { do I have to write Code: method.init = function() { thanks for your help. RE: EMA tradingview to Gekko - mark.sch - 10-15-2018 (10-14-2018, 07:37 PM)mikealkeal Wrote: Hello, In Pinescript you have these params: ema(source, length) → series For calculation in gekko you only need one param, the source (candles) is supplied by the gekko core so you need only one param in gekko, the length. RE: EMA tradingview to Gekko - mikealkeal - 10-15-2018 thanks mark.sch is it possible to change the source of Gekko? if not, does it work with tablib? For example method.init = function() { var Settings = { Close: 10, optInTimePeriod: 10 } this.addTalibIndicator('myema', 'ema', Settings); |