Looking for a WORKING Bollinger Bands Indicator - Printable Version +- Gekko Forum (https://forum.gekko.wizb.it) +-- Forum: Gekko (https://forum.gekko.wizb.it/forum-13.html) +--- Forum: Strategy Development (https://forum.gekko.wizb.it/forum-12.html) +--- Thread: Looking for a WORKING Bollinger Bands Indicator (/thread-57679.html) |
Looking for a WORKING Bollinger Bands Indicator - PrimalFury - 09-23-2018 Is there anyone with a working bollinger bands indicator where u could use if price < b.lower then.... I have this: Code: Code: var periodbb = 20; Results of theconsole.log(BB) Indicator { input: 'price', settings: { optInTimePeriod: 20 }, center: Indicator { input: 'price', windowLength: undefined, prices: [ 0.00001299, NaN: 0.0000124 ], result: 0.000025389999999999996, age: NaN, sum: 0.000025389999999999996 }, lower: NaN, middle: 0.000025389999999999996, upper: NaN } the bb.js file in strategies/indicators : Code: Code: // required indicators: SMA; Anyone seeing what im doing wrong or forget? RE: Looking for a WORKING Bollinger Bands Indicator - Yoganesh - 09-30-2018 let customBBSettings = { optInTimePeriod: 20, optInNbDevUp: 2, optInNbDevDn: 2, optInMAType: 0 }; this.addTalibIndicator('mybb', 'bbands', customBBSettings); this.BB = this.talibIndicators.mybb.result; this.BB.upper = this.BB['outRealUpperBand']; this.BB.middle = this.BB['outRealMiddleBand']; this.BB.lower = this.BB['outRealLowerBand']; this.bbGap = this.BB.upper - this.BB.lower; |