{"action":"opened","issue":{"url":"https://api.github.com/repos/askmike/gekko/issues/2206","repository_url":"https://api.github.com/repos/askmike/gekko","labels_url":"https://api.github.com/repos/askmike/gekko/issues/2206/labels{/name}","comments_url":"https://api.github.com/repos/askmike/gekko/issues/2206/comments","events_url":"https://api.github.com/repos/askmike/gekko/issues/2206/events","html_url":"https://github.com/askmike/gekko/issues/2206","id":326629055,"number":2206,"title":"Strategy works when using UI, but not from console","user":{"login":"Chroll91","id":36948240,"avatar_url":"https://avatars3.githubusercontent.com/u/36948240?v=4","gravatar_id":"","url":"https://api.github.com/users/Chroll91","html_url":"https://github.com/Chroll91","followers_url":"https://api.github.com/users/Chroll91/followers","following_url":"https://api.github.com/users/Chroll91/following{/other_user}","gists_url":"https://api.github.com/users/Chroll91/gists{/gist_id}","starred_url":"https://api.github.com/users/Chroll91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chroll91/subscriptions","organizations_url":"https://api.github.com/users/Chroll91/orgs","repos_url":"https://api.github.com/users/Chroll91/repos","events_url":"https://api.github.com/users/Chroll91/events{/privacy}","received_events_url":"https://api.github.com/users/Chroll91/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-25T18:52:55Z","updated_at":"2018-05-25T18:52:55Z","closed_at":null,"author_association":"NONE","body":"**Note: this is the technical bug tracker, please use other platforms for getting support and starting a (non technical) discussion. See the [getting help page](https://gekko.wizb.it/docs/introduction/getting-help.html) for details.**\r\n\r\n**I'm submitting a ...**\r\n[x ] bug report\r\n[ ] question about the decisions made in the repository\r\n\r\n**Action taken** (what you did)\r\n\r\nI tried running a strategy ( which runs fine on UI )  from the console\r\n\r\n**Expected result** (what you hoped would happen)\r\n\r\nIt would run\r\n\r\n**Actual result** (unexpected outcome)\r\n\r\nGekko fails to start.\r\n\r\n**Other information** (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc)\r\n\r\n2018-05-25 21:52:22 (INFO):     Setting up Gekko in realtime mode\r\n2018-05-25 21:52:22 (INFO):\r\n2018-05-25 21:52:22 (INFO):     Setting up:\r\n2018-05-25 21:52:22 (INFO):              Candle writer\r\n2018-05-25 21:52:22 (INFO):              Store candles in a database\r\n2018-05-25 21:52:22 (INFO):\r\n\r\n2018-05-25 21:52:22 (INFO):     Setting up:\r\n2018-05-25 21:52:22 (INFO):              Trading Advisor\r\n2018-05-25 21:52:22 (INFO):              Calculate trading advice\r\n2018-05-25 21:52:22 (INFO):              Using the strategy: chroll\r\n2018-05-25 21:52:22 (WARN):     TALIB indicators could not be loaded, they will be unavailable.\r\nC:\\Users\\Vasilis\\Desktop\\ph\\gekko-develop\\gekko-develop\\strategies\\chroll.js:31\r\n       this.addTulipIndicator('maSlow', 'sma', { optInTimePeriod: this.settings.SMA_long });\r\n                                                                                ^\r\n\r\nTypeError: Cannot read property 'SMA_long' of undefined\r\n    at Base.init (C:\\Users\\Vasilis\\Desktop\\ph\\gekko-develop\\gekko-develop\\strategies\\chroll.js:31:81)\r\n    at Base.bound [as init] (C:\\Users\\Vasilis\\Desktop\\ph\\gekko-develop\\gekko-develop\\node_modules\\lodash\\dist\\lodash.js:729:21)\r\n    at new Base (C:\\Users\\Vasilis\\Desktop\\ph\\gekko-develop\\gekko-develop\\plugins\\tradingAdvisor\\baseTradingMethod.js:87:8)\r\n    at Actor.setupTradingMethod (C:\\Users\\Vasilis\\Desktop\\ph\\gekko-develop\\gekko-develop\\plugins\\tradingAdvisor\\tradingAdvisor.js:62:17)\r\n    at Actor.bound [as setupTradingMethod] (C:\\Users\\Vasilis\\Desktop\\ph\\gekko-develop\\gekko-develop\\node_modules\\lodash\\dist\\lodash.js:729:21)\r\n    at new Actor (C:\\Users\\Vasilis\\Desktop\\ph\\gekko-develop\\gekko-develop\\plugins\\tradingAdvisor\\tradingAdvisor.js:23:8)\r\n    at load (C:\\Users\\Vasilis\\Desktop\\ph\\gekko-develop\\gekko-develop\\core\\pluginUtil.js:95:22)\r\n    at C:\\Users\\Vasilis\\Desktop\\ph\\gekko-develop\\gekko-develop\\node_modules\\async\\dist\\async.js:1156:9\r\n    at replenish (C:\\Users\\Vasilis\\Desktop\\ph\\gekko-develop\\gekko-develop\\node_modules\\async\\dist\\async.js:1030:17)\r\n    at iterateeCallback (C:\\Users\\Vasilis\\Desktop\\ph\\gekko-develop\\gekko-develop\\node_modules\\async\\dist\\async.js:1015:17)"}}
{"actor":{"display_login":"Chroll91"}}