This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var settings = { | |
| wait: 0, | |
| advice: 'short' | |
| }; | |
| // ------- | |
| var _ = require('lodash'); | |
| var log = require('../core/log.js'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // helpers | |
| var _ = require('lodash'); | |
| var log = require('../core/log.js'); | |
| // let's create our own method | |
| var method = {}; | |
| // prepare everything our method needs | |
| method.init = function() { | |
| this.name = 'multiple-emas'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // helpers | |
| var _ = require('lodash'); | |
| var log = require('../core/log.js'); | |
| // let's create our own method | |
| var method = {}; | |
| // prepare everything our method needs | |
| method.init = function() { | |
| this.name = 'custom-DEMA'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const pathToGekko = './'; | |
| // your config: | |
| const config = { | |
| watch: { | |
| exchange: 'bitstamp', | |
| currency: 'USD', | |
| asset: 'BTC' | |
| }, | |
| tradingAdvisor: { enabled: false } // temp.. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Everything is explained here: | |
| // @link https://github.com/askmike/gekko/blob/stable/docs/advanced_usage/plugins.md | |
| var config = {}; | |
| // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| // GENERAL SETTINGS | |
| // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| config.debug = true; // for additional logging / debugging |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // helpers | |
| // var _ = require('lodash'); | |
| var log = require('../core/log.js'); | |
| //var config = require('../core/util.js').getConfig(); | |
| //var settings = config.buyatsellat; | |
| // let's create our own method | |
| var method = {}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Let's create our own strategy | |
| var strat = {}; | |
| var parameters = { | |
| short: 12, | |
| long: 26, | |
| signal: 9, | |
| down: 0, | |
| up: 0, | |
| persistence: 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Let's create our own strategy | |
| var strat = {}; | |
| var parameters = { | |
| short: 12, | |
| long: 26, | |
| signal: 9, | |
| down: -0.0001, | |
| up: 0.005, | |
| persistence: 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var strat = {}; | |
| strat.init = function() {} | |
| strat.update = function(candle) {} | |
| strat.log = function() {} | |
| strat.check = function(candle) { | |
| console.log(candle.start.format()); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var _ = require('lodash'); | |
| // examples values: | |
| var RSIinterval = 10; | |
| var RSIlow = 20; | |
| var RSIhigh = 80; | |
| var StochRSIinterval = 15; | |
| var StochRSIlow = 30; | |
| var StochRSIhigh = 70; |