How to use the bfx-hf-indicators.Acceleration function in bfx-hf-indicators

To help you get started, we’ve selected a few bfx-hf-indicators examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github stockmlbot / TraderCore / src / strategies / all_williams / index.js View on Github external
// Indicators
    this.rsi = new RSI(14);
    this.ohcl4 = new OHCL4();
    this.sma = new SMA(5);
    this.wf = new WF(config.wf_period);
    this.wa = new WA({
      jawLength: 21,
      teethLength: 13,
      lipsLength: 8,
      jawOffset: 13,
      teethOffset: 8,
      lipsOffset: 5
    });

    this.acceleration = new Acceleration([34]); //Acceleration							candle.close		Period
    this.ao = new AO([10]); //Awesome Oscillator					candle OHLC			NO ARGS, LABEL PERIOD ?  !!!!!!!!!!!!!!!!!
    this.massIndex = new MassIndex([10]); //Mass Index							candle OHLC			Period
    this.wr = new WR([14]); //Williams %R							candle OHLC			Period
    this.stochRsi = new StochRSI([14, 14, 3, 3]); //Stochastic RSI						candle.close		'Length RSI', 'Length Stochastic', 'Stoch Smoothing', 'Signal Smoothing'

    //Stoploss
    this.stop_loss = new STOPLOSS(this.stop_loss_limit);
    // Indicators

    // Buffer
    this.BUF = {
      candle: [],
      ohcl4: [],
      rsi: [],
      sma: [],
      wf: [],
github stockmlbot / TraderCore / src / strategies / multi_trend_algo / index.js View on Github external
// Indicators
    this.rsi = new RSI(14);
    this.ohcl4 = new OHCL4();
    this.sma = new SMA(10);
    // this.wf = new WF(config.wf_period);
    this.wf_sma = new WF_SMA(config.wf_period);
    this.wa = new WA({
      jawLength: 21,
      teethLength: 13,
      lipsLength: 8,
      jawOffset: 13,
      teethOffset: 8,
      lipsOffset: 5
    });

    this.acceleration = new Acceleration([34]); //Acceleration							candle.close		Period
    this.ao = new AO([10]); //Awesome Oscillator					candle OHLC			NO ARGS, LABEL PERIOD ?  !!!!!!!!!!!!!!!!!
    this.massIndex = new MassIndex([10]); //Mass Index							candle OHLC			Period
    this.wr = new WR([14]); //Williams %R							candle OHLC			Period
    this.stochRsi = new StochRSI([14, 14, 3, 3]); //Stochastic RSI						candle.close		'Length RSI', 'Length Stochastic', 'Stoch Smoothing', 'Signal Smoothing'

    //Stoploss
    this.stop_loss = new STOPLOSS(this.stop_loss_limit);
    // Indicators

    // Buffer
    this.BUF = {
      candle: [],
      ohcl4: [],
      rsi: [],
      sma: [],
      wf: [],

bfx-hf-indicators

A library of trading indicators for Node.JS

Apache-2.0
Latest version published 4 years ago

Package Health Score

45 / 100
Full package analysis