09-30-2018, 08:47 AM
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;
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;