# all files / technicalindicators/ index.js

0% Statements 0/35
0% Branches 0/2
100% Functions 0/0
0% Lines 0/35

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72

     "use strict"
    let SMA                        = require('./lib/moving_averages/SMA.js');
    let EMA                        = require('./lib/moving_averages/EMA.js');
    let WMA                        = require('./lib/moving_averages/WMA.js');
    let WEMA                       = require('./lib/moving_averages/WEMA.js');
    let MACD                       = require('./lib/moving_averages/MACD.js');
    let RSI                        = require('./lib/oscillators/RSI.js');
    let BollingerBands             = require('./lib/volatility/BollingerBands.js');
    let ADX                        = require('./lib/directionalmovement/ADX.js');
    let ATR                        = require('./lib/directionalmovement/ATR.js');
    let ROC                        = require('./lib/momentum/ROC.js');
    let KST                        = require('./lib/momentum/KST.js');
    let Stochastic                 = require('./lib/momentum/Stochastic.js');
    let WilliamsR                  = require('./lib/momentum/WilliamsR.js');
    let ADL                        = require('./lib/volume/ADL.js');
    let OBV                        = require('./lib/volume/OBV.js');
    let TRIX                       = require('./lib/momentum/TRIX.js');

    let AbandonedBaby              = require('./lib/candlestick/AbandonedBaby.js');
    let Doji                       = require('./lib/candlestick/Doji.js');
    let BearishEngulfingPattern    = require('./lib/candlestick/BearishEngulfingPattern.js');
    let BullishEngulfingPattern    = require('./lib/candlestick/BullishEngulfingPattern.js');
    let DarkCloudCover             = require('./lib/candlestick/DarkCloudCover.js');
    let DownsideTasukiGap          = require('./lib/candlestick/DownsideTasukiGap.js');
    let DragonFlyDoji              = require('./lib/candlestick/DragonFlyDoji');
    let GraveStoneDoji             = require('./lib/candlestick/GraveStoneDoji');
    let Harami                     = require('./lib/candlestick/Harami');
    let HaramiCross                = require('./lib/candlestick/HaramiCross');

    let Indicators;

    global.AvailableIndicators = [];

    module.exports = Indicators = {
      SMA                          : SMA,
      EMA                          : EMA,
      MACD                         : MACD,
      RSI                          : RSI,
      WMA                          : WMA,
      BollingerBands               : BollingerBands,
      ATR                          : ATR,
      ADX                          : ADX,
      WEMA                         : WEMA,
      ROC                          : ROC,
      KST                          : KST,
      Stochastic                   : Stochastic,
      WilliamsR                    : WilliamsR,
      ADL                          : ADL,
      OBV                          : OBV,
      TRIX                         : TRIX,
      AbandonedBaby                : new AbandonedBaby(),
      Doji                         : new Doji(),
      BearishEngulfingPattern      : new BearishEngulfingPattern(),
      BullishEngulfingPattern      : new BullishEngulfingPattern(),
      DarkCloudCover               : new DarkCloudCover(),
      DownsideTasukiGap            : new DownsideTasukiGap(),
      DragonFlyDoji                : new DragonFlyDoji(),
      GraveStoneDoji               : new GraveStoneDoji(),
      Harami                       : new Harami(),
      HaramiCross                  : new HaramiCross(),

    };

    Object.assign(global, Indicators);

    for(let indicator in Indicators){
      var indicatorName = indicator.toLowerCase();
      global.AvailableIndicators.push(indicator);
      let fn            = Indicators[indicator].calculate || Indicators[indicator].hasPattern
      global[indicatorName] = fn;
    };